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
<?php | |
//would be controllers/pg.php | |
class pg extends Controller { | |
var $pgItem; | |
var $parentPage; | |
function pg() { | |
//do some constructor related stuff here | |
} | |
function permalink($segments) { |
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
#!/bin/bash | |
APP_URL=`php -r "print json_decode('$RECEIVE_DATA', 1)[\"push_metadata\"][\"app_info\"][\"web_url\"];"` | |
echo "----> APP URL DETECTED AS: $APP_URL" | |
echo $APP_URL > appurl.txt |
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
module.exports = { | |
production: { | |
buildEnv: 'production', // Override the environment passed to the ember asset build. Defaults to 'production' | |
store: { | |
type: "S3", | |
accessKeyId: "XXX", | |
secretAccessKey: "XXX", | |
bucket: "bucket-index", | |
acl: 'public-read', //optional, e.g. 'public-read', if ACL is not configured, it is not sent | |
endpoint: "storage.googleapis.com", |
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
@charges = [] | |
Stripe::Charge.stub(:create) { |hash| @charges << hash } |
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
Sup dawg | |
I heard you like ember | |
Hey | |
Larry rules | |
Sup | |
heyo | |
Seems to work pretty well | |
This works | |
mkay | |
Yo yo yo |
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
"scripts": { | |
"postdeploy": "bundle exec rake db:migrate; bundle exec rake db:seed" | |
} |
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
module ProMotion | |
module Table | |
module LoadmoreClassMethods | |
def load_moreable=(val) | |
@load_moreable = val | |
end | |
def load_moreable | |
@load_moreable || false | |
end | |
def load_more_options=(val) |
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
channelCallback: (msg) -> | |
msgs = jQuery.parseJSON(msg.payload) | |
newMessages = new Ember.RecordArray() | |
newMessages.set('modelClass', App.Message) | |
newMessages.load(App.Message, msgs) | |
newMessages.set('isLoaded', true) | |
@set('messages', newMessages) |
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
{ | |
"cmd": ["/bin/bash", "-l", "-c", "echo 'Running RSPEC for $file'; source .rvmrc && bundle exec rspec $file"], | |
"working_dir": "${project_path:${folder:${file_path}}}", | |
"selector": "source.ruby", | |
"variants": [ | |
{ "cmd": ["/bin/bash", "-l", "-c", "echo 'Running entire RSPEC Suite'; source .rvmrc && bundle exec rspec"], | |
"name": "Run", | |
"working_dir": "${project_path:${folder:${file_path}}}" | |
} | |
] |