Skip to content

Instantly share code, notes, and snippets.

挂SS吧,或者用香港的DNS 218.102.23.228
➜ deck.gl git:(master) ✗ npm run demo-build
> deck.gl@3.0.0 demo-build /Users/qinwf/git/deckr/deck.gl
> npm run demo-build-clean && npm run demo-build-copy && npm run demo-build-script
> deck.gl@3.0.0 demo-build-clean /Users/qinwf/git/deckr/deck.gl
> rm -fr dist-demo && mkdir -p dist-demo
@qinwf
qinwf / config.site
Created August 19, 2016 13:02 — forked from jeroen/config.site
Building R on Solaris
## Copy this file into config.site ##
CC="cc -xc99"
CPPFLAGS="-I/opt/csw/include"
CFLAGS="-I/opt/csw/include -O -xlibmieee"
LDFLAGS="-L/opt/csw/lib"
F77=f95
FFLAGS=-O
CXX="CC -library=stlport4"
CXXFLAGS=-O
FC=f95
@qinwf
qinwf / lambda-dynamo
Created May 22, 2016 09:37 — forked from markusklems/lambda-dynamo
Short aws lambda sample program that puts an item into dynamodb
// create an IAM Lambda role with access to dynamodb
// Launch Lambda in the same region as your dynamodb region
// (here: us-east-1)
// dynamodb table with hash key = user and range key = datetime
console.log('Loading event');
var AWS = require('aws-sdk');
var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'});
exports.handler = function(event, context) {
library(prof)
library(re2r)
library(stringi)
strs = rep(c("this is test", "this is test, and this is not test", "they are tests"),1000000)
start_profiler("sample.log")
invisible(re2_match_all(input = strs, pattern = "(this)( is)"))
#invisible(stri_match_all(strs, regex = "(this)( is)"))
stop_profiler()
# google-pprof --text /home/out/R/x86_64-pc-linux-gnu-library/3.2/re2r/libs/re2r.so sample.lo
@qinwf
qinwf / shit.md
Created April 23, 2016 10:40 — forked from jeroen/shit.md
Getting shit to work

Getting shit to work

Disclaimers

  • No authority
  • Official reference is writing r extentions (joke extentions)
  • If you thought writing regular r packages was tricky, hold on
@qinwf
qinwf / README.md
Created March 29, 2016 08:40 — forked from magnetikonline/README.md
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@qinwf
qinwf / 00.howto_install_phantomjs.md
Created March 26, 2016 07:56 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev