Something about calling createElement within the function not ahead of time makes the context of Provider work. Why?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('classyExtends', ['classy-core']).classy.plugin.controller | |
name: 'classyExtends' | |
classObjs: {} | |
waitingClassConstructors: {} | |
options: | |
enabled: true | |
convertInject: (classObj) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*\ | |
* Controller-mixin pattern | |
\*/ | |
// At it's simplest: | |
myModule | |
.controller('aCtrl', function($scope, aCtrlMixin1, aCtrlMixin2, condition) { | |
if (condition) { | |
aCtrlMixin1($scope) | |
} else { |
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
import sys | |
import os | |
from subprocess import Popen, PIPE | |
if __name__ == '__main__': | |
base_path = os.path.abspath(os.path.dirname(__file__)) | |
args = sys.argv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- PLACE IN .xbmc/userdata/keymaps/Keymap.xml --> | |
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC --> | |
<!-- The <global> section is a fall through - they will only be used if the button is not --> | |
<!-- used in the current window's section. Note that there is only handling --> | |
<!-- for a single action per button at this stage. --> | |
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox --> | |
<!-- gamepads. --> | |
<!-- The format is: --> | |
<!-- <device> --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// api/controllers/AuthController.js | |
var passport = require('passport'); | |
var AuthController = { | |
login: function (req,res) | |
{ | |
res.view(); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:fileencoding=utf-8:ft=conf | |
# Font family. You can also specify different fonts for the | |
# bold/italic/bold-italic variants. By default they are derived automatically, | |
# by the OSes font system. Setting them manually is useful for font families | |
# that have many weight variants like Book, Medium, Thick, etc. For example: | |
# font_family Operator Mono Book | |
# bold_font Operator Mono Medium | |
# italic_font Operator Mono Book Italic | |
# bold_italic_font Operator Mono Medium Italic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeEach(function() { | |
this.addMatchers({ | |
toBeInstanceOf: function(expectedInstance) { | |
var actual = this.actual; | |
var notText = this.isNot ? " not" : ""; | |
this.message = function() { | |
return "Expected " + actual.constructor.name + notText + " is instance of " + expectedInstance.name; | |
}; | |
return actual instanceof expectedInstance; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## MimeType handling | |
## ------------------- | |
## | |
## Use the "Content-Type" extended attribute to obtain mime type if | |
## possible | |
## | |
## Source: http://redmine.lighttpd.net/wiki/1/Mimetype.assignDetails | |
## | |
mimetype.use-xattr = "disable" |
OlderNewer