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 bash | |
set -e -o pipefail | |
LATEST_GIT_VERSION=$(curl http://git-scm.com/ 2>&1 | grep -A 2 '<span class="version">' | grep '[[:digit:]].[[:digit:]]' | tr -d ' ') | |
GIT_VERSION="${1:-$LATEST_GIT_VERSION}" | |
PREFIX="/usr/local/git" | |
SUDO="sudo" | |
NOW_SECONDS=$(date +%s) | |
THE_ABYSS="/dev/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
import argparse | |
import requests | |
import json | |
ROOM_ID = '' | |
TOKEN = '' | |
HIPCHAT_ROOM_URL = 'https://api.hipchat.com/v2/room/{0}/notification' | |
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
var re = /^(?!app[\\\/])|(app[\\\/]test)/; | |
console.log(); | |
console.log(); | |
console.log(); | |
console.log(); | |
[ | |
"app/test/Config.js", | |
"app/test/OtherConfig.js", |
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 python3 -OO | |
import itertools | |
import serial | |
import shlex | |
import subprocess | |
MESSAGE = """ | |
Hi there! You have a serial port: |
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
void swap(int *a, int *b); | |
int main(int argc, char **argv) { | |
int a = 1; | |
int b = 2; | |
swap(&a, &b); | |
return 0; | |
} | |
void swap(int *a, int *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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.whymarrh.apps.mediakeys</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/path/to/the/executable/file</string> | |
</array> |
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> | |
#define as while | |
// as seen on Stack Overflow | |
// http://stackoverflow.com/q/1642028 | |
int main(int argc, char **argv) { | |
int x = 42; | |
as (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
#!/usr/bin/env php | |
<?php | |
define(SUCCESS, 0); | |
define(ERROR, 1); | |
if (count($argv) != 2) { | |
printf("usage: %s <filename>\n", basename($argv[0])); | |
exit(ERROR); | |
} |
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 bash | |
# servers | |
jeeves="localhost:7211" | |
alfred="localhost:7212" | |
abyss="/dev/null" | |
cd "public" | |
php -S "$jeeves" &> "$abyss" & |
OlderNewer