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
int add(int a, int b) { | |
return a + b; | |
} | |
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 "alloc.h" | |
#include "byte.h" | |
#include "uint32.h" | |
#include "exit.h" | |
#include "tai.h" | |
#include "cache.h" | |
uint64 cache_motion = 0; | |
static char *x = 0; |
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
typedef struct free_list_t { | |
void (*func)(void *); | |
void *arg; | |
struct free_list_t *next; | |
} FreeList; | |
void _defer(FreeList **f, void (*func)(void *), void *arg) { | |
if (arg == NULL) { | |
return; | |
} |
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
#!/usr/bin/env zsh | |
# | |
FILEPATH="$1" | |
echo $(cd "$(dirname "$FILEPATH")"; pwd)/$(basename $FILEPATH) | |
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
#!/usr/bin/env sh | |
TIMEOUT=0 | |
while true; do | |
AUDIO_FILE=$(redis-cli BLPOP "$MUSIC_QUEUE" $TIMEOUT | grep --max-count=1 '^/') | |
afplay "$AUDIO_FILE" | |
done | |
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
module RParse | |
class Parser | |
def initialize(&block) | |
@block = block | |
end | |
def char(c) | |
case @buffer[0] | |
when 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
* * * * * /usr/bin/curl --user-agent "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" --location http://www.google.com >/dev/null 2>&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
<manifest ...> | |
<permission android:name="com.example.project.EXAMPLE_PERMISSION" android:protectionLevel="signature"/> | |
<uses-permission android:name="com.example.project.EXAMPLE_PERMISSION"/> | |
<application ...> | |
<provider android:name=".ExampleProvider" android:grantUriPermissions="false" android:permission="com.example.project.EXAMPLE_PERMISSION"/> | |
</application> | |
</manifest> |
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
default rel | |
bits 64 | |
; stuff we need to export to C | |
global _fiber_new | |
global _fiber_yield | |
global _fiber_start | |
global _fiber_resume | |
global _main |
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
LEADER='==>' | |
echo $LEADER 'Fetching vim from hg...' | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd vim/src | |
echo $LEADER 'Configuring...' | |
./configure --enable-rubyinterp --enable-multibyte --enable-gui=no --disable-netbeans --with-compiledby=Ian\ Rahimi --enable-pythoninterp --disable-gtktest | |
echo $LEADER 'Building...' |
NewerOlder