Skip to content

Instantly share code, notes, and snippets.

View AnimeshShaw's full-sized avatar
🏠
Working from home

Animesh Shaw AnimeshShaw

🏠
Working from home
View GitHub Profile
@AnimeshShaw
AnimeshShaw / 3DSquareRotationThreeJS.html
Created June 14, 2015 10:36
3D Rotating Square with WebGL in Three.js
<!DOCTYPE html>
<html>
<head>
<title>3D Rotating Square in WebGL using Three.js</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/libs/three.js/three.js" type="text/javascript"></script>
<style type="text/css">
@AnimeshShaw
AnimeshShaw / JStackDemo.java
Created June 13, 2015 16:19
JStack Demo Usage
import com.codehackersblog.JStack.JStack;
/**
*
* @author psychocoder
*/
public class JStackDemo {
public static void main(String[] args) {
@AnimeshShaw
AnimeshShaw / JStack.java
Created June 13, 2015 16:17
JStack Implementation
package com.codehackersblog.JStack;
import java.util.Iterator;
import java.util.LinkedList;
/**
*
* @author Psycho_Coder
* @param <T>
*/
@AnimeshShaw
AnimeshShaw / StackInterface.java
Created June 13, 2015 15:53
JStack Interface
package com.codehackersblog.JStack;
/**
*
* @author Psycho_Coder
* @param <T>
*/
public interface StackInterface<T> {
/**
@AnimeshShaw
AnimeshShaw / L_Systems_Tree.java
Created June 13, 2015 15:28
Modified L-Systems Tree Fractal in Java
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RenderingHints;
import javax.swing.JFrame;
import javax.swing.JPanel;
@AnimeshShaw
AnimeshShaw / PeterdeJongAttractor.py
Last active May 27, 2017 14:02
Peter de Jong Attractor Visualization using PyGame in Python.
'''
Created on 17-Jan-2015
@author: Psycho_Coder
'''
from math import sin, cos
from PIL import Image
import pygame, sys, os
'''
Created on 03-Jan-2015
@author: Psycho_Coder
'''
import platform
import sys
# Method 1
#! /usr/bin/env python
import sys
import pygame
from pygame.constants import QUIT, K_ESCAPE, KEYDOWN
def sprite( w, h ):
animation_frames = []
@AnimeshShaw
AnimeshShaw / testpdf.py
Created December 26, 2014 07:02
PDF Generation using Reportlab
#!/usr/bin/env python
import os
import urllib2
from reportlab.lib.pagesizes import A2
from reportlab.platypus import SimpleDocTemplate, Image
filename = './python-logo.png'
@AnimeshShaw
AnimeshShaw / InfiniteTunnel.py
Last active August 29, 2015 14:11
Simple InfiniteTunnel with PyGame. More Details Visit : http://www.rawcoders.com/Thread-Source-Simple-InfiniteTunnel-with-PyGame
'''
Created on 21-Dec-2014
@author: Psycho_Coder
More Details Visit : http://www.rawcoders.com/Thread-Source-Simple-InfiniteTunnel-with-PyGame
'''
import os
import sys