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
" pairs | |
for mapmode in [ "o", "x" ] | |
for delimiter in [ "{}", "()", "[]", "<>" ] | |
let opening = delimiter[0] | |
let closing = delimiter[1] | |
for modifier in [ "i", "a" ] | |
for trigger in [ opening, closing ] | |
execute mapmode . "noremap <silent> " . modifier . "n" . trigger . " :<C-U>normal! f" . opening . "v" . modifier . closing . "<CR>" | |
execute mapmode . "noremap <silent> " . modifier . "l" . trigger . " :<C-U>normal! F" . closing . "v" . modifier . opening . "<CR>" | |
endfor |
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 <stdio.h> | |
// first couple of triangular numbers | |
// http://en.wikipedia.org/wiki/Triangular_number | |
const int triag[] = {0, 1, 3, 6, 10, 15, 21}; | |
// returns numbers of elements in first `h` rows of pascal's triangle that are | |
// not divisible by 7 | |
// http://projecteuler.net/problem=148 | |
long not7(long 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 <stdio.h> | |
#include <stdlib.h> | |
struct Results { | |
int * R; | |
int N; | |
}; | |
struct Results solution(int A[], int N) { | |
struct Results result; |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// ... | |
Terminate *terminate = [[Terminate alloc] init]; | |
[terminate release]; | |
return YES; | |
} |
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
sergio:~/git/Android-App$ ant | |
Buildfile: /Users/sergio/git/Android-App/build.xml | |
...bla bla bla... | |
-set-mode-check: | |
-set-release-mode: | |
-release-obfuscation-check: |
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
~ ❱ gcc -dM -E - < /dev/null | |
#define OBJC_NEW_PROPERTIES 1 | |
#define _LP64 1 | |
#define __APPLE_CC__ 5621 | |
#define __APPLE__ 1 | |
#define __ATOMIC_ACQUIRE 2 | |
#define __ATOMIC_ACQ_REL 4 | |
#define __ATOMIC_CONSUME 1 | |
#define __ATOMIC_RELAXED 0 | |
#define __ATOMIC_RELEASE 3 |
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
src hg:default ❱ make | |
mkdir objects | |
CC="gcc -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp " srcdir=. sh ./osdef.sh | |
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/buffer.o buffer.c | |
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/blowfish.o blowfish.c | |
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/charset.o charset.c | |
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/diff.o diff.c | |
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/digraph.o digraph.c | |
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/edit.o edit.c |
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
diff -r 99b2236c037c src/buffer.c | |
--- a/src/buffer.c Mon Jun 03 12:17:05 2013 +0200 | |
+++ b/src/buffer.c Mon Jun 03 16:23:39 2013 +0200 | |
@@ -3567,11 +3567,6 @@ | |
if (fillchar == 0) | |
fillchar = ' '; | |
-#ifdef FEAT_MBYTE | |
- /* Can't handle a multi-byte fill character yet. */ | |
- else if (mb_char2len(fillchar) > 1) |
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
package main | |
import ( | |
"launchpad.net/gocheck" | |
) | |
type containsChecker struct { | |
*gocheck.CheckerInfo | |
} |
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
package main | |
import ( | |
"github.com/adeven/amqp" // `adeven` works, `streadway` doesn't | |
"log" | |
"time" | |
) | |
func main() { | |
amqpConfig := "amqp://guest:guest@localhost:5672/" |