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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>NotePad!</title> |
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
/* | |
A simple Node.js proxy for Twitter's OAuth API. | |
*/ | |
var http = require('http'); | |
var url = require('url'); | |
var t = require('twitter-js-client'); | |
var twitter = new t.Twitter({ | |
"consumerKey": "###", |
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
from math import sin, cos, tan, radians, pi, e, log | |
inp = 'e 2 ^ ln 3 * 60 cos 8 * + 4 0.5 ^ 3 * 1 - /'.split(' ') | |
stack = [] | |
operators = { | |
'+': (2, lambda j, k: j + k), | |
'-': (2, lambda j, k: j - k), | |
'*': (2, lambda j, k: j * k), | |
'/': (2, lambda j, k: j / k), |
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
doctype html | |
html | |
head | |
title Git | |
style= css | |
body | |
#time | |
p= timestamp | |
#left | |
h2 Last Payload |
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
function github_req(user, cb) { | |
makeRequest( | |
'https://api.github.com/users/' + user + '/events', | |
function (text) { | |
var data = JSON.parse(text); | |
cb(data); | |
} | |
); | |
} |
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 sys | |
a=sys.argv[1].lower() | |
print(sum('*abcdeu'.find(g)/len(a)for g in a)) |
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 stop = false; | |
var loop = function (d) { | |
if (stop){ | |
return; | |
} | |
if (d == undefined) { | |
var d = { | |
width: 30, | |
height: 30, | |
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
import math,time,sys | |
j,i,p=int,0,print | |
W,H=map(j,sys.argv[1:]) | |
while 1:y=0;exec("x=0;exec(\"d=math.sin(x*6/W)*math.sin(i);p('\x1b[3'+str(j(abs(d)*8))+'m'+' #'[j(H/2*(1+d))==y],end='');x+=1;\"*W);p();y+=1;"*H);i+=.1;time.sleep(.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
function pro | |
set name $argv[1] | |
mkdir $name | |
if test $status = 0 | |
cd $name | |
git init | |
printf (echo $name | sed -e 's/^./\U&/' | tr _ ' ' | tr '-' ' ')\n(head -c (expr length + $name) < /dev/zero | tr '\0' '=')\n > README.md |
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
#!/bin/bash | |
function build-and-run { | |
build "$1" && $2 | |
} | |
function build { | |
clear | |
# run $1, pipe output to stdout then strip colour and put in .build_results | |
$1 2>&1 | tee >(perl -np -e 's/\x1b\[[0-9;]*m//g' > .build_results) |
OlderNewer