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 | |
print_usage() { | |
echo "Usage:" | |
echo " Create a top level structure: 'create_ansible_structure.sh [TOP_DIRECTORY_PATH]'" | |
echo " Create a role structure: 'create_ansible_structure.sh role [TOP_DIRECTORY_PATH] [ROLE_NAME]'" | |
} | |
error() { | |
echo "Error: ${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
# Python 2.7.5 | |
# | |
# Usage: | |
# $ python puzzle_of_vine.py STEP_NUMBER | |
import sys | |
import math | |
argv = sys.argv | |
if len(argv) < 2: exit("Error") |
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 | |
# | |
# This script is woring on Mac OS X Mavericks 10.9.1. | |
# | |
# Usage: | |
# | |
# 1.Save this script in your binary directory. | |
# | |
# 2.Replace SSIDs and Labels in this script with your own environment. | |
# |
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
/* | |
* Ex. | |
* Convert "foo_bar" to "FooBar". | |
*/ | |
public static string camelize(string str) { | |
string result = ""; | |
string[] strArray = str.Split('_'); | |
foreach(string word in strArray) { | |
result += word.Substring(0, 1).ToUpper() + word.Substring(1); |