Skip to content

Instantly share code, notes, and snippets.

View Shaunakde's full-sized avatar

Shaunak De Shaunakde

View GitHub Profile
@Shaunakde
Shaunakde / index.html
Created May 11, 2015 15:47
Basic setup for a Phaser js game - http://jsbin.com/liwero
<html>
<head>
<title>Clrfeed-ex01</title>
<meta charset="utf-8">
<script src="http://cdn.jsdelivr.net/phaser/2.2.2/phaser.min.js"></script>
</head>
<body>
<div id="game"></div>
@Shaunakde
Shaunakde / index.html
Created May 12, 2015 13:28
Jquery experimentation source http://jsbin.com/nabapo
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>Jquery Bin</title>
<style id="jsbin-css">
#target{
color:#55F;
@Shaunakde
Shaunakde / index.html
Created May 21, 2015 13:10
Playing around with ReactJS - props and state demo // source http://jsbin.com/zetoco
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.12.0.js"></script>
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
@Shaunakde
Shaunakde / index.html
Created May 21, 2015 13:26
Multi-component in react JS // source http://jsbin.com/zetoco
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.12.0.js"></script>
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
@Shaunakde
Shaunakde / index.html
Created May 21, 2015 17:28
App to enter stylized text using ReactJS // source http://jsbin.com/zetoco
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.12.0.js"></script>
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
@Shaunakde
Shaunakde / pie_ploy.py
Created November 12, 2015 04:43
Code snippet to plot lots of pie charts in python
# -*- coding: utf-8 -*-
"""
Program to plot many pie charts
Created on Tue Nov 10 15:00:39 2015
@author: shaunak
"""
from pylab import *
@Shaunakde
Shaunakde / colormap_legend.py
Created December 9, 2015 06:00
Plot a colormap for inclusion in figures using matplotlib
def show_colormap(cmap):
im = np.outer(np.ones(10), np.arange(100))
fig, ax = plt.subplots(1,1, figsize=(6, 1.5),
subplot_kw=dict(xticks=[], yticks=[]))
fig.subplots_adjust(hspace=0.1)
ax.imshow(im, cmap=cmap)
show_colormap('jet')
montage -background '#FFFFFF' -font Courier-10-Pitch-Bold -label "Iteration: %f" -geometry +5+5 -pointsize 20 -tile 2 -gravity South 800 8400 9600 10200 10800 100000 Combined.PNG
shaunak@DEEPSPACE:~/Report/Evolution_of_nn$ montage -background '#FFFFFF' -font Courier-Bold -label "Iteration: %f" -geometry +5+5 -pointsize 20 -tile 2 800 8400 9600 10200 10800 100000 Combined.PNG
@Shaunakde
Shaunakde / normal_variate.py
Last active January 15, 2016 05:27
Generate 1 million random numbers from the normal distribution with a set mu and sigma
from matplotlib import pyplot as plt
import random as r
sampleSize = 1000000 #1 million
mu = 1
sigma = 5
r.seed()
output = []

Keybase proof

I hereby claim:

  • I am shaunakde on github.
  • I am shaunakde (https://keybase.io/shaunakde) on keybase.
  • I have a public key whose fingerprint is 7F8D 092D 60F8 28A1 7A40 E3B0 ED25 C050 26A7 C2F6

To claim this, I am signing this object: