Skip to content

Instantly share code, notes, and snippets.

View AnthonySuper's full-sized avatar
🏠
Working from home

Anthony Super AnthonySuper

🏠
Working from home
View GitHub Profile
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'
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'
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,
namespace nmh {
template<typename T>
class value_ptr {
protected:
T* pointedAt;
template<typename O>
friend class value_ptr;
struct value_deleter {
@AnthonySuper
AnthonySuper / message.rb
Created May 1, 2017 23:20
Lets you see a history of the names in a group chat
#!/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
@AnthonySuper
AnthonySuper / test.rb
Created April 19, 2017 20:21
A ruby script to run NPM an dJS tests.
#!/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
-----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