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
For JS: | |
+ /project-root | |
|--+ /dist Packaged stuff | |
|--+ /build Compiled stuff | |
|--+ /bin Sometimes these things have executables | |
|--+ /src Source stuff | |
| |--+ /stylus | |
| |--+ /scripts All JavasScript/LiveScript stuff | |
| | |--+ index.js Entry point to the application |
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
/** | |
Sweet.js version: 0.7.2 | |
`this` nickname `@` | |
Expected: | |
@ -> this | |
@something -> this.something | |
example: |
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
var twitterStrategy = require('passport-twitter').Strategy; | |
var facebookStrategy = require('passport-facebook').Strategy; | |
// Tem que criar um APP no twitter/facebook pra ter a chave publica e a secreta | |
// | |
var config = require('../config/passport'); | |
var twConfig = { | |
consumerKey: config.twitter.key, | |
consumerSecret: config.twitter.secret, | |
callbackURL: '/auth/twitter/callback', |
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
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var reactify = require('reactify'); | |
var source = require('vinyl-source-stream'); | |
var to5ify = require('6to5ify'); | |
gulp.task('scripts', function() { | |
browserify({ | |
insertGlobals: true, | |
entries: ['./src/index.jsx'], |
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
line 116 | |
PS1="\w \$ λ " |
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
sudo apt-get remove libpixman-1-dev x11proto-gl-dev libx11-dev libgl1-mesa-dev x11proto-xf86dri-dev libgcrypt11-dev x11proto-xcmisc-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev x11proto-composite-dev x11proto-record-dev x11proto-scrnsaver-dev libxfont-dev libxkbfile-dev x11proto-xinerama-dev x11proto-resource-dev x11proto-xf86bigfont-dev x11proto-bigreqs-dev libpciaccess-dev |
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
sudo apt-get install libgl1-mesa-dri-lts-trusty:i386 libgl1-mesa-glx-lts-trusty:i386 libc6:i386 |
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
npm config set prefix '~/.npm-packages' | |
echo 'export PATH="$PATH:$HOME/.npm-packages/bin"' >> ~/.bashrc |
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
sudo apt-get install gstreamer1.0-plugins-bad gstreamer1.0-fluendo-mp3 gstreamer1.0-plugins-ugly |
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
sudo apt-get install libgl1-mesa-dev x11proto-xf86dri-dev libgcrypt11-dev x11proto-xcmisc-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev libxfont-dev x11proto-composite-dev x11proto-scrnsaver-dev libxkbfile-dev x11proto-xinerama-dev x11proto-resource-dev x11proto-record-dev x11proto-bigreqs-dev |
OlderNewer