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
accent: "#d9dde7" | |
background: "#2f333e" | |
foreground: "#d9dde7" | |
details: "darker" | |
terminal_colors: | |
normal: | |
black: "#3c4150" | |
red: "#b2656b" | |
green: "#a8bd90" | |
yellow: "#e5cc93" |
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
package pool | |
// StateMutator will modify an LState before it goes into the pool. This can | |
// run any number of scripts as necessary such as registring libraries, | |
// executing code, etc... | |
type StateMutator func(*lua.LState) | |
// PooledState wraps a Lua state. It's purpose is provide a means with which | |
// to return the state to the StatePool when it's not longer being used. | |
type PooledState struct { |
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 Cipher where | |
import Data.Char | |
clampAlpha :: (Integral a) => a -> a | |
clampAlpha = (`mod` 26) | |
lowerBound :: Char -> Char | |
lowerBound c | |
| isUpper c = '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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"github.com/graphql-go/graphql" | |
) |
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 is the challenge -- you should figure out what you | |
# don't know here. | |
class Calculator | |
class << self | |
def exit_command(cmd = nil) | |
if cmd.nil? | |
@exit_command || "exit" | |
else | |
@exit_command = cmd |
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
require 'erb' | |
class ERBContext | |
def initialize(hash) | |
hash.each_pair do |key, value| | |
singleton_class.send(:define_method, key) { value } | |
end | |
end | |
def get_binding |
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
{ | |
"Variables": { | |
"me": "bbuck", | |
}, | |
"GlobalOptions": { | |
"User": "{{me}}" | |
}, | |
"Groups": [ | |
{ | |
"GroupName": "jumpshells", |
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/sh | |
# man.sh - `man` replacement for git bash on windows | |
# Dependencies (outside of git bash): | |
# curl (already available in git bash) | |
# Notes: | |
# `curl s` = non-verbose output | |
# |
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
mutation _ { | |
newTodo: createTodo(text: "This is a todo mutation example") { | |
text | |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func main() { |
NewerOlder