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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
generate_keys.py | |
Generate CSRF and Session keys, output to secret_keys.py file | |
Usage: | |
generate_keys.py [-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
var width = 460, | |
height = 300, | |
radius = Math.min(width, height) / 2, | |
twoPi = 2 * Math.PI, | |
progress = 0, | |
formatPercent = d3.format(".0%"); | |
var arc = d3.svg.arc() | |
.startAngle(0) |
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
document = require 'global/document' | |
nextTick = require 'next-tick' | |
HashRouter = require 'hash-router' | |
Event = require 'geval' | |
cuid = require 'cuid' | |
extend = require 'xtend' | |
hg = require 'mercury' | |
h = hg.h |
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
if status is-interactive | |
# Commands to run in interactive sessions can go here | |
end | |
set -gx PATH /usr/local/bin $PATH | |
set -gx PATH /opt/homebrew/bin $PATH | |
set -gx PATH /opt/homebrew/opt/[email protected]/libexec/bin $PATH | |
abbr gf "git fetch" | |
abbr gb "git branch" |
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
# 'Item*' it the pattern to look for | |
# sed "s/I/i/g" is the replacement pattern | |
for f in Item*; mv $f (echo {$f} | sed "s/I/i/g"); end |
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
/** @jsx m */ | |
'use strict'; | |
var R = require('ramda'); | |
var m = require('mithril'); | |
var autocompleter = function() { | |
var autocompleter = {}; |
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
<?php | |
add_filter('wp_nav_menu_args', 'modify_nav_menu_args'); | |
function modify_nav_menu_args($args) { | |
if (!current_user_can('add_users')) { | |
return $args; | |
} | |
// we need the menu to be an object, so we can inspect it | |
if (gettype($args['menu']) !== 'object') { | |
return $args; |
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 atom = {"things": []}; | |
function Thing() { | |
this.isNew = true; | |
} | |
function thingView(thing) { | |
var cls = ['thing']; | |
cls.push(thing.isNew ? 'new' : 'notNew'); | |
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() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var R = require('ramda'); | |
var ls = [ | |
['a1', 'b1', 'c1'], | |
['a2', 'b2', 'c2'], | |
['a3', 'b3', 'c3'], | |
['a4', 'b4', 'c4'], | |
['a5', 'b5'], |
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() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var deku = require('deku'); | |
var dom = deku.element; | |
var render = deku.render; | |
var tree = deku.tree; | |
var App = { |