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 akka.testkit._ | |
import org.scalatest._ | |
import scala.collection.mutable | |
import scala.concurrent.duration._ | |
import scala.reflect.ClassTag | |
import scala.util._ | |
/** | |
* Extensions to [[akka.testkit.TestKit]] for testing actors |
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 scala.annotation.tailrec | |
import scala.language.experimental.macros | |
import scala.reflect.macros.blackbox | |
// UPDATE: now published for your convenience! | |
// https://github.com/dwickern/scala-nameof | |
object Macros { | |
def nameOfImpl(c: blackbox.Context)(x: c.Tree): c.Tree = { | |
import c.universe._ |
This file has been truncated, but you can view the full file.
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
72036 silly gunzTarPerm extractEntry node_modules/node-gyp/node_modules/path-array/node_modules/array-index/README.md | |
72037 silly gunzTarPerm modified mode [ 'node_modules/node-gyp/node_modules/path-array/node_modules/array-index/README.md', | |
72037 silly gunzTarPerm 420, | |
72037 silly gunzTarPerm 438 ] | |
72038 silly gunzTarPerm extractEntry node_modules/node-gyp/node_modules/path-array/node_modules/array-index/index.js | |
72039 silly gunzTarPerm modified mode [ 'node_modules/node-gyp/node_modules/path-array/node_modules/array-index/index.js', | |
72039 silly gunzTarPerm 420, | |
72039 silly gunzTarPerm 438 ] | |
72040 silly gunzTarPerm extractEntry node_modules/node-gyp/node_modules/path-array/node_modules/array-index/test.js | |
72041 silly gunzTarPerm modified mode [ 'node_modules/node-gyp/node_modules/path-array/node_modules/array-index/test.js', |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
imageLoaded: 'image not yet loaded', | |
// purely to make sure image loads each time and | |
// is not cached for testing | |
volatileSrc: Ember.computed('src', function(){ | |
return this.get('src') + '?cache=' + new Date().toISOString(); | |
}), |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
imageLoaded: 'image loading', | |
imageWidth: 'width loading', | |
// purely to make sure image loads each time and | |
// is not cached for testing | |
volatileSrc: Ember.computed('src', function(){ | |
return this.get('src') + '?cache=' + new Date().toISOString(); |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
send() { this.sendAction('send'); }, | |
delete() { this.sendAction('delete'); } | |
} | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
/*openModal: function(modal, opts) { | |
this.controllerFor(modal).set('model', opts); | |
return this.render(modal, { | |
into: 'application', | |
outlet: 'modal' | |
}); | |
}, |
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 Ember from 'ember'; | |
export class CancellablePromise extends Ember.RSVP.Promise { | |
constructor(resolver, cancel, label) { | |
super(function (resolve, reject) { | |
try { | |
resolver(function resolved(value) { | |
cleanup(); | |
resolve(value); | |
}, function rejected(reason) { |
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 Ember from 'ember'; | |
const DEBOUNCE_MILLIS = 300; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
value: 1, | |
displayText: function() { |
OlderNewer