Skip to content

Instantly share code, notes, and snippets.

View jaredwy's full-sized avatar

Jared Wyles jaredwy

View GitHub Profile
@jaredwy
jaredwy / gist:4120970
Created November 20, 2012 20:47
refactor idea
//test.js
export = {
//rename this to hello
a:function(),
c:function();
d:function();
}
//some other file
# Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
# reserved. Use of this source code is governed by a BSD-style license that
# can be found in the LICENSE file.
from optparse import OptionParser
from subprocess import Popen, PIPE, STDOUT
from tempfile import mktemp
import os
import shlex
import shutil
@jaredwy
jaredwy / update.scala
Created July 12, 2011 07:24
match the 1
case class X(x: Int, y :Int)
//this is what drives the mower
private def doSomething(delta): X = x match {
case X(x,1) => update(x,1 + delta)
case _ => X(1,2)
}
@jaredwy
jaredwy / gist:979939
Created May 19, 2011 00:51 — forked from i386/gist:979935
Bamboo Task in Javascript
require_component('processService');
var task = {
execute: function(context) {
var logger = context.buildLogger;
logger.addLogEntry("Hello World!");
return {
taskState: "successful",
resultData: {},
taskIdentifier: context;
@jaredwy
jaredwy / laksatime.js
Created May 13, 2011 05:34
Refactor me
(function(){
var options = {
"yesMessage": "YES!",
"noMessage": "No",
"target": "#isitlaksatime",
"day": 5, // 5 for friday
"hour": 12 // 12 for noon!
};