The following content is generated using a preview release of Swimlane's pyattck.
This snippet of data is scoped to the following actor groups:
- APT33
- APT34
- APT39
- Charming Kitten
The following content is generated using a preview release of Swimlane's pyattck.
This snippet of data is scoped to the following actor groups:
library(tidyverse) | |
library(plotly) | |
# I'm being lazy, please don't do this | |
# setwd("~/Downloads/Version 2_0_1/") | |
d <- read_csv('GEOSTAT_grid_POP_1K_2011_V2_0_1.csv') %>% | |
rbind(read_csv('JRC-GHSL_AIT-grid-POP_1K_2011.csv') %>% | |
mutate(TOT_P_CON_DT = '')) %>% | |
mutate( |
These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
require 'cgi' | |
require 'digest/md5' | |
require 'net/https' | |
require 'uri' | |
module Jekyll | |
class GistTag < Liquid::Tag | |
def initialize(tag_name, text, token) | |
super | |
@text = text |
from datetime import datetime, timedelta | |
import urllib | |
import re | |
from lxml.html import fromstring | |
from cssselect import GenericTranslator, SelectorError | |
import os | |
import json | |
base_url = 'http://apims.doe.gov.my/v2/' | |
HOURS = { |
#!/bin/bash | |
# | |
# Generates a "latency heat map", showing both on-CPU and off-CPU stacks. In addition, | |
# attempts to color code on-CPU based on CPI by diffling the on-CPU stacks sampled | |
# at ~1000 Hz and every ~3e6 instructions. Intuitively, if a stack is more common in | |
# frequency stacks than in count stacks, than it represents a "slower" stack. | |
# | |
perf_data_dir=$1 | |
dest_dir=$2 |
import org.apache.spark._ | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.rdd.RDD | |
import scala.util.Random | |
import java.io._ | |
import java.util.Properties | |
import org.apache.hadoop.fs._; | |
import org.apache.hadoop.conf._; | |
import org.apache.hadoop.io._; |
## we need the libraries bookdown, knitr, inline, markdown, pryr | |
system("git clone https://github.com/hadley/adv-r.git") | |
setwd("adv-r") | |
library(knitr) | |
embed_png <- bookdown:::embed_png | |
rmds <- list.files(pattern = "^.*rmd$") | |
sapply(rmds, function(x) knit(x)) | |
cat("---\ntitle: Advanced R\nauthor: Hadley Wickham\nlanguage: en-US\n...\n", | |
file = "front_matter.txt") | |
## assuming we installed pandoc via cabal |