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
/** | |
* All scripts to be run on the client via executeAsyncScript or | |
* executeScript should be put here. | |
* | |
* NOTE: These scripts are transmitted over the wire as JavaScript text | |
* constructed using their toString representation, and *cannot* | |
* reference external variables. | |
* | |
* Some implementations seem to have issues with // comments, so use star-style | |
* inside scripts. (TODO: add issue number / example implementations |
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 coffee | |
fs = require 'fs' | |
{parseString:parseXml, Builder:XmlBuilder} = require 'xml2js' | |
directoryExists = (path) -> | |
try | |
return fs.statSync(path).isDirectory() | |
catch e | |
return false |
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 coffee | |
fs = require 'fs' | |
{parseString:parseXml, Builder:XmlBuilder} = require 'xml2js' | |
directoryExists = (path) -> | |
try | |
return fs.statSync(path).isDirectory() | |
catch e | |
return false |
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 coffee | |
fs = require 'fs' | |
{parseString:parseXml, Builder:XmlBuilder} = require 'xml2js' | |
directoryExists = (path) -> | |
try | |
return fs.statSync(path).isDirectory() | |
catch e | |
return false |
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
foo = => { | |
Rx.Scheduler.asap.schedule( () => { | |
window.bar = 'baz'; | |
}); | |
} | |
// import { foo } from 'something' | |
it('should set bar', (done) => { | |
foo(); |
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
foo = => { | |
Rx.Scheduler.asap.schedule( () => { | |
window.bar = 'baz'; | |
}); | |
} | |
// import { foo } from 'something' | |
it('should set bar', () => { | |
foo(); |
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
-- file: app.module -- | |
// import browser etc | |
import { XModule } from './x.module' | |
@NgModule({ | |
imports: [ ..., XModule ] | |
// entryComponents? | |
// bootstrap? | |
// something? |
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 { Component, Inject, EventEmitter } from '@angular/core' | |
import { FormsModule, FormBuilder } from '@angular/forms' | |
export class FormInputComponent | |
@annotations = [ | |
new Component | |
selector: 'form-input' | |
inputs: [ 'placeholder', 'value', 'name'] | |
outputs: [ 'valueChange' ] | |
template: """ |
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
# based on ion-sticky | |
# this is heavily modified however as ion-sticky does not work with | |
# collection-repeat. To make this work we make the assumption that | |
# if an element is removed from the 'top' of the list it does NOT | |
# cease to be there. (collection-repeat prunes the top as it goes out of | |
# scroll) | |
define ['ionic'], -> | |
angular.module 'bl-ion-sticky', ['ionic'] | |
.directive 'blIonSticky', ($ionicPosition) -> |