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
| 'use strict'; | |
| module.exports = { | |
| html: '<%= config.web %>/index.html', | |
| options: { | |
| dest: '<%= config.dist %>', | |
| flow: { | |
| html: { | |
| steps: { | |
| js: ['concat', 'uglifyjs'] |
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
| function Get-IniContent ($filePath) | |
| { | |
| $ini = @{} | |
| $content = Get-Content $filePath | |
| if ( $content -match "^\[(.+)\]" ) { | |
| switch -regex -file $FilePath | |
| { | |
| "^\[(.+)\]" # Section | |
| { | |
| $section = $matches[1] |
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
| //********************************************************** | |
| // Assignment: Program 2 | |
| // Account: (Enter your cs110 account number here) | |
| // | |
| // Author: (Enter your full name here) | |
| // | |
| // Completion time: (Enter the total number of hours you | |
| // spent on the assignment) | |
| // | |
| // Honor Code: I pledge that this program represents my own |
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 | |
| echo "NB! This process could be too destructive sometimes and you may need to run 'bundle' command from your project directory." | |
| echo "Do you want to cleanup all gemsets?" | |
| read -p "(anything other than 'yes' will cancel) > " ANSWER | |
| if [[ $ANSWER != "yes" ]] | |
| then | |
| echo "Phew...\nMay be another day." | |
| else |
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
| # switch npm | |
| echo '\n#alias for cnpm\nalias cnpm="npm --registry=registry.npm.taobao.org \ | |
| --cache=$HOME/.npm/.cache/cnpm \ | |
| --disturl=http://npm.taobao.org/dist \ | |
| --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc | |
| #switch Ruby gem | |
| gem sources --remove https://rubygems.org/ | |
| gem sources -a https://ruby.taobao.org/ |
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
| ######################### | |
| # update 4 June 2014 | |
| # ignore Pods folder and Podfile.lock | |
| ######################### | |
| Pods | |
| Podfile.lock | |
| ######################### | |
| # https://gist.github.com/foundry/4383910 |
NewerOlder