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
######################### | |
# update 4 June 2014 | |
# ignore Pods folder and Podfile.lock | |
######################### | |
Pods | |
Podfile.lock | |
######################### | |
# https://gist.github.com/foundry/4383910 |
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
# 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 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 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 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 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 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'; | |
// ref: http://blog.victorquinn.com/javascript-promise-while-loop | |
var q = require('bluebird'); | |
var promiseWhile = function (condition, action) { | |
var resolver = q.defer(); | |
var loop = function () { |
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
diff --git a/cordova-lib/src/cordova/platformsConfig.json b/cordova-lib/src/cordova/platformsConfig.json | |
index d8f85d0..4aa53e8 100644 | |
--- a/cordova-lib/src/cordova/platformsConfig.json | |
+++ b/cordova-lib/src/cordova/platformsConfig.json | |
@@ -5,6 +5,12 @@ | |
"url": "https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git", | |
"version": "3.7.0" | |
}, | |
+ "osx" : { | |
+ "hostos" : ["darwin"], |
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
apm install angularjs | |
apm install atom-alignment | |
apm install autocomplete-plus | |
apm install autoprefixer | |
apm install change-case | |
apm install color-picker | |
apm install csscomb | |
apm install csslint | |
apm install editor-stats | |
apm install editorconfig |
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
private static final String HOST_EMULATOR = "10.0.2.2"; | |
private static final String HOST_PRODUCTION = "example.com"; | |
public static String getHost() { | |
if (BuildConfig.DEBUG) { | |
return (Build.PRODUCT).contains("sdk") ? HOST_EMULATOR : BuildConfig.LOCAL_IP; | |
} | |
return HOST_PRODUCTION; | |
} |
OlderNewer