| layout | permalink | title | tweet_title | og_image_relative |
|---|---|---|---|---|
post |
/labs/reactjs-introduction-for-people-who-know-just-enough-jquery-to-get-by |
React.js Introdução para pessoas que já sabem o suficiente de jQuery para sobreviver |
Uma introdução à #React.js para pessoas que já sabem o suficiente de jQuery para sobreviver |
/images/labs/jquery-style-vs-react-style.png |
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
| for FILENAME in *; do NEWFILENAME=$(echo "$FILENAME" | tr '[:upper:]' '[:lower:]' | tr ' ' '_'); mv "$FILENAME" "$NEWFILENAME"; done |
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
| var Nightmare = require('nightmare') | |
| , vo = require('vo') | |
| , fs = require('fs') | |
| , request = require('request') | |
| , account = require('./account.js') | |
| , username = account.username | |
| , password = account.password | |
| ; | |
| vo(run)(function(err, result) { |
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
| // #general C067W8KMX | |
| // icaro U067W8YQG | |
| var cheerio = require('cheerio') | |
| , request = require('request') | |
| , slackToken = 'xoxp-6268274772-6268304832-9597136048-0c6704' | |
| , slackTarget = 'U067W8YQG' | |
| ; | |
| if(process.argv.length < 3 || paramIsNumber() === false ){ | |
| console.log('alelobot.js 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
| var Nightmare = require('nightmare'); | |
| var username = ''; | |
| var password = ''; | |
| new Nightmare() | |
| .viewport(800, 600) | |
| .goto('https://instagram.com/accounts/login/') | |
| .wait() |
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
| var timeInit = new Date(); | |
| var Nightmare = require('nightmare'); | |
| // Dados de acesso | |
| var Aluno = { | |
| usuario : 'seu_usuario', | |
| senha : 'sua_senha', | |
| unidade : '1' // número da unidade, ex.: 63 | |
| }; |
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
| // Code goes here | |
| angular.module('fasterAngular', []). | |
| controller('mycontroller', ['$scope', function($scope){ | |
| $scope.framework = 'ReactJs'; | |
| $scope.data = { | |
| cols: [], | |
| rows: [] | |
| }; | |
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
| var Table = React.createClass({ | |
| render: function render() { | |
| var _self = this; | |
| var thead = React.DOM.thead({}, | |
| React.DOM.tr({}, | |
| this.props.cols.map(function (col) { | |
| return React.DOM.th({}, col); | |
| }))); |
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
| #!/bin/sh -e | |
| ### BEGIN INIT INFO | |
| # Provides: something warm and fuzzy | |
| # Required-Start: vboxdrv | |
| # Required-Stop: vboxdrv | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts suspended vagrant boxes and suspends running vagrant boxes | |
| # Description: | |
| ### END INIT INFO |
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
| [global_config] | |
| title_hide_sizetext = True | |
| title_transmit_bg_color = "#18c814" | |
| [keybindings] | |
| [profiles] | |
| [[default]] | |
| word_chars = "-A-Za-z0-9,./?%&#:_=+@~" | |
| palette = "#000000:#f57900:#73d216:#d4c17f:#41c8f2:#ce5c00:#c17d11:#73d216:#262626:#edd400:#73d216:#ef2929:#00abff:#ba9f00:#e9b96e:#ad7fa8" | |
| background_image = None | |
| background_darkness = 0.82 |