This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#git log --shortstat --since="1 Jan, 2019" > log.txt | |
BEGIN { | |
commit=""; | |
date=""; | |
file=0; | |
add=0; | |
del=0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def a_decorator_passing_arbitrary_arguments(function_to_decorate): | |
def wrapper(*args, **kwargs): | |
print "Do I have args?:" | |
print args | |
print kwargs | |
function_to_decorate(*args, **kwargs) | |
return wrapper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib | |
countries = [ | |
'Afghanistan', | |
'Albania', | |
'Algeria', | |
'Andorra', | |
'Angola', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C_SRCS:=$(foreach d, $(SRC_DIRS), $(wildcard $d/*.c)) | |
CXX_SRCS:=$(foreach d,$(SRC_DIRS), $(wildcard $d/*.cpp)) | |
C_OBJS:=$(C_SRCS:.c=.o) | |
CXX_OBJS:=$(CXX_SRCS:.cpp=.o) | |
FLAGS:=-I$(CPPUTEST_INCLUDE) -I src -I . | |
LDFLAGS:=-L$(CPPUTEST_LIB) -lCppUTest -lstdc++ | |
$(TARGET) : $(CXX_OBJS) $(C_OBJS) | |
echo $(LDFLAGS) | |
gcc -o $@ $^ $(LDFLAGS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; start package.el with emacs | |
(require 'package) | |
; add MELPA to repository list | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) | |
; initialize package.el | |
(package-initialize) | |
;start auto-complete with emacs | |
(require 'auto-complete) | |
; do default config for auto-complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<style> | |
path {stroke: white; stroke-width: 2; fill:black;} | |
body, svg {background-color: black;} | |
</style> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<style> | |
body {margin: 0;} | |
circle {fill: orange; stroke: #333;} | |
path {fill: steelblue; stroke: #333; stroke-width: 4;} | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<style> | |
path {stroke: black; storke-width: 2; fill: none;} | |
.plot {fill: none; stroke: #aec7e8; stroke-width: 2;} | |
circle {fill: steelblue; stroke: white;} | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<style> | |
path{stroke: white; strok-width; 2; fill: steelblue;} | |
.plot{fill: none; stroke: #aec7e8; stroke-width: 2;} | |
circle{fill: steelblue; stroke: white;} | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script> | |
var data = [21, 32, 35, 64, 83]; | |
var color = d3.scale.category10(); | |
var pie = d3.layout.pie(); |
NewerOlder