Skip to content

Instantly share code, notes, and snippets.


Kevin Dangoor dangoor

View GitHub Profile
View gist:325401
"define metadata";
"ep": "command",
"name": "hello",
"description": "simple hello world",
"pointer": "#hello"
View gist:345028
"define metadata";
"provides": [
"ep": "keymapping",
states: {
start: [
name: 'Copy to clipboard',
regex: 'ctrl_c'
View StandardTheme.js
/* Theme stuff follows */
"description": "Provides the standard Bespin theme",
"provides": [
"ep": "editorTheme",
"name": "standard",
"description": "The standard Bespin theme",
"pointer": "#theme"
View hello.js
"define metadata";
"name": "hello",
"provides": [
"ep": "command",
"name": "hello",
"description": "Says hi",
"pointer": "#helloWorld"
View Create Bespin User.txt
in bespinclient
source bin/activate
cd ../bespinserver
from bespin import config
from bespin import db
db.User.create_user(username, password, email, "/path/to/your/home/directory (optional)")
View python.js
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* The contents of this file are subject to the Mozilla Public License
* 1.1 (the "License"); you may not use this file except in compliance
* the License. You may obtain a copy of the License at
dangoor / gist:960170
Created May 7, 2011 modules - no loader required
View gist:960170
// LABjs style
<script src="js/LAB.min.js"></script>
.wait(function() {
//do something
dangoor /
Created Apr 1, 2013
Some notes about node unit testing

jasmine-node from the command line helps with a quick TDD cycle.

Here's a snippet from Validation.spec.js:

describe("Package Validation", function () {
    it("should handle a good package", function (done) {
        packageValidator.validate(basicValidExtension, {}, function (err, result) {
dangoor / ext-debug.js
Last active Dec 19, 2015
Two Ext files that cause issues with Tern.
View ext-debug.js
This file is part of Ext JS 4.1
Copyright (c) 2011-2012 Sencha Inc
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with the
dangoor / gist:6357058
Created Aug 27, 2013
Conflict in LiveDevelopment.js
View gist:6357058
* @private
* DocumentManager currentDocumentChange event handler.
function _onDocumentChange() {
var doc = _getCurrentDocument();
if (!doc) {