Skip to content

Instantly share code, notes, and snippets.


Chaitanya Gupta iCHAIT

View GitHub Profile
iCHAIT / FlaskDeploy
Last active Aug 29, 2015
Deployement steps for a Flask based Project.
View FlaskDeploy
1. Install python 2.7(Download python from
set environment variables to C:\Python27
2. Install pip(install then cd into corresponding directory and run command python
set environment variables to C:\Python27\Scripts
3. pip install flask(run in cmd (easy,direct))
iCHAIT / MovieScript
Last active Aug 29, 2015
AppleScript for VLC and Quicktime. #ideabin
View MovieScript
Make an AppleScript to retrieve the current movie being played
in VLC Media Player or Quicktime and
bind it to some keyboard shortcuts.
iCHAIT / Attachment
Last active Aug 29, 2015
Mail a file just by dropping it onto a droplet. #ideabin
View Attachment
Create an AppleScript named Droplet.
Just drop a file into this Droplet
It will make a new Mail with the file as an attachment
The subject set to the file’s name.
If the Mail app is closed, the script will open it for you.


  • Download any kernel version from

  • tar xJvf kernel_verson_name

  • cd linux-version-name

  • sudo apt-get install libncurss5-dev libncursesw5-dev

iCHAIT / index.html
Last active Aug 29, 2015
Map Based Entry System.
View index.html
{% extends "base.html" %}
{% block header %}
<div class="back">
{% for p in parent_url %}
<a href="{{ p.url }}">
&lt; <span class="parent_text">{{ }}</span>
{% endfor %}
Created Aug 18, 2015
Accept string for a finite automata using automata from txt file.
View DFA.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int main()
FILE *fp;
int init, *FS, **FA, i, j, col, row, fs, r, c;
char *str, temp[50];
View tictac.c
int matrix[3][3]; //this matrix stores the x and o and blank box of the game, a value of 0 is blank, 1 is x and 2 is o
int playerturn; //playerturn if it is 1 then 1st players turn else if it is 2 then its second players turn
int result; //result of the game if it is 0 then draw if it is 1 then player 1 wins if it is 2 then player 2 wins
View triangle.cpp
// main.cpp
// anzal_graphic
// Created by admin on 06/11/2015.
// Copyright 2015 __MyCompanyName__. All rights reserved.
#include <GLUT/GLUT.h>
Last active Nov 16, 2015
An inside to the 190 organization that got selected for GSoC 2014!!

1. 52°North Initiative for Geospatial Open Source Software GmbH

  • No. of proj accepted - 4

  • difficulty level/Desc. - High(geoinformation stuff)

  • tags - geo, geospatial, java, gis, spatiotemporal, geoprocessing, traffic, environment, R, R-project, earth observation, geoprocessing, spatial data, geostatistics, sensor web, search, mobile, eventing, database

  • college references - None