Skip to content

Instantly share code, notes, and snippets.

Karl Tiedt ktiedt

  • Sunnyvale, CA
Block or report user

Report or block ktiedt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View genesis_public_key
04f9a7abaf3943da4094a8214d055621c2341068ef70879dc8e89ac39b41f20dec5dd1a39d78e16e8dbc51b00a04529e9bb9a46969dc3b1b4998ac49c22c6e7abb;xelra
@ktiedt
ktiedt / index.html
Created Apr 14, 2014
loading timezone-js with dojo loadaer
View index.html
<html>
<head>
<script>
dojoConfig = {
packages: [
{
"name": "timezoneJS",
"location": "../timezone-js/src",
"main": "date"
}
@ktiedt
ktiedt / irc.js
Created Feb 3, 2013
Example irc.js using Compose()
View irc.js
/**
* 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 Sep 20, 2012
original "multiple" but toggle selection mode
View gist:3757129
_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 Aug 31, 2012
A common functions AMD example
View commonUtils.js
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 Mar 3, 2012
dojo.date.locale.format() bug
View gist:1968169
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)
View gist:1117379
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 Jun 21, 2011
couchapp -v logs
View gist:1037355
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 Jun 18, 2011
How TweetEater/tweetstream files for me
View tweetstream_stacktrace
/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)
You can’t perform that action at this time.