Skip to content

Instantly share code, notes, and snippets.

View jonpacker's full-sized avatar

Jon Packer jonpacker

View GitHub Profile
@jonpacker
jonpacker / beer.xml
Created September 11, 2012 13:26
HELGES MEGA JULEIPA
<?xml version="1.0" encoding="UTF-8"?>
<!--BeerXML generated by brewtarget-->
<RECIPES>
<RECIPE>
<NAME>HELGES MEGA BEER</NAME>
<VERSION>1</VERSION>
<TYPE>All Grain</TYPE>
<STYLE>
<NAME>Imperial IPA</NAME>
<VERSION>1</VERSION>
Pacific - American Pale Ale
================================================================================
Batch Size: 30.000 L
Boil Size: 27.000 L
Boil Time: 60.000 min
Efficiency: 70%%
OG: 1.046
FG: 1.012
ABV: 4.5%%
Bitterness: 27.2 IBUs (Tinseth)
@jonpacker
jonpacker / JPEventedBase.h
Created October 4, 2012 05:16
Event base class for objective c
#import <Foundation/Foundation.h>
// I did not steal this from Node.js. I promise. No way. Would never do that. Definitely not. Ok I did. Shut up.
typedef void (^JPEventBlock)(NSError* errorOrNil, id accompanyingDataOrNil);
@interface JPEventedObject : NSObject {
@private
NSMutableDictionary* _listeners;
}
@jonpacker
jonpacker / gist:3949458
Created October 24, 2012 22:55
monadic wit
Monadic Wit
================================================================================
Batch Size: 27.000 L
Boil Size: 25.076 L
Boil Time: 60.000 min
Efficiency: 70%%
OG: 1.054
FG: 1.013
ABV: 5.4%%
Bitterness: 19.9 IBUs (Tinseth)
@jonpacker
jonpacker / gist:4131368
Created November 22, 2012 14:10
shit that has broken in windows
* network services pane does not acknowledge connection to network. browsing the internet still works.
* changing settings on control panel dont's save after clicking 'save'. go back after saving and they are immediately reverted.
* file updates in visual studio only work if you edit the file inside visual studio.
* ftp server set up. does not respond to requests from other computers on the network. no firewall. no ip blocking. just doesn't work.
/**
* 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.
[
"icalendar",
[
"vcalendar",
[
[
"prodid",
{},
"text",
"-//Google Inc//Google Calendar 70.9054//EN"
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);
{
"defs": {
"$cs_red" : "#dc322f",
"$cs_orange" : "#cb4b16",
"$cs_blue" : "#268bd2",
"$cs_pink" : "#d33682",
"$cs_yellow" : "#b58900",
"$cs_green" : "#859900",
"$cs_video" : "$cs_blue",
@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