Skip to content

Instantly share code, notes, and snippets.

View ktiedt's full-sized avatar

Karl Tiedt ktiedt

View GitHub Profile
@ktiedt
ktiedt / genesis_public_key
Last active February 23, 2018 16:58
Why not...
04f9a7abaf3943da4094a8214d055621c2341068ef70879dc8e89ac39b41f20dec5dd1a39d78e16e8dbc51b00a04529e9bb9a46969dc3b1b4998ac49c22c6e7abb;xelra
@ktiedt
ktiedt / index.html
Created April 14, 2014 16:07
loading timezone-js with dojo loadaer
<html>
<head>
<script>
dojoConfig = {
packages: [
{
"name": "timezoneJS",
"location": "../timezone-js/src",
"main": "date"
}
@ktiedt
ktiedt / irc.js
Created February 3, 2013 10:26
Example irc.js using Compose()
/**
* IRC Class
*
* @author Michael Owens
* @website http://www.michaelowens.nl
* @copyright Michael Owens 2011
*
* @author Shaun Walker
* @website http://www.theshaun.com
* @copyright Shaun Walker 2012
@ktiedt
ktiedt / gist:3757129
Created September 20, 2012 17:12
original "multiple" but toggle selection mode
_handleSelect: function(event, currentTarget){
if (this.selectionMode != "multiple") {
console.log("!multiple inherited return");
return this.inherited(arguments);
}
var row = this.row(currentTarget),
selected = this.selection[row.id];
if (selected) {
@ktiedt
ktiedt / commonUtils.js
Created August 31, 2012 02:21
A common functions AMD example
define([
"some/class1",
"some/class2",
"other/classes"
],fucntion(class1, class2, classes){
return {
myUtility: function(arg1, arg2) { ..... },
myOtherUtil: function(arg2, arg2) { .... },
commonClass2: class2.commonUtil
};
@ktiedt
ktiedt / gist:1968169
Created March 3, 2012 20:52
dojo.date.locale.format() bug
dojo.date.locale.format() bug
Line 115 of locale.js reads:
case 'K': // 0-11
However documentation for the K format option says it should be 1-12 which means Line 116 should read identical to Line 110 (or they could be combined)
Exmaple:
a = new Date("2012-03-14 12:00:00")
Wed Mar 14 2012 12:00:00 GMT-0500 (CDT)
@ktiedt
ktiedt / gist:1117379
Created August 1, 2011 00:16
Cordova eror
proton:Cordova ktiedt$ phonegap list-recipes
Available recipes:
Traceback (most recent call last):
File "/usr/local/bin/phonegap", line 8, in <module>
load_entry_point('cordova==0.1.0', 'console_scripts', 'phonegap')()
File "/Library/Python/2.7/site-packages/cordova-0.1.0-py2.7.egg/cordova/console.py", line 33, in main
console.run()
File "/Library/Python/2.7/site-packages/cordova-0.1.0-py2.7.egg/cordova/console.py", line 25, in run
command[0](self).run()
@ktiedt
ktiedt / gist:1037355
Created June 21, 2011 06:39
couchapp -v logs
proton:TweetEater ktiedt$ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/couchapp -v push . http://<username>:<password>@localhost:5984/qrchat
2011-06-21 01:36:48 [DEBUG] Resource uri: http://<username>:<password>@localhost:5984/qrchat
2011-06-21 01:36:48 [DEBUG] Request: HEAD None
2011-06-21 01:36:48 [DEBUG] Headers: {'Accept': 'application/json', 'User-Agent': 'couchapp/0.8.1'}
2011-06-21 01:36:48 [DEBUG] Params: {}
2011-06-21 01:36:48 [DEBUG] Start to perform request: localhost:5984 HEAD /qrchat
2011-06-21 01:36:48 [DEBUG] create new connection
2011-06-21 01:36:48 [DEBUG] Send headers: ['HEAD /qrchat HTTP/1.1\r\n', 'Host: localhost:5984\r\n', 'User-Agent: restkit/3.2.3\r\n', 'Accept-Encoding: identity\r\n', 'Accept: application/json\r\n', 'Authorization: Basic a3RpZWR0OndhcnBlZDgx\r\n']
2011-06-21 01:36:48 [DEBUG] Start to parse response
2011-06-21 01:36:48 [DEBUG] Got response: 200 OK
@ktiedt
ktiedt / tweetstream_stacktrace
Created June 18, 2011 17:25
How TweetEater/tweetstream files for me
/Users/ktiedt/repos/node_modules/tweetstream/lib/main.js:87
options.client.end();
^
TypeError: Cannot call method 'end' of undefined
at EventEmitter.<anonymous> (/Users/ktiedt/repos/node_modules/tweetstream/lib/main.js:87:20)
at EventEmitter.emit (events.js:81:20)
at EventEmitter.end (/Users/ktiedt/repos/node_modules/tweetstream/lib/main.js:84:36)
at IncomingMessage.onend (stream.js:74:10)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)