Skip to content

Instantly share code, notes, and snippets.

@tungnk1993
tungnk1993 / README.md
Last active August 29, 2015 14:02
Graph Drawing (Static / Undirected / Unweighted )
  • Click on empty space to add node
  • Drag from node to node to add edge
  • Click + Delete to delete node/edge
  • Press Ctrl to Drag node around
@tungnk1993
tungnk1993 / README.md
Created June 13, 2014 14:22
Graph Drawing ( Static / Directed / Unweighted
  • Click on empty space to add node
  • Drag from node to node to add edge
  • Click + Delete to delete node/edge
  • Press Ctrl to Drag node around
  • Click + Space to change edge direction
@tungnk1993
tungnk1993 / README.md
Last active August 29, 2015 14:02
Graph Drawing ( Static / Undirected / Weighted)
  • Click on empty space to add node
  • Drag from node to node to add edge
  • Click/Select + Delete to delete node/edge
  • Click/Select Edge + Enter to change edge's weight
  • Press Ctrl to Drag node around
@tungnk1993
tungnk1993 / README.md
Created June 15, 2014 13:55
Graph Drawing ( Static / Directed / Weighted )
  • Click on empty space to add node
  • Drag from node to node to add edge
  • Click/Select + Delete to delete node/edge
  • Click/Select Edge + Enter to change edge's weight
  • Click/Select Edge + Space to change edge's direction
  • Press Ctrl to Drag node around
@tungnk1993
tungnk1993 / README.md
Created June 18, 2014 18:06
[JSON] Undirected / Unweighted
  • Click on empty space to add node
  • Drag from node to node to add edge
  • Click + Delete to delete node/edge -Press Ctrl to Drag node around
@tungnk1993
tungnk1993 / README.md
Last active December 23, 2015 09:44
[Parallel] Directed / Weighted
  • Click on empty space to add node
  • Drag from node to node to add edge
  • Click/Select + Delete to delete node/edge
  • Click/Select Edge + Enter to change edge's weight
  • Press Ctrl to Drag node around
@tungnk1993
tungnk1993 / README.md
Last active January 25, 2016 15:48
[Curve] Directed / Weighted
  • Click on empty space to add node
  • Drag from node to node to add edge
  • Click/Select + Delete to delete node/edge
  • Click/Select Edge + Enter to change edge's weight
  • Press Ctrl to Drag node around
@tungnk1993
tungnk1993 / chart.js
Last active December 11, 2015 11:53
Fallout 4 Daily Steam Rating
$(function () {
var c = [];
var d = [];
var my_chart = [];
var options = {
chart: {
renderTo: 'container',
defaultSeriesType: 'line'
},
@tungnk1993
tungnk1993 / gist:802f62e8478ef8df49be
Created November 13, 2015 16:05 — forked from crizCraig/gist:2816295
Download images from Google Image search using Python
import json
import os
import time
import requests
from PIL import Image
from StringIO import StringIO
from requests.exceptions import ConnectionError
def go(query, path):
"""Download full size images from Google image search.
@tungnk1993
tungnk1993 / Budget Friendly.cpp
Last active December 6, 2015 09:12
[HackerRank] Booking Hackathon 2015
#include <iostream>
#include <string>
#include <sstream>
#include <stdio.h>
#include <vector>
#include <deque>
#include <algorithm>
#include <list>
#include <map>
#include <set>