Skip to content

Instantly share code, notes, and snippets.

View program247365's full-sized avatar
💭
YOLO 💯

Kevin Ridgway program247365

💭
YOLO 💯
View GitHub Profile
@import "compass/css3/images";
.test {
@include background(linear-gradient(top left, #333, #0c0),
radial-gradient(#c00, #fff 100px));
width: 100%;
height: 500px;
}
@program247365
program247365 / .tmux.conf
Created September 4, 2012 19:41
A nice tmux configuration
set -g default-terminal "screen-256color"
# act like GNU screen
unbind C-b
set -g prefix C-a
# Scroll with mouse, and select pane with mouse
setw -g mode-mouse on
setw -g mouse-select-pane on
@program247365
program247365 / livereload-noie.js
Created December 17, 2012 16:30
Have livereload script be on the page. But never load it for any IE.
var ie = (function(){
var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
all[0]
// Placeholder @mixin for Sass
//
// A mixin to style placeholders in HTML5 form elements.
// Includes also a .placeholder class to be used with a polyfill e.g.
// https://github.com/mathiasbynens/jquery-placeholder
// Requires Sass 3.2.
//
// Example usage (.scss):
//
// input {
@program247365
program247365 / .disable-hibernate
Created February 20, 2013 19:09
Disable hibernate on mac
# !/bin/bash
sudo pmset hibernatemode 0;sudo rm -rf /var/vm/sleepimage
@program247365
program247365 / Vagrantfile
Last active August 29, 2015 14:00 — forked from andreiashu/Vagrantfile
Vagrantfile for Centos 6 and Docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
BOX_NAME = ENV['BOX_NAME'] || "Centos6.5.1"
BOX_URI = ENV['BOX_URI'] || "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
@program247365
program247365 / randomgifs.js
Created August 26, 2014 06:47
An idea for a funny Docker based GIF generator.
var http = require('http');
var util = require('util'),
left = ["happy", "jolly", "dreamy", "sad", "angry", "pensive", "focused", "sleepy", "grave", "distracted", "determined", "stoic", "stupefied", "sharp", "agitated", "cocky", "tender", "goofy", "furious", "desperate", "hopeful", "compassionate", "silly", "lonely", "condescending", "naughty", "kickass", "drunk", "boring", "nostalgic", "ecstatic", "insane", "cranky", "mad", "jovial", "sick", "hungry", "thirsty", "elegant", "backstabbing", "clever", "trusting", "loving", "suspicious", "berserk", "high", "romantic", "prickly", "evil"],
right = ["lovelace", "franklin", "tesla", "einstein", "bohr", "davinci", "pasteur", "nobel", "curie", "darwin", "turing", "ritchie", "torvalds", "pike", "thompson", "wozniak", "galileo", "euclid", "newton", "fermat", "archimedes", "poincare", "heisenberg", "feynman", "hawking", "fermi", "pare", "mccarthy", "engelbart", "babbage", "albattani", "ptolemy", "bell", "wright", "lumiere", "morse", "mclean", "brown", "bardeen",
@program247365
program247365 / index.js
Created April 20, 2015 02:17
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var d3 = require('d3');
var c3 = require('c3');
var chart = c3.generate({
data: {
x: 'x',
@program247365
program247365 / addLogging.js
Created June 8, 2015 17:59
Console Logging with Esprima
function addLogging(code) {
var ast = esprima.parse(code);
estraverse.traverse(ast, {
enter: function(node, parent) {
if (node.type === 'FunctionDeclaration' || node.type === 'FunctionExpression') {
addBeforeCode(node);
}
}
});
return escodegen.generate(ast);

Keybase proof

I hereby claim:

  • I am program247365 on github.
  • I am program247365 (https://keybase.io/program247365) on keybase.
  • I have a public key ASCvWVe02SM56NjmBrt-6MaOFSCa6NVWPc4MhZIPLf0heAo

To claim this, I am signing this object: