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
[Boolean] | |
type: boolean | |
[Integer] | |
type: integer | |
[Real] | |
type: float | |
[String] |
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
set nocompatible | |
filetype off | |
" include vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let vundle manage vundle | |
Plugin 'gmarik/Vundle.vim' " Vundle | |
Plugin 'tmhedberg/SimpylFold' " Code Folding |
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
Complete installation process: | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev | |
sudo apt-get update | |
sudo apt-get upgrade | |
cd ~ | |
mkdir git | |
cd ~/git |
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
import random | |
CATEGORY_LIST = ["Animals", "Countries", "Fruits", "Vegetables"] | |
CATEGORIES = { | |
"Animals": ["alligator", "bear", "camel", "cat", "cheetah", "chimpanzee", "cow", "crocodile", "deer", "dog", | |
"dolphin", "duck", "elephant", "fish", "fox", "frog", "giraffe", "goat", "hamster", "hippopotamus", | |
"horse", "kangaroo", "lion", "monkey", "octopus", "panda", "pig", "rabbit", "seal", "sheep", "snake", | |
"spider", "squirrel", "tiger", "wolf", "zebra"], | |
"Countries": ["Afghanistan", "Albania", "Algeria", "Argentina", "Armenia", "Aruba", "Australia", "Austria", | |
"Azerbaijan", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Bermuda", "Bhutan", |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Space Rangers</title> | |
<script src="space_ranger.js"></script> | |
<style> | |
canvas { display:block; margin:0px auto; } | |
</style> | |
</head> | |
<body style="width:99%;"> |
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
<html> | |
<!-- https://robots.thoughtbot.com/pong-clone-in-javascript --> | |
<head> | |
<script src="pong.js"></script> | |
</head> | |
<body style="width:99%; text-align:center;"></body> | |
</html> |
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 compare(property, reverse) { | |
return function cmp(obj1, obj2) { | |
if (property) { | |
obj1 = obj1[property]; | |
obj2 = obj2[property]; | |
} | |
if (typeof obj1 === 'string' || obj1 instanceof String) { | |
var result = obj1.localeCompare(obj2); | |
return reverse ? 0 - result : result; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.angular-modal-backdrop { | |
position:fixed; top:0; left:0; width:100%; height:100%; | |
background-color:rgba(0,0,0,0.8); z-index:10; } | |
.angular-modal-dialog { | |
position: fixed; width: auto; top: 50%; left: 50%; | |
background-color: #fff; box-shadow: 4px 4px 80px #000; |
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
# GenerateJson.py | |
# generates the JSON to be used to create model using the Import Json Functionality | |
# requires xlrd library, which can be obtained from https://pypi.python.org/pypi/xlrd/0.9.2 | |
# xlrd documentation => http://www.lexicon.net/sjmachin/xlrd.html | |
# Anbarasan <[email protected]> | |
# usage GenerateJson.py <path to Model params Excel file> | |
# In Excel : | |
# SheetName should be Model Name | |
# first column should be fieldname | |
# second column should be field type |
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
# GenerateImportJson.py | |
# generates the JSON to be used to create model using the Import Json Functionality | |
# Anbarasan <[email protected]> | |
# usage GenerateImportJson.py <ModelName> <path to Model params csv file> | |
import json, sys | |
modelName = sys.argv[1] | |
paramsFile = sys.argv[2] |