- Primeiro slash command (calculadora) que fizemos: https://gist.github.com/serradura/ef3885d6ba736757150c
- Projeto de referência: https://github.com/samg/timetrap
- https://api.slack.com/slash-commands
- Ruby Explained: Procs, blocks and lambdas: http://www.eriktrautman.com/posts/ruby-explained-blocks-procs-and-lambdas-aka-closures
- Diff between block, procs and lambdas: http://awaxman11.github.io/blog/2013/08/05/what-is-the-difference-between-a-block/
- RubyMonk with running codes: https://rubymonk.com/learning/books/4-ruby-primer-ascent/chapters/18-blocks/lessons/64-blocks-procs-lambdas
This file contains hidden or 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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Serradura's version</title> | |
| <style media="screen"> | |
| body { | |
| font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', | |
| 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| margin: 0; |
This file contains hidden or 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
| ###################################### | |
| # Ruby doc: http://ruby-doc.org/core # | |
| ###################################### | |
| ######### | |
| # Setup # | |
| ######### | |
| # | |
| # Install the gems: | |
| # ================= |
This file contains hidden or 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
| # # Uninstall all installed gems - Ruby 2.3.x | |
| gem list | grep -Ev 'test-unit|rvm|rubygems-bundler|rdoc|psych|power_assert|net-telnet|io-console|gem-wrappers|executable-hooks|did_you_mean|rake|bundler-unload|bigdecimal|minitest|json' | cut -d" " -f1 | xargs gem uninstall -aIx | |
| # Uninstall all installed gems | |
| gem list | cut -d" " -f1 | xargs gem uninstall -aIx | |
| # Delete all git local tags | |
| git tag | grep | cut -d" " -f1 | xargs git tag -d | |
| # Manual js minification |
This file contains hidden or 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
| ######### | |
| # Linux # | |
| ######### | |
| *~ | |
| # KDE directory preferences | |
| .directory | |
| # Linux trash folder which might appear on any partition or disk | |
| .Trash-* |
This file contains hidden or 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
| # chmod +x OSX-setup.sh | |
| if ! type "git" > /dev/null; then | |
| echo "Installing git" | |
| brew install git | |
| fi | |
| if [ -d "~/.oh-my-zsh" ]; then | |
| # Installing oh my zsh |
This file contains hidden or 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
| /************* | |
| CONSTRUCTOR: | |
| ************* | |
| Notify.options = {"closeButton": true}; // Defines global options. | |
| notify = new Notify({"closeButton": false}); // You can pass custom options | |
| */ | |
| /******* | |
| USAGE | |
| ******* |
http://www.fernandovalente.com.br/wordpress/tag/scrum-e-xp-direto-das-trincheiras/
http://www.garralab.com/nailthumb-examples.php http://ruby.bastardsbook.com/
http://www.infoq.com/br/articles/kanban-david-anderson-conceitos-e-mitos http://www.infoq.com/br/presentations/robustez-software http://www.infoq.com/br/news/2012/08/qcon-sp-2012-resumos-tecnicos
This file contains hidden or 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
| # Examples: | |
| # client = FGraph.new("USERNAME") | |
| # | |
| # if you need see response details use: | |
| # client.request # returns a Net::HTTPFound instance, with this you can see the status, headers# Examples: | |
| # client = FGraph.new("USERNAME") | |
| # | |
| # client.data # returns the parsed response body | |
| # if you need an alias to get the api data response, use: |
This file contains hidden or 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
| DO WHAT YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Rodrigo Serradura <http://github.com/serradura> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. |