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/bash | |
| # 請在所有的 apt-get install 後面補上 -y | |
| sudo apt-get install software-properties-common | |
| if ! grep -q "ansible/ansible" /etc/apt/sources.list /etc/apt/sources.list.d/*; then | |
| sudo apt-add-repository -y ppa:ansible/ansible | |
| fi |
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
Show hidden characters
| { | |
| "auto_complete": true, | |
| "auto_indent": true, | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme", | |
| "default_encoding": "UTF-8", | |
| "detect_indentation": true, | |
| "draw_indent_guides": true, | |
| "draw_white_space": true, |
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 | |
| # Configure homebrew permissions to allow multiple users on MAC OSX. | |
| # Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
| # allow admins to manage homebrew's local install directory | |
| chgrp -R admin /usr/local | |
| chmod -R g+w /usr/local | |
| # allow admins to homebrew's local cache of formulae and source files | |
| chgrp -R admin /Library/Caches/Homebrew |
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 gulp = require('gulp'); | |
| var browserify = require('browserify'); | |
| var babelify = require('babelify'); | |
| var source = require('vinyl-source-stream'); | |
| gulp.task('browserify', function() { | |
| return browserify('./js/app.js').transform(babelify, {presets: ["es2015", "react"]}) | |
| .bundle() | |
| .pipe(source('bundle.js')) | |
| .pipe(gulp.dest('js')); |