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
https://drive.google.com/file/d/1y3Qao8lAv1R-cI43HIoYeGj_xig5-Hwg/view?usp=sharing | |
https://drive.google.com/open?id=1GPg9pEhAVlTHYcl8qO4Tp_JGqbln3p2V |
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
class Stack < Array | |
def add_frame | |
Stack.new(self + [[]]) | |
end | |
def frames_ago n | |
return self[-n] | |
end | |
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
indirect enum Term { | |
case True | |
case False | |
case Zero | |
case Succ(Term) | |
case Pred(Term) | |
case IsZero(Term) | |
case If(Term, Term, Term) | |
} |
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
{ | |
"name": "Minecraft", | |
"tag": "PS3", | |
"joysticks": [ | |
{ | |
"tag": "Write here a tag to identify anything you want", | |
"binds": { | |
"axi 3 -": [ | |
"mou 1 - 6" | |
], |
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 ruby | |
class CS;def d(t,k,n);r=[];s=(0..255).to_a;j=0;k.each_byte{|b|r<<b};n.times{0.upto(255){|i|j=(j+s[i]+r[i%r.length])%256; | |
s[i],s[j]=s[j],s[i]}};i,j=0,0;c="";t.each_byte{|b|i=(i+1)%256;j=(j+s[i])%256;s[i],s[j]=s[j],s[i];k=s[(s[i]+s[j])%256];c<<(k^b)};c;end;end | |
class CipherSaber < CS | |
def initialize(key,num) | |
@key = key | |
@num = num | |
end |
I hereby claim:
- I am techbelly on github.
- I am techbelly (https://keybase.io/techbelly) on keybase.
- I have a public key whose fingerprint is A172 A883 F6BB F523 7DF9 DC46 43EE 6295 94B6 9B31
To claim this, I am signing this object:
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
apt-get update | |
apt-get -y upgrade | |
apt-get -y install python-software-properties | |
if [ ! -f /etc/apt/sources.list.d/chris-lea-node_js-precise.list ]; then | |
add-apt-repository -y ppa:chris-lea/node.js | |
fi | |
if [ ! -f /etc/apt/sources.list.d/chris-lea-redis-server-precise.list ]; then |
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 | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
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 ruby | |
require 'rubygems' | |
require 'tinder' | |
require 'open3' | |
require 'eventmachine' | |
# CHANGE THESE TO FIT | |
config = { | |
# CAMPFIRE USER DETAILS |
NewerOlder