Skip to content

Instantly share code, notes, and snippets.

View jonpacker's full-sized avatar

Jon Packer jonpacker

View GitHub Profile
@jonpacker
jonpacker / gist:4d7f29ef948a47d6c1f7
Created May 25, 2015 21:09
colocalisation 25.05
Venjetindan:colocalize jonpacker$ node colocalize.js /Volumes/NO\ NAME/wt\ wt\ colocalisation.lif_Series028_z0.png 0.1 0.1 0.0 0.25 0.25 0
total matches: 46681 out of 98822 over threshold from 1048576
match: 47.237%
Venjetindan:colocalize jonpacker$ node colocalize.js /Volumes/NO\ NAME/WT\ HYB.lif_Series018Snapshot2.png 0.1 0.1 0.0 0.25 0.25 0
total matches: 6305 out of 24524 over threshold from 833569
match: 25.710%
Venjetindan:colocalize jonpacker$ node colocalize.js /Volumes/NO\ NAME/WT\ MUT\ trans.lif_Series046Snapshot3.png 0.1 0.1 0.0 0.25 0.25 0
total matches: 2482 out of 13409 over threshold from 833569
match: 18.510%
[source,cypher]
----
CREATE (node:TestThing1)-[:rel1]->(node2)-[:rel2]->(node3)
----
== Working
[source,cypher]
----
MATCH (n:TestThing1)
OPTIONAL MATCH n-[:rel1]->x
@jonpacker
jonpacker / gist:7160177
Created October 25, 2013 19:10
Mum's Chicken Casserole
Chicken Casserole
1 barbecued chicken
1 onion, chopped
2 shallots, chopped
1 stick celery, chopped
¼ cup water
30g butter
3 rashers bacon, chopped
@jonpacker
jonpacker / gist:7160160
Created October 25, 2013 19:09
Salsa Chicken
Chicken breasts (however many you desire, usually three or more works best), one
large container of your favorite salsa (I enjoy Pace for this), one package of taco
seasoning, and 1/3 cup of water. Put all of this in a crockpot before work/school/Reddit
fix/whatever. Eat when you return (should be at least four hours for best results). Serve
in tortillas, salad, or taco shells. Or serve how I prefer; in a bowl with crushed up
tortilla chips and a bit of sour cream. You will not regret trying this recipe.
@jonpacker
jonpacker / gist:7160154
Created October 25, 2013 19:08
Yellow Rice
2 cups long-grain rice
4 cups water
2 cloves garlic, smashed
1 teaspoon turmeric
1 teaspoon kosher salt
1 bay leaf
Put all the ingredients into a heavy bottomed pot, stir well, and bring to a boil over medium-high heat. Reduce the heat to a simmer, cover, and cook over low heat until the rice has absorbed the water, about 15 to 20 minutes. Remove from the heat and let sit, covered, for 5 minutes. Discard the garlic and bay leaf, fluff with a fork, and serve.
Yield: 8 servings
@jonpacker
jonpacker / gist:7160123
Created October 25, 2013 19:06
Creamy Italian Chicken Tomato Soup
Ingredients
3 large boneless skinless chicken breasts
1 small onion, chopped
2 cloves garlic, minced
1 (14 ounce) can coconut milk (full fat)
1 cup chicken broth
1 can diced tomatoes (add the juice)
1 8 ounce can tomato sauce
2 tablespoons Italian seasoning
{
"defs": {
"$cs_red" : "#dc322f",
"$cs_orange" : "#cb4b16",
"$cs_blue" : "#268bd2",
"$cs_pink" : "#d33682",
"$cs_yellow" : "#b58900",
"$cs_green" : "#859900",
"$cs_video" : "$cs_blue",
var server = require('express')();
var nestedServer = require('express')();
var winston = require('winston');
var TaggedConsoleTarget = require('tagged-console-target');
var TaggedLogger = require('tagged-logger');
var loggerBase = new winston.Logger({transports:[new TaggedConsoleTarget()]});
var log = new TaggedLogger(loggerBase, []);
require('winston-tagged-http-logger')(server, log);
[
"icalendar",
[
"vcalendar",
[
[
"prodid",
{},
"text",
"-//Google Inc//Google Calendar 70.9054//EN"
/**
* Nonblocking Object Analyzer - analyzes objects without not nonblocking
*
* @author Jon D. Packer
* @version 6.0z Build 9001 Nov. 27 2012
* @since 2012
*/
public class NonblockingObjectAnalyzer extends Throwable {
/**
* Serial version UID. The UID of the Serial Version.