Skip to content

Instantly share code, notes, and snippets.

View hypernormal's full-sized avatar

jv hypernormal

View GitHub Profile
@hypernormal
hypernormal / LispParser.hs
Last active October 24, 2019 14:40
LispParser pairing task in Haskell using Parser Combinators
module LispParser where
import Test.Hspec
import Text.ParserCombinators.Parsec
import Text.ParserCombinators.Parsec.Error
data Expr =
List [Expr]
| Number Integer
| String String
module CracklePop where
main :: IO ()
main =
mapM_ (putStrLn . cracklePop) [1..100] where
cracklePop :: Int -> String
cracklePop x
| x `mod` 3 == 0 && x `mod` 5 == 0 = "CracklePop"
| x `mod` 3 == 0 = "Crackle"
| x `mod` 5 == 0 = "Pop"

Keybase proof

I hereby claim:

  • I am vaughanj10 on github.
  • I am vaughanj10 (https://keybase.io/vaughanj10) on keybase.
  • I have a public key whose fingerprint is CCF7 38F1 74BA 39A4 EFFF C090 C428 29ED 016E 6946

To claim this, I am signing this object:

@hypernormal
hypernormal / build_monitor.py
Last active February 24, 2016 19:12
Build Monitor
import kivy
kivy.require('1.9.0')
import urllib2
import simplejson as json
import sys
import time
import pdb
from kivy.app import App
from kivy.uix.widget import Widget
Host bastion
Hostname 11.111.111.11
User username
ForwardAgent yes
@hypernormal
hypernormal / nginx.conf
Last active August 29, 2015 14:09
Nginx conf
user nobody nogroup;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
accept_mutex off;
}
@hypernormal
hypernormal / css_resources.md
Created February 16, 2014 17:42 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@hypernormal
hypernormal / rails_resources.md
Created February 16, 2014 17:42 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@hypernormal
hypernormal / 0_reuse_code.js
Created February 16, 2014 17:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console