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
// mock ajax | |
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) { | |
if ( /^\/?mock-ajax/.test( originalOptions.url ) ) { | |
// make new deferred and save any success/error handlers | |
var success = options.success, | |
error = options.error; | |
// kill off the old handlers | |
options.success = options.error = null; |
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
#!/usr/bin/env node | |
// todo: try to require jshint here, instead of spawning process, then fallback to spawning process. | |
var jshint = nrequire('jshint'); | |
if (jshint) return process.exit(0); | |
// jshint not installed locally, spawn process instead. | |
// basically the same, but less pretty. | |
var exec = require('child_process').exec; |
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
<Graphic version="2.0" xmlns="http://ns.adobe.com/fxg/2008" | |
scaleGridLeft="0" scaleGridTop="0" scaleGridRight="0" scaleGridBottom="0"> | |
<Rect x="0" y="0" width="1" height="1"> | |
<fill> | |
<SolidColor color="#FFFFFF" alpha="0" /> | |
</fill> | |
</Rect> | |
</Graphic> |
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
package control | |
{ | |
public class AlertsController | |
{ | |
[Inject( "alertsDelegate" )] | |
public var delegate:CacheEnabledDelegate; | |
[Inject] | |
public var serviceHelper:IServiceHelper; | |
NewerOlder