git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
#!/usr/sbin/dtrace -FCs | |
$1:entry | |
{ | |
stack(); | |
self->trace = 1; | |
} | |
$1:return | |
/self->trace == 1/ |
# Run as root | |
# sudo -i | |
# Prepare LiveCD Environment | |
add-apt-repository -y ppa:jonathonf/zfs | |
apt install -y zfs-dkms | |
systemctl stop zfs-zed.service | |
modprobe -r zfs | |
modprobe zfs |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
# Universal C/Cpp makefile | |
# Source: https://sites.google.com/site/michaelsafyan/software-engineering/how-to-write-a-makefile | |
program_NAME := server | |
program_C_SRCS := $(wildcard *.c) | |
program_CXX_SRCS := $(wildcard *.cpp) | |
program_C_OBJS := ${program_C_SRCS:.c=.o} | |
program_CXX_OBJS := ${program_CXX_SRCS:.cpp=.o} | |
program_OBJS := $(program_C_OBJS) $(program_CXX_OBJS) | |
program_INCLUDE_DIRS := |
getCIK = function(ticker) { | |
stopifnot(is.character(ticker)) | |
uri = "http://www.sec.gov/cgi-bin/browse-edgar" | |
response = getForm(uri,CIK=ticker,action="getcompany") | |
html = htmlParse(response) | |
CIKNode = getNodeSet(html, "//acronym[@title=\"Central Index Key\"][text() = \"CIK\"]") | |
CIKNodeText = sapply(CIKNode, function(x) xmlValue(getSibling(getSibling(x)))) | |
CIK = sub(" .*","",CIKNodeText) | |
CIK = sub("^0*","",CIK) |
var seriesData = [ [{ x: 0, y: 40 }, { x: 1, y: 49 }, { x: 2, y: 17 }, { x: 3, y: 42 }] ]; | |
var graph = new Rickshaw.Graph( { | |
element: document.getElementById("chart"), | |
width: 940, | |
height: 250, | |
renderer: 'area', | |
stroke: true, | |
series: [ | |
{ | |
color: 'steelblue', |