heroku pg:psql
- connect to Heroku Postgres psql:
Enter commands
\p
- show query buffer
\r
- reset query buffer
\g
- send query buffer to server AKA DO STUFF
array | |
0 => | |
object(stdClass)[1] | |
public 'tid' => string '194' (length=3) | |
public 'vid' => string '7' (length=1) | |
public 'name' => string 'Album Only' (length=10) | |
public 'description' => string 'A track that has been flagged as only for sale with full album purchase. Not available for individual sale. ' (length=108) | |
public 'weight' => string '0' (length=1) | |
public 'depth' => int 0 | |
public 'fields' => boolean false |
$.ajax({ | |
url: 'http://api.ioda.fm/v1/album', | |
dataType: 'jsonp', | |
data: { /* params to IODA api */ | |
format:'jsonp', | |
app_key:%KEY%, | |
id:100048 | |
}, | |
success: function(data){ | |
console.log(data); |
defaults write .GlobalPreferences NSUserKeyEquivalents -dict-add "Paste and Match Style" -string "@v" |
heroku pg:psql
- connect to Heroku Postgres psql:
Enter commands
\p
- show query buffer
\r
- reset query buffer
\g
- send query buffer to server AKA DO STUFF
export PS1='\[\e[0:35m⌘\e[m \e[0:36m\w/\e[m \e[0:33m`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\e[m\]' |
contentDidChange: (-> | |
# do updating here | |
# in this case I needed to ensure that something only happened once, after | |
# all collection items had rerendered | |
Ember.run.scheduleOnce 'afterRender', @, @initializeSortable | |
).observes('content.[]') |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
specialProp: "prop!" | |
}); |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
attributeBindings: ['foo', 'draggable', 'bar'], | |
foo: false, | |
draggable: false, | |
bar: false | |
}); |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNameBindings: ['includeBaseStyling:input-select'], | |
includeBaseStyling: true, | |
content: null, | |
optionValuePath: 'value', | |
optionLabelPath: 'label', | |
disabled: false, | |
useOptionsAsValues: false, |