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
<b>Deep links</b> | |
<br /> | |
<a href="cashme://cashstaging.app/login">cashme://cashstaging.app/login</a> | |
<br /> | |
<a href="cashme://cash.app/login">cashme://cash.app/login</a> | |
<br /> | |
<a href="cashme://cashstaging.app/f/default">cashme://cashstaging.app/f/default</a> | |
<br /> | |
<a href="cashme://cash.app/f/default">cashme://cash.app/f/default</a> | |
<br /> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Home</title> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<script src="https://portal.qa.afterpay-beta.com/afterpay.js"></script> | |
</head> | |
<body> |
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
const fs = require("fs"); | |
const words = fs.readFileSync('/usr/share/dict/words', 'utf-8').split("\n") as string[]; | |
const root = { | |
children: {}, | |
word: false, | |
}; | |
function addWord(parent: any, word: any) { |
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
### Keybase proof | |
I hereby claim: | |
* I am praxxis on github. | |
* I am praxxis (https://keybase.io/praxxis) on keybase. | |
* I have a public key ASBiIGTehYr7z79sDwHzv1qSGF6F5qPvm4lf1GsO4b-6Ugo | |
To claim this, I am signing this object: |
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: { | |
alert1() { | |
alert('yes 1'); | |
}, | |
alert2() { |
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
test('creates a local creation time property when saving', function () { | |
expect(1); | |
var now = new Date().getTime(), | |
clock = sinon.useFakeTimers(now), | |
model = App.Model.create(), | |
promise = Em.RSVP.resolve(), | |
superStub = sinon.stub(model, '_super').returns(promise); | |
model.save().then(function () { |
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
App.CommentsNewController = Em.ObjectController.extend({ | |
// create an empty comment when this controller is first created, and when its parent controller changes its model | |
createNewComment: function () { | |
this.set('model', DS.Comment.create()); // I don't use Ember Data so this might not be correct | |
}.on('init').observes('parentController.model'), // `parentController` is a relationship set up by `render` | |
actions: { | |
save: function () { | |
var comment = this.get('model'); | |
comment.save(); |
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
var LoadingView = Backbone.Marionette.ItemView.extend({ | |
template: 'Loading...' | |
}); | |
var LoadedView = Backbone.Marionette.ItemView.extend({ | |
template: 'Loaded!' | |
}); | |
var View = Backbone.Marionette.Layout.extend({ | |
template: '<div class="example"></div>', |
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 json | |
boards = [ | |
(False, """[ | |
[".", ".", ".", ".", ".", ".", "."], | |
[".", ".", ".", ".", ".", ".", "."], | |
[".", ".", ".", ".", ".", ".", "."], | |
[".", "O", "X", "X", "X", "O", "."], | |
[".", "O", "X", "X", "O", "O", "X"], |