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
/*------------------------------------------------------------------- | |
* | |
* TRACK SOURCE WITH A COOKIE | |
* This will check if the query and save its values into a cookie for 180 days and will only be removed if they clear their cookies or if they visit via another source query | |
* ex. http://rmcad.edu/event/rmcad-create-day-0?utm_source=Social&utm_medium=Twitter&utm_campaign=CreateDay2.15 | |
* utm_source = Social | |
* utm_medium = Twitter | |
* utm_campaign = CreateDay2.15 | |
* | |
-------------------------------------------------------------------*/ |
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
/* ---------------------------------------------------------------------------------------------------------- | |
03 scroll to #section-id-of-div | |
---------------------------------------------------------------------------------------------------------- */ | |
function smoothScroll(el, target){ | |
// if the hash is in the URL but not on the page... ex #cosmetic-surgery but not #section-this-div | |
if(el !== null){ | |
var $this = $(el), | |
target = el.hash, | |
$target = $(target); | |
// check if the target has an offset, if its NOT undefined then run the code to allow things to scroll |
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', | |
thing: { | |
'first-name': 'Aaron', | |
'hello_last-name': '', | |
'status': '', | |
}, | |
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', | |
thing: { | |
'first-name': '', | |
'last-name': '', | |
'status': '', | |
}, | |
actions: { |
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 DS from 'ember-data'; | |
import UrlTemplates from 'ember-data-url-templates'; | |
export default DS.JSONAPIAdapter.extend(UrlTemplates, { | |
host: '', | |
namespace: 'api', | |
urlTemplate: '{+host}/{+namespace}/{pathForType}{/id}', | |
}); |
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({ | |
people: Ember.computed.or('model.{current,previous}.value'), | |
isLoading: Ember.computed.reads('model.current.isRunning'), | |
fetchError: Ember.computed.reads('model.current.error'), | |
actions: { | |
fetchMore() { | |
this.send('refreshModel'); |
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({ | |
db: Ember.computed('refreshDb', function() { | |
let dump = window.server.schema.db.dump(); | |
return JSON.stringify(dump, null, 2); | |
}), |
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
git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d |
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({ | |
}); |
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({ | |
db: Ember.computed('refreshDb', function() { | |
let dump = window.server.schema.db.dump(); | |
return JSON.stringify(dump, null, 2); | |
}), |
NewerOlder