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
<?hh | |
function pass_by_value(shape('key' => string) $args ): void { | |
$args['key'] = "modified"; | |
} | |
function pass_by_reference(inout shape('key' => string) $args ): void { | |
$args['key'] = "modified"; | |
} |
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
<clipboard-copy for="empty-setup-new-repo-echo" aria-label="Copy to clipboard" class="btn btn-sm zeroclipboard-button" data-ga-click="Empty repo, click, Clicked copy new repo commands" tabindex="0" role="button"> | |
<svg class="octicon octicon-clippy" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"></path></svg> | |
</clipboard-copy> |
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
See https://github.com/benshine/Model01-Firmware/blob/master/Model01-Firmware.ino for the current version. |
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({ | |
appName: 'Ember Twiddle', | |
actions: { | |
doSomething() { | |
console.log('doing it'); | |
const promise = new Ember.RSVP.Promise(() => {}); |
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
diff --git a/addon/components/x-form.js b/addon/components/x-form.js | |
index 6b1627a..4a5a727 100644 | |
--- a/addon/components/x-form.js | |
+++ b/addon/components/x-form.js | |
@@ -1,8 +1,10 @@ | |
import Ember from 'ember'; | |
+import Changeset from 'ember-changeset'; | |
+import lookupValidator from 'ember-changeset-validations'; | |
import applyChangeset from '../utils/apply-changeset'; | |
-import layout from '../templates/components/x-field'; |
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'; | |
import EmberValidations from 'ember-validations'; | |
export default Ember.Controller.extend(EmberValidations, { | |
appName: 'Ember Twiddle', | |
kittenName: 'Arya Stark of Winterfell', | |
validations: { |
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({ | |
appName: 'Ember Twiddle', | |
service: Ember.inject.service('my-service'), | |
}); |
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({ | |
appName: 'Ember Twiddle' | |
}); |
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
export default function pauseTest(context, doneCallback, durationInSeconds = 36000) { | |
console.warn(`pauseTest is pausing for ${durationInSeconds} seconds, hi!`); | |
context.enableTimeouts(false); | |
$('#ember-testing-container').css('height', '100%'); | |
$('#ember-testing-container').css('width', '100%'); | |
$('#ember-testing').css('zoom', '100%'); | |
window.setTimeout(function() { | |
console.info('done with timeout'); | |
doneCallback(); | |
}, durationInSeconds * 1000); |