Skip to content

Instantly share code, notes, and snippets.

@dangoor
dangoor / server.cfg
Created Jan 14, 2015
Set for offline mode
View server.cfg
;Sets whether to inform all of a Player's Achievement
announce-player-achievements=true
;Sets whether to allow items with enchantments to stack with non-enchanted items
allow-enchantment-stacking=false
;The default message to use for user bans
ban-default-message=You are banned from this server.
;The message to prefix to the timestamp of a tempban expiration
ban-expiration-date-message=Your Ban will be lifted at
;Valid default placeholders are:
;%prefix (player prefix), %name (player name), %group (main group)
View keybase.md

Keybase proof

I hereby claim:

  • I am dangoor on github.
  • I am dangoor (https://keybase.io/dangoor) on keybase.
  • I have a public key whose fingerprint is 801D 606D 6BFD 88F3 56C1 2E4B 1B2B 8DCA E40F 312F

To claim this, I am signing this object:

View PreferencesManager-test.js
/*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
@dangoor
dangoor / modtimes.out
Created Jan 21, 2014
Processes that are modifying the file I'm working on.
View modtimes.out
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 Oct 8, 2013
Preview of Coming Attractions
View fun.diff
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 Sep 24, 2013
Brackets crash on 9/24
View gist:6685181
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)
View Crash1 v8parsing.txt
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 Aug 27, 2013
Conflict in LiveDevelopment.js
View gist:6357058
/**
* @private
* DocumentManager currentDocumentChange event handler.
*/
function _onDocumentChange() {
var doc = _getCurrentDocument();
if (!doc) {
return;
}
@dangoor
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
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 Apr 1, 2013
Some notes about node unit testing
View NodeUnitTestingNotes.md

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();