Skip to content

Instantly share code, notes, and snippets.

View sohamkamani's full-sized avatar
🐦
🐧

Soham Kamani sohamkamani

🐦
🐧
View GitHub Profile
<html>
<head>
<title>My first Three.js app</title>
<style>
.list-item {
font-size: 1.2em;
color: black;
}
.completed {
@sohamkamani
sohamkamani / dirs-to-js.py
Created March 12, 2015 14:41
Lists all directories and stores them as a variable in a js file
import os
import os.path
d='.'
dirs = [os.path.join(d,o) for o in os.listdir(d) if os.path.isdir(os.path.join(d,o))]
dir_sanitized = []
for dir in dirs:
dir_sanitized.append(dir.split('/')[1])
dirmap = open('dirmap.js','w')
dirmap.write("var directories=[");
@sohamkamani
sohamkamani / newHTMLProject.sh
Created February 15, 2015 16:12
Creates a new html web project , with the initial linked css and js files ready
echo "Enter the project name"
read -e NAME
mkdir $NAME
cd $NAME
mkdir css
touch css/index_style.css
mkdir js
touch js/index.js
@sohamkamani
sohamkamani / newProject.sh
Last active August 29, 2015 14:14
Shell script to create a new ruby project structure
echo "Enter the project name"
read -e NAME
echo "Enter name of dummy directory"
read -e DUMMY
mkdir $NAME
cd $NAME
mkdir lib