This file contains hidden or 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
set nocompatible | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'othree/html5.vim' | |
Plugin 'vim-ruby/vim-ruby' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'mxw/vim-jsx' | |
Plugin 'posva/vim-vue' | |
Plugin 'ctrlpvim/ctrlp.vim' |
This file contains hidden or 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
execute pathogen#infect() | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'slim-template/vim-slim.git' | |
Plugin 'thoughtbot/vim-rspec' | |
Plugin 'mhinz/vim-signify' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'Valloric/YouCompleteMe' |
This file contains hidden or 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 FizzBuzz where | |
-- The type of functions which can do a fizzbuzz-like thing. | |
-- That is, they will output something besides their input based on | |
-- some conditions. | |
newtype FizzBuzzer b a = FizzBuzzer (b -> Maybe a) | |
-- If the FizzBuzzer outputs a semigroup, or something that can be combined, | |
-- then we can very easily combine FizzBuzzers. More specifically, |
This file contains hidden or 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
namespace nmh { | |
template<typename T> | |
class value_ptr { | |
protected: | |
T* pointedAt; | |
template<typename O> | |
friend class value_ptr; | |
struct value_deleter { |
This file contains hidden or 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 'sqlite3' | |
path = File.expand_path("~/Library/Messages/chat.db") | |
db = SQLite3::Database.new path | |
db.results_as_hash = true | |
r = db.execute(%{SELECT chat.display_name, chat.ROWID FROM chat | |
WHERE chat.display_name IS NOT NULL AND |
This file contains hidden or 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 | |
mvn = system("mvn test") | |
js = system("npm test") | |
if mvn && js | |
exit 0 | |
elsif ! mvn | |
STDERR.puts "Mvn failed!" | |
exit -1 | |
else |
This file contains hidden or 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1 | |
mQINBFQvbbEBEAC0xJuqy+l8JSVJylvoNyj3EY6zjbAJXWEAjbAqZgX8yIclDfi9 | |
tpGMErdElqu8duPX1KOuVs4SC/5ljcpId9tmMOBhE+VcNtbI8n6RTPDbsozp8FDe | |
m9O8L5X5HBCy+ix/DCF5qYh+Q4XYcRD3BaKBpFh/uJl4+HHjYoa2sGrJMuhtTiQE | |
7szzBZKjNivXQgNPu9+G355UyfekRaSGUHox8MMN5qNUd7f3GRat6pvrWt8QhwIO | |
1nzKf4RhGar7OH63QewGghzR53Xl642eQZooI/PyRiFs3YAWd6Jh6luZNJofhHov | |
WZo8hnAXsoiL3WS4BvEJWM8wxjc3GuFZNZym+xp6gPLgAJAOKqUjtnzHRpw25ju6 | |
hxkttfA77ARPFIkyq1lt1Cgb+IUy6E3Gi72wYkZSebbCFj2AhZntJWqIjIlPtcrR |