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
# Numerous always-ignore extensions | |
*.bak | |
*.diff | |
*.err | |
*.orig | |
*.log | |
*.rej | |
*.swo | |
*.swp | |
*.vi |
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
// Default Path | |
var defaultPath = 'home' | |
// Set Default State | |
history.pushState(null, null, '#/' + defaultPath); | |
// Custom UI Routing | |
function uiRouter(){ | |
// Create URL Path Array |
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
const fs = require('fs') | |
const path = require('path') | |
const { promisify } = require('util') | |
const express = require('express') | |
const elmStaticHtml = require('elm-static-html-lib').default | |
const readFile = promisify(fs.readFile) | |
const app = express(); | |
const pathToClient = path.resolve(__dirname, '../client/src') |
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
body { | |
-moz-animation-name: roll; | |
-moz-animation-duration: 4s; | |
-moz-animation-iteration-count: 1; | |
-o-animation-name: roll; | |
-o-animation-duration: 4s; | |
-o-animation-iteration-count: 1; | |
-webkit-animation-name: roll; | |
-webkit-animation-duration: 4s; | |
-webkit-animation-iteration-count: 1; |
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
<html> | |
<body> | |
<!-- load combined svg file (with symbols) into body--> | |
<script> | |
(function (doc) { | |
var scripts = doc.getElementsByTagName('script') | |
var script = scripts[scripts.length - 1] | |
var xhr = new XMLHttpRequest() | |
xhr.onload = function () { |
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
const daggy = require('daggy') | |
const {compose, curry, map, prop, identity, intersection, union} = require('ramda'); | |
const inspect = (x) => { if(!x) return x; return x.inspect ? x.inspect() : x; } | |
// F-algebras | |
// Fix | |
// ============ | |
// Fx is a simple wrapper that does almost nothing. It's much more useful in typed languages to check that we have a recursive f (Fix f) |
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
# | |
# Sample nginx.conf optimized for EC2 c1.medium to xlarge instances. | |
# Also look at the haproxy.conf file for how the backend is balanced. | |
# | |
user "nginx" "nginx"; | |
worker_processes 10; | |
error_log /var/log/nginx_error.log info; |
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
var emulatorDeviceList = [ | |
{ name: 'Amazon Kindle Fire HDX', width: 2560, height: 1600, ratio: 2 }, | |
{ name: 'Apple iPad', width: 1024, height: 768, ratio: 2 }, | |
{ name: 'Apple iPad Mini', width: 1024, height: 768, ratio: 1 }, | |
{ name: 'Apple iPhone 4', width: 320, height: 480, ratio: 2 }, | |
{ name: 'Apple iPhone 5', width: 320, height: 568, ratio: 2 }, | |
{ name: 'Apple iPhone 6', width: 375, height: 667, ratio: 2 }, | |
{ name: 'Apple iPhone 6 Plus', width: 414, height: 736, ratio: 3 }, | |
{ name: 'BlackBerry PlayBook', width: 1024, height: 600, ratio: 1 }, | |
{ name: 'BlackBerry Z30', width: 360, height: 640, ratio: 2 }, |
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
# Date, blocknum, difficulty as of 2019-01-18 | |
# Script by vbuterin, slightly modified by lrettig | |
import random | |
import datetime | |
import sys | |
def calc_bomb(i): | |
period = i // 100000 | |
if (period > 0): | |
# Subtract 2, this is the original formula |
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
console.reset = function () { | |
return process.stdout.write('\033c'); | |
} |
OlderNewer