- X should be removed (from UI)
- should be passed between stories and states
- should be rendered when creating
- X should rerender when updating
- should have story_id
- should bind to dragstop
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
jQuery ($) -> | |
# Options for deeper nested fields | |
resourcesOptions = { | |
itemSelector: ".resource", | |
containerSelector: ".resources-container", | |
addSelector: ".resource-add", | |
removeSelector: ".resource-remove", | |
itemTemplateSelector: ".resource.template", # Identifies which template to use | |
new_item_index: "new_resource_index" # Same used on view options | |
} |
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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export PS1="\[\033[38m\]\u@\h\[\033[01;34m\] \W \[\033[31m\]\$(parse_git_branch)\[\033[37m\]$\[\033[00m\] " |
- Create a repository and push it to Github
- Change some files and commit it
- Create two files and edit an existent file, add all to the index and make a commit only with one of the new files
- Create another branch (cool) and change files
- (Stash here we go!)
- Go to master branch and push the modifications
- Go back to cool branch, commit and push
- Put the commits on cool branch on master branch doing a merge
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> | |
<style> | |
#my-carousel { border: 1px solid #000; padding: 10px; } | |
.carousel-item { display: none; position: relative; padding: 0 30px;} | |
.carousel-item .carousel-prev { position: absolute; left: 0; } | |
.carousel-item .carousel-next { position: absolute; right: 0; } | |
</style> | |
</head> |
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
config.after_initialize do | |
Bullet.enable = true | |
Bullet.bullet_logger = true | |
Bullet.rails_logger = true | |
Bullet.disable_browser_cache = true | |
end |
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
# Install nodejs | |
$ brew install nodejs | |
# Install npm | |
$ curl http://npmjs.org/install.sh | sh | |
# If it does not work, try it | |
$ curl https://npmjs.org/install.sh | sh | |
# Still does not work? Try it |
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
console.log(Ember.TEMPLATES['application']) | |
function (context, options) { | |
options = options || {}; | |
return templateSpec.call(container, Handlebars, context, options.helpers, options.partials, options.data); | |
} | |
console.dir(Ember.TEMPLATES); | |
Object | |
- application: function (context, options) { |
Process the messages comming from your Untied::Publisher and syncs it directly to the database.
Add this line to your Gemfile:
gem 'untied-consumer-sync'
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
[11:06:24] [create] index.703e13ff.html | |
[11:06:24] gulp-cloudfront: Identified index [ /index.703e13ff.html ] | |
[11:06:25] { [TimeoutError: Missing credentials in config] | |
plugin: 'gulp-cloudfront', | |
showStack: false, | |
name: 'TimeoutError', | |
message: 'Missing credentials in config', | |
stack: 'TimeoutError: Missing credentials in config\n at ClientRequest.<anonymous> (/Users/julianalucena/dev/work/review-pof.js/node_modules/gulp-cloudfront/node_modules/aws-sdk/lib/http/node.js:55:34)\n at ClientRequest.g (events.js:199:16)\n at ClientRequest.emit (events.js:104:17)\n at Socket.emitTimeout (_http_client.js:543:10)\n at Socket.g (events.js:199:16)\n at Socket.emit (events.js:104:17)\n at Socket._onTimeout (net.js:348:8)\n at _makeTimerTimeout (timers.js:476:11)\n at Timer.unrefTimeout (timers.js:540:5)\n' } | |
[11:06:25] [create] widget.afae0418.js | |
[ |