My Recent Pastes (533 and counting)

Pastes by Jacob Rus (533 and counting)

Pages:

Below are the 15 most recent pasties by Jacob Rus.

October 05, 2011
1:26PM EDT
by Jacob Rus

// =======================================================
var idsetd = charIDToTypeID( "setd" );
    var desc5 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref2 = new ActionReference();

May 10, 2011
10:19PM EDT
by Jacob Rus

# alternative 1
values = {}
for {name, value} in @$('«form selector»').serializeArray()
    values[name] = value

May 10, 2011
10:17PM EDT
by Jacob Rus

            values = {}
            for {name, value} in @$('.settings_form').serializeArray()
                values[name] = value

April 21, 2011
10:53PM EDT
by Jacob Rus

from __future__ import division
from math import log
from itertools import izip, islice
from collections import defaultdict
import operator

April 20, 2011
4:51AM EDT
by Jacob Rus

class aClass
    something: ->
        @else "text"
    else: (text) ->
        console.log text

April 20, 2011
4:50AM EDT
by Jacob Rus

var aClass, x;
aClass = (function() {
  function aClass() {}
  aClass.prototype.something = function() {
    return this["else"]("text");

April 17, 2011
7:11PM EDT
by Jacob Rus

var clear_canvas = function(ctx) {
  ctx.save();
  ctx.setTransform(1, 0, 0, 1, 0, 0);
  ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
  ctx.restore();

March 21, 2011
4:38AM EDT
by Jacob Rus

var extend = function (obj1, obj2) {
  for (key in obj2) { obj1[key] = obj2[key] }
  return obj1
}

March 21, 2011
4:33AM EDT
by Jacob Rus

temporarily_modify = (object, changes) ->
    originals = {}
    for key, new_value in changes
        originals[key] = app.preferences[key]
        app.preferences[key] = new_value

March 21, 2011
4:12AM EDT
by Jacob Rus

temporarily_modify = (object, changes) ->
    originals = {}
    for key, new_value in changes
        originals[key] = app.preferences[key]
        app.preferences[key] = new_value

March 21, 2011
4:04AM EDT
by Jacob Rus

temporarily_modify = (object, changes) ->
    originals = {}
    for key, new_value in changes
        originals[key] = app.preferences[key]
        app.preferences[key] = new_value

March 21, 2011
2:07AM EDT
by Jacob Rus

var update = function (obj1, obj2) {
  for (key in obj2) { obj1[key] = obj2[key] }
  return obj1
}

March 21, 2011
2:05AM EDT
by Jacob Rus

temporarily_modify = (object, changes) ->
    originals = {}
    for key, new_value in changes
        originals[key] = app.preferences[key]
        app.preferences[key] = new_value

March 21, 2011
1:03AM EDT
by Jacob Rus

temporarily_modify = (object, changes) ->
    originals = {}
    for key, new_value in changes
        originals[key] = app.preferences[key]
        app.preferences[key] = new_value

March 21, 2011
1:03AM EDT
by Jacob Rus

temporarily_modify = (object, changes) ->
    originals = {}
    for key, new_value in changes
        originals[key] = app.preferences[key]
        app.preferences[key] = new_value

Next page