Skip to content

Instantly share code, notes, and snippets.

View vshan's full-sized avatar
👾
Beep Boop Beep

Vinay Bhat vshan

👾
Beep Boop Beep
View GitHub Profile
@vshan
vshan / web-servers.md
Last active August 29, 2015 14:26 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@vshan
vshan / DoublyLinkedList.c
Last active August 29, 2015 14:25 — forked from mycodeschool/DoublyLinkedList.c
Doubly Linked List implementation in C
/* Doubly Linked List implementation */
#include<stdio.h>
#include<stdlib.h>
struct Node {
int data;
struct Node* next;
struct Node* prev;
};
@vshan
vshan / ToDo.rb
Created June 5, 2012 15:59
A script for making and marking-off to-do lists.
# ToDo.rb
# A program for creating and marking-off to-do lists.
puts "What's your name, good sir?"
name = gets.strip
case Time.now.hour
when (6...12)
time_phase = "morning"
ul {position: relative; width: 300px; height: 140px; margin: 0 auto; }
ul:hover {position: relative; width: 340px; height: 140px; margin: 0 auto; }
ul li {
width: 7px;
ul {position: relative; width: 300px; height: 140px; margin: 0 auto; }
ul:hover {position: relative; width: 340px; height: 140px; margin: 0 auto; }
ul li {
width: 7px;
height: 75px;
background: black;
margin: 0;
display: inline-block;
@vshan
vshan / dabblet.css
Created December 27, 2011 09:23
Untitled
p {
text-align: center;
margin: 0 auto;
text-align: center;
font-family: 'Mate Sc';
font-size: 40px;
color: black;
ul {position: relative; width: 300px; height: 140px; margin: 0 auto; }
ul:hover {position: relative; width: 340px; height: 140px; margin: 0 auto; }
ul li {
width: 7px;
height: 75px;
background: black;
margin: 0;
display: inline-block;