Interactive tool for creating directed graphs, created using d3.js.
Demo: http://bl.ocks.org/cjrd/6863459
Operation:
- drag/scroll to translate/zoom the graph
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
//StructToMap converts a struct to map of string to interface | |
//Its uses the tag 'map' to check the name to be used | |
//if the value is nil no key is added |
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
args=("${@}") | |
package="${args[0]}" | |
echo -n "Enter your bitbucket username " | |
read user_name |
(function(){ | |
"use strict": | |
angular.module('ng-relativeDate',[]) | |
.filter('ngrelativeDate',function(){ | |
/** | |
* [humanreadableDate converts the timestamp into human readable time ] | |
* @param {Int} timestamp - time as number of milliseconds since 1970/01/01: | |
* @return {string} relative time corresponding to timestamp | |
*/ |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
Interactive tool for creating directed graphs, created using d3.js.
Demo: http://bl.ocks.org/cjrd/6863459
Operation:
#!/usr/bin/python | |
import urllib2, re,sys | |
a='' | |
if len(sys.argv) == 2: | |
a=sys.argv[1] | |
else: | |
a=raw_input("Enter the url :") | |
req = urllib2.Request(a) | |
resp = urllib2.urlopen(req) | |
html = resp.read() |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |