Skip to content

Instantly share code, notes, and snippets.

View iCHAIT's full-sized avatar

Chaitanya Gupta iCHAIT

View GitHub Profile
@iCHAIT
iCHAIT / FlaskDeploy
Last active August 29, 2015 14:09
Deployement steps for a Flask based Project.
1. Install python 2.7(Download python from https://www.python.org/downloads/)
set environment variables to C:\Python27
2. Install pip(install get-pip.py then cd into corresponding directory and run command python pip-get.py)
set environment variables to C:\Python27\Scripts
3. pip install flask(run in cmd (easy,direct))
@iCHAIT
iCHAIT / MovieScript
Last active August 29, 2015 14:10
AppleScript for VLC and Quicktime. #ideabin
Make an AppleScript to retrieve the current movie being played
in VLC Media Player or Quicktime and
bind it to some keyboard shortcuts.
@iCHAIT
iCHAIT / Attachment
Last active August 29, 2015 14:11
Mail a file just by dropping it onto a droplet. #ideabin
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.
@iCHAIT
iCHAIT / GSoC_2014.md
Last active November 16, 2015 13:10
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

@iCHAIT
iCHAIT / LUL.md
Last active August 29, 2015 14:21

##KERNEL COMPILATION

  • Download any kernel version from https://www.kernel.org.

  • tar xJvf kernel_verson_name

  • cd linux-version-name

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

@iCHAIT
iCHAIT / index.html
Last active August 29, 2015 14:21
Map Based Entry System.
{% extends "base.html" %}
{% block header %}
<div class="back">
{% for p in parent_url %}
<a href="{{ p.url }}">
&lt; <span class="parent_text">{{ p.name }}</span>
</a>
{% endfor %}
</div>
@iCHAIT
iCHAIT / DFA.c
Created August 18, 2015 04:57
Accept string for a finite automata using automata from txt file.
#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];
https://gist.github.com/kevinelliott/3135044
#include<iostream>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#include<string.h>
#include<GLUT/glut.h>
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
//
// main.cpp
// anzal_graphic
//
// Created by admin on 06/11/2015.
// Copyright 2015 __MyCompanyName__. All rights reserved.
//
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>