Skip to content

Instantly share code, notes, and snippets.

View dangoor's full-sized avatar

Kevin Dangoor dangoor

View GitHub Profile
in bespinclient
source bin/activate
cd ../bespinserver
python
from bespin import config
config.set_profile("dev")
config.activate_profile
from bespin import db
db.User.create_user(username, password, email, "/path/to/your/home/directory (optional)")
@dangoor
dangoor / modtimes.out
Created January 21, 2014 13:37
Processes that are modifying the file I'm working on.
08:20:20 stat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.js 0.000007 java
08:20:20 stat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.js 0.000004 java
08:20:50 stat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.js 0.000006 java
08:20:50 stat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.js 0.000003 java
08:20:57 stat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.js 0.000008 java
08:20:57 stat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.js 0.000004 java
08:21:50 lstat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.js 0.000023 Brackets
08:21:50 lstat64 /Users/dangoor/projects/brackets/test/spec/PreferencesBase-test.j
@dangoor
dangoor / fun.diff
Created October 8, 2013 16:07
Preview of Coming Attractions
diff --git a/brackets.settings.json b/brackets.settings.json
new file mode 100644
index 0000000..4b5ecec
--- /dev/null
+++ b/brackets.settings.json
@@ -0,0 +1,10 @@
+{
+ "jslintOptions": {
+ "vars": true,
+ "plusplus": true,
@dangoor
dangoor / gist:6685181
Created September 24, 2013 13:59
Brackets crash on 9/24
Process: Brackets Helper [57261]
Path: /Applications/Brackets.app/Contents/Frameworks/Brackets Helper.app/Contents/MacOS/Brackets Helper
Identifier: org.cef.cefclient.helper
Version: ???
Code Type: X86 (Native)
Parent Process: Brackets [57258]
User ID: 501
Date/Time: 2013-09-24 09:56:19.554 -0400
OS Version: Mac OS X 10.8.5 (12F37)
@dangoor
dangoor / Crash1 v8parsing.txt
Created September 10, 2013 18:46
Sprint 30 Crashlogs
Process: Brackets Helper [58508]
Path: /Applications/Brackets Sprint 30.app/Contents/Frameworks/Brackets Helper.app/Contents/MacOS/Brackets Helper
Identifier: org.cef.cefclient.helper
Version: ???
Code Type: X86 (Native)
Parent Process: Brackets [58504]
User ID: 501
Date/Time: 2013-09-08 20:48:49.219 -0500
OS Version: Mac OS X 10.8.4 (12E55)
@dangoor
dangoor / gist:6357058
Created August 27, 2013 18:16
Conflict in LiveDevelopment.js
/**
* @private
* DocumentManager currentDocumentChange event handler.
*/
function _onDocumentChange() {
var doc = _getCurrentDocument();
if (!doc) {
return;
}
@dangoor
dangoor / ext-debug.js
Last active December 19, 2015 15:28
Two Ext files that cause issues with Tern.
/*
This file is part of Ext JS 4.1
Copyright (c) 2011-2012 Sencha Inc
Contact: http://www.sencha.com/contact
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
dangoor / NodeUnitTestingNotes.md
Created April 1, 2013 13:51
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) {
 expect(err).toBeNull();
@dangoor
dangoor / gist:960170
Created May 7, 2011 03:24
JS.next modules - no loader required
// LABjs style
<script src="js/LAB.min.js"></script>
<script>
$LAB
.script("underscore.js")
.script("jquery.js")
.script("mycode.js")
.wait(function() {
//do something
/* ***** 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
Version
* 1.1 (the "License"); you may not use this file except in compliance
with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*