Skip to content

Instantly share code, notes, and snippets.

@qdwang
qdwang / ping_all_google_domains
Last active May 10, 2018 15:14
ping all google domains
#!/usr/bin/env python2
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping
@qdwang
qdwang / LR1 Parser.md
Last active August 29, 2015 14:00
LR1 parser for dawn.js implemented in coffee
@qdwang
qdwang / Lex Parser.md
Last active August 29, 2015 14:00
Lex parser for dawn.js implemented in coffee
@qdwang
qdwang / Symbol Table.md
Last active August 29, 2015 14:00
Symbol table for dawn.js implemented in coffee
@qdwang
qdwang / css sprite
Last active July 5, 2016 14:25
css sprite
#!/usr/bin/env python
import sys, os, time
import Image
curr_dir = ''.join(os.path.split(os.path.abspath(sys.argv[0]))[:-1])
curr_files = [f for f in os.listdir(curr_dir) if os.path.isfile(os.path.join(curr_dir, f))]
surfixes = ['png', 'jpg', 'gif']
C.A.R. Hoare, Dana Scott, Robin Milner, John McCarthy, Dale Miller, Christopher Strachey, Peter Landin, Robert Constable, R.M. Burstall, Valentin Turchin, Patrick Cousot, Neil D. Jones, Gordon Plotkin, J Strother Moore, Tobias Nipkow, Robert Harper, John Reynolds, Frank Pfenning, Olivier Danvy, Yoshihiko Futamura, Philip Wadler, Luca Cardeli, Greg Morrisett, Benjamin Pierce, Daniel Friedman, Matthias Felleisen, Amr Sabry, R. Kent Dybvig
Alonzo Church, Stephen Kleene, N.G. de Bruijn, Haskell Curry, W.A. Howard, Per Martin-Löf, Gerard Huet, Henk Barendregt, Thierry Coquand, Jean-Yves Girard
<html>
<head>
<title>Function Points</title>
<style>
* {font-family: Verdana; }
table {margin: 10px 0;}
td, th {padding: 3px 20px;}
.config {float: right; width: 500px; text-align: center;}
#vaf-table {width: 100%;}
#vaf-table td, #vaf-table th {padding: 2px 5px;}
atom-text-editor::shadow .cursor {
border-width: 1px;
transition: transform 0.1s, opacity 0.4s;
}
atom-text-editor::shadow .line {
transition: all 0.5s;
opacity: 0.8;
}
atom-text-editor::shadow .cursor-line {
opacity: 1;
fib(n) = if (x < 2) {
return x
} else {
return fib(n-1) + fib(n-2)
}
// get local variable of index = 0 and push to stack
21
@qdwang
qdwang / Makefile.static.win
Last active November 7, 2021 06:31
Makefile.static.win
all: library
CXX=clang++
CFLAGS=-target x86_64-w64-windows-gnu -I.
CFLAGS+=-Ofast -funroll-loops
# ZLIB support (FP dng)
CFLAGS+=-DUSE_ZLIB