This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""settings for comportable use | |
set nocp | |
set bs=2 | |
""set visualbell | |
set showmatch | |
""Character encoding and GUI Font settings | |
"""" set encoding to UTF-8 | |
set enc=utf-8 | |
set fenc=utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//javascript: | |
; | |
(function() { | |
function _initTextArea() { | |
emmet.require('textarea').setup({ | |
pretty_break: true, | |
use_tab: true | |
}); | |
console.log('ready'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub FillEmptyCell() | |
' Fill empty cell with specified string to selection | |
Dim str As String | |
str = InputBox("Enter the string", ," ") | |
For Each Cell In Selection | |
If IsEmpty(Cell) Then Cell.Value = str | |
Next | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIGestureRecognizerSubclass.h> | |
// Implemented in your custom subclass | |
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { | |
[super touchesBegan:touches withEvent:event]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface DBInterface : NSObject | |
-(id)initWithDataBaseFilename:(NSString*)databaseFilename; | |
-(NSArray *)searchWithKeyword:(NSString *)keyword; | |
-(void)updateRecordWithName:(NSString *)name description:(NSString*)description atID:(int)recordID; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
int main(int argc, const char *argv[]) { | |
@autoreleasepool{ | |
NSString *str = @"Person::first:last:123"; | |
NSScanner *sc = [NSScanner scannerWithString:str]; | |
[sc setCharactersToBeSkipped:[NSCharacterSet characterSetWithCharactersInString:@":"]]; | |
NSString *a, *b; | |
b = [[NSString alloc] init]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* file: PXHashTable.c | |
* HashTable Definition File | |
* by sooop | |
* 2013. 10. 24. | |
* | |
*/ | |
#include "PXHashTable.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Python.h" | |
static PyObject* _sayHello(PyObject *self) | |
{ | |
return Py_BuildValue("s", "Hello World!"); | |
} | |
static PyMethodDef methods[] = { | |
{"sayHello", _sayHello, METH_NOARGS, NULL}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!C:/pypy/pypy.exe | |
import urllib2 | |
def main(): | |
# get ezsetup.py | |
e_url = "https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py" | |
u = urllib2.urlopen(e_url) | |
with open('ez_setup.py','w') as f: | |
f.write(u.read().encode('utf-8')) |