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
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |
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
# Load library | |
library(xts) | |
# Generate dummy time series | |
from <- as.Date("1950-01-01") | |
to <- as.Date("1990-12-31") | |
myDates <- seq.Date(from=from,to=to,by="day") | |
myTS <- as.xts(runif(length(myDates)),order.by=myDates) | |
# SPLIT THE TIME SERIES INTO CALENDAR YEARS |
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
import requests | |
def doi2bib(doi): | |
""" | |
Return a bibTeX string of metadata for a given DOI. | |
""" | |
url = "http://dx.doi.org/" + doi | |
headers = {"accept": "application/x-bibtex"} |
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
#!/bin/bash | |
NET=10.0.0.0/16 | |
# i.e. 256Kbit/s | |
RATE_OUT=$1 | |
# i.e. 6Mbit/s | |
RATE_IN=$2 | |
DELAY_IN=$3 | |
DELAY_OUT=$4 |
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
<div class="container"> | |
<ul class="tags"> | |
<li><a href="#">Interface <span>4</span></a></li> | |
<li><a href="#">Icon <span>8</span></a></li> | |
<li><a href="#">Typography <span>15</span></a></li> | |
<li><a href="#">Color <span>16</span></a></li> | |
</ul> | |
<ul class="tags green"> | |
<li><a href="#">Design <span>23</span></a></li> |
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
<?php | |
/** | |
* Scrape the number of podcast reviews from iTunes for all country specific storefronts. | |
* | |
* @author Sean Murphy <[email protected]> | |
*/ | |
$podcast_id = '366931951'; // Startups For the Rest of Us | |
//$podcast_id = '318567721'; // techzing |