Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View julianalucena's full-sized avatar

Juliana Lucena julianalucena

  • Incognia
  • Recife, Pernambuco, Brazil
View GitHub Profile
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
}
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\] "

Task

  • 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

Story

@julianalucena
julianalucena / gist:1604350
Created January 13, 2012 02:58
Kind of dojo about Git

Kind of dojo about Git

  • 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
@julianalucena
julianalucena / backbone-carousel.html
Created October 8, 2015 13:07 — forked from jjulian/backbone-carousel.html
A simple carousel implemented with a single Backbone view
@julianalucena
julianalucena / gist:3501788
Created August 28, 2012 18:29
bullet config
config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Bullet.rails_logger = true
Bullet.disable_browser_cache = true
end
@julianalucena
julianalucena / gist:3706606
Created September 12, 2012 13:30
Mocha setup
# 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
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) {
@julianalucena
julianalucena / README.md
Created December 13, 2012 17:23
Untied Consumer Sync readme

Untied Consumer Sync

Process the messages comming from your Untied::Publisher and syncs it directly to the database.

Instalation

Add this line to your Gemfile:

gem 'untied-consumer-sync'
[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
[