Sel Pattern
Short link: caseywatts.com/selpattern
Simplest Example
const sel = {
addonCard: 'a.card'
};
Short link: caseywatts.com/selpattern
const sel = {
addonCard: 'a.card'
};
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>ORG</ShortName> | |
<Description>Salesforce Org Chart</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="16" height="16" type="image/x-icon">data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHRpdGxlPlNhbGVzZm9yY2UgT3JnQ2hhcnQ8L3RpdGxlPgogICAgPHNjcmlwdCBzcmM9Ii9hc3NldHMvZDMudjMubWluLmpzIj48L3NjcmlwdD4KICAgIDxzY3JpcHQgc3JjPSIvYXNzZXRzL2pxdWVyeS0zLjAuMC5taW4uanMiPjwvc2NyaXB0PgogICAgPHNjcmlwdCBzcmM9Ii9hc3NldHMvbWFnaWNfZHluYW1pYy5qcyI+PC9zY3JpcHQ+CiAgICA8c2NyaXB0PgogICAgICAoZnVuY3Rpb24oaSxzLG8sZyxyLGEsbSl7aVsnR29vZ2xlQW5hbHl0aWNzT2JqZWN0J109cjtpW3JdPWlbcl18fGZ1bmN0aW9uKCl7CiAgICAgIChpW3JdLnE9aVtyXS5xfHxbXSkucHVzaChhcmd1bWVudHMpfSxpW3JdLmw9MSpuZXcgRGF0ZSgpO2E9cy5jcmVhdGVFbGVtZW50KG8pLAogICAgICBtPXMuZ2V0RWxlbWVudHNCeVRhZ05hbWUobylbMF07YS5hc3luYz0xO2Euc3JjPWc7bS5wYXJlbnROb2RlLmluc2VydEJlZm9yZShhLG0pCiAgICAgIH0pKHdpbmRvdyxk |
You can use async/await
in your Ember testing suite, today! This blog post explains the situation pretty thoroughly. Also check out this blog post.
It's great in tests, but not quite useful for app code yet.
There are three ways we can get it to work. If you try async/await
without any of these changes, you will get the error regeneratorRuntime is not defined
.
Method | Size ※ | app code | test code |
---|---|---|---|
includePolyfill: true | 30kb | yes | yes |
ember-maybe-import-regenerator | 2kb | yes | yes |
Short URL: caseywatts.com/electronworkshop
Short url: caseywatts.com/minecraft
Casey's server uses "Minecraft Forge" 1.12.
These instructions will install minecraft version 1.12 with forge. Forge lets us have (optional) client-side mods, like the map one. You don't have to use mods if you don't want to, but you do need the Forge 1.12
minecraft version.
These instructions assume you already have the normal app Minecraft
(launcher).
This example is for an ember-data model named 'plan'.
Proxy creation can be done in a computed property in the controller
/component
. It won't re-compute unless the entire plan
changes (properties on plan
can change and it won't trigger this). And then we can use applyBufferedChanges
inside of the actions hash save action.
// controller plans/edit.js
planProxy: computed('plan', function() {
return BufferedProxy.create({content: this.get('plan')});
}),
actions: {
Other ways to do the same thing (without the copy into clipboard):
heroku sudo api get /apps/some-app-name | jq '.id'
(sudo is herokai only)heroku apps:info --json -a some-app-name | jq .app.id
# for bash | |
### Search History (autocomplete style~) | |
# Press up-arrow for previous matching command | |
"\e[A":history-search-backward | |
# Press down-arrow for next matching command | |
"\e[B":history-search-forward |
Short link to this page: http://caseywatts.com/ptt
Other gists & tricks: http://caseywatts.com/gists-and-tricks
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
Add Page...
PTT
(push to talk) or whatever you'd like (maybe short so it stays on your bookmarks toolbar)short url to these instructions: caseywatts.com/darken
Other gists & tricks: http://caseywatts.com/gists-and-tricks
brew install imagemagick
brew install ghostscript