Skip to content

Instantly share code, notes, and snippets.

View bigeasy's full-sized avatar

Alan Gutierrez bigeasy

  • New Orleans, LA
View GitHub Profile
@bigeasy
bigeasy / id_rsa.pub
Created April 12, 2014 00:01
Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8MFjTKBo8r+bEVSHP12kHxe88ec9Nuk0YaTzoh+du9ZxytuZsjsA/1vxkA4w3gJbNJbrv20CRPChietSpTFMEVrbpbNjNDTYUwJxn+cIEwuA8xGFbURb0Ukq2jDlBBYqUv0WyQHTjTRK+jTVhodE1EB536r6bW4sNP2wKA7TtxQmGHalXAf+OhLtsgfGVvGQl0fHyYrDdPl04G6maGHDP3dtOKgr/UYgcj+ga4K/YCo8AjQovRE0fy/qqovYHvRhfrFA8GO5zQ/n0dIb+AdjMI2JYjsMVKgOprdZ3tDO1b6XYNfU2Mq3FmRoc8purItVbj2+XQ0vmLU6wN8Hs7uih alan
@bigeasy
bigeasy / profiling.irc
Last active August 29, 2015 14:07
Profiling discussion.
[12:38:59] <prettyrobots> Any nice blog posts on profiling Node.js?
[12:39:10] <prettyrobots> I've run a program with `--prof`, but I can't find a way to visualize it.
[12:40:40] kessler (~kessler@odap-199-203-61-108.bb.netvision.net.il) left IRC. (Ping timeout: 246 seconds)
[12:42:08] joates (~joates@host109-152-220-28.range109-152.btcentralplus.com) left IRC. (Quit: Leaving)
[12:43:15] Maciek416 (~Maciek@2601:7:2100:2c1:e4b2:2ee:277d:28d1) left IRC. (Ping timeout: 272 seconds)
[12:50:33] peutetre (~peutetre@ip18861980.dynamic.kabel-deutschland.de) left IRC. (Quit: peutetre)
[12:51:03] toddself_zz is now known as toddself
[12:56:17] kessler (~kessler@odap-199-203-61-108.bb.netvision.net.il) joined the channel.
[13:02:04] phated (~phated@ip72-208-140-83.ph.ph.cox.net) joined the channel.
[13:03:43] kumavis (~kumavis@107-219-148-42.lightspeed.sntcca.sbcglobal.net) joined the channel.
@bigeasy
bigeasy / this.js
Created October 6, 2014 19:34
`this` manipulation in JavaScript
var slice = [].slice
var array = []
console.log(array.push)
var object = {
f: function (x, y) {
var vargs = slice.call(arguments)
console.log(this.i, x, y)
},
@bigeasy
bigeasy / hash_submit.js
Created March 31, 2009 14:19
jQuery Plugin to Convert text/plain Name Value Key Pairs to a Hash
(function ($) {
// Keep a copy of the old get.
var jQuery_get = jQuery.get;
jQuery.extend({
get: function( url, data, callback, type, options ) {
// Shift arguments if data argument was omitted.
if ( jQuery.isFunction( data ) ) {
package com.goodworkalan.prattle.model;
import java.io.Serializable;
public class Person implements Serializable
{
private static final long serialVersionUID = 1L;
private String firstName;
class ThingsController < ApplicationController
# call-seq:
# GET http://domain.tld/things
#
def index
@things = Thing.all
end
# call-seq:
# GET http://domain.tld/things/:id
@bigeasy
bigeasy / fckeditor.rb
Created August 24, 2009 18:28
How to use Scott Rutherford's FCKEditor Plugin with Adva CMS.
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :admin => %w[fckeditor/fckeditor.js]
package com.goodworkalan.snap;
@Command
public class Welcome implements Commandable {
public String greeting;
@Argument
public void addGreeting(String greeting) {
this.greeting = greeting;
}
package com.goodworkalan.snap;
@Command
public class Welcome implements Commandable {
public String greeting;
@Argument
public void addGreeting(String greeting) {
this.greeting = greeting;
}
package com.goodworkalan.spawn;
import static org.testng.Assert.assertEquals;
import java.io.File;
import org.testng.annotations.Test;
public class SpawnTest {
@Test