Modules = [CallTest]
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
| TARGET := embed | |
| CC := clang | |
| SHELL := /bin/bash | |
| FRAMEWORK_PATH ?= /Library/Frameworks | |
| $(TARGET): $(TARGET).c | |
| @$(CC) -o $(TARGET) $(TARGET).c -lR \ | |
| -L$(FRAMEWORK_PATH)/R.framework/Libraries \ | |
| -I$(FRAMEWORK_PATH)/R.framework/Headers |
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
| " directories | |
| set browsedir=buffer | |
| set wildignore=*.o,*.pyc | |
| set wildmode=list:longest,list:full | |
| if v:version >=# '704' | |
| set wildignorecase | |
| endif | |
| set autochdir | |
| " persistence |
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
| _py_version() { | |
| PY_VERSIONS=(2 3) | |
| LINE=(${(s: :)history[$HISTCMD]}) | |
| COMMAND=${LINE[1]} | |
| ARGS=${(j: :)LINE[2,-1]} | |
| while (( 1 )) { | |
| read -s -k1 VERSION"?$COMMAND [${PY_VERSIONS[1]}]: " | |
| if [[ $VERSION == $'\n' ]]; then |
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> | |
| <title>Democracy Now Transcript: {{ date }}</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <style type="text/css"> | |
| @import url(https://fonts.googleapis.com/css?family=Open+Sans); | |
| body { | |
| margin: auto; |
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/env bash | |
| GREP=ggrep | |
| # parameters | |
| BAND=$1 | |
| CHANNEL=${2:-0} | |
| # determine the router ip | |
| ROUTER=$(netstat -nr | $GREP -oP '(?<=^default) +[^ ]+' | $GREP -oP '[^ ]+') |
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
| for V in 2 3; do | |
| pip${V} install --upgrade six https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py${V}-none-any.whl | |
| done |
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 subset(elements): | |
| """Generate subsets.""" | |
| if not elements: | |
| yield [] | |
| return | |
| head = elements[0] | |
| for tail in subset(elements[1:]): | |
| yield tail |