Command Line Basics
Find the full path of the folder you're in
pwd
# Install dependencies | |
#install.packages(c("fftw","tuneR","rgl","rpanel", "seewave"), repos="http://cran.at.r-project.org/") | |
# for Fast Fourier transform (fftw) to work, install | |
# the fftw lib (e.g. brew install fftw) | |
# Load libraries | |
library(data.table) | |
library(tuneR) | |
library(seewave) |
var script = document.createElement("script"); | |
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>2D Picking with canvas</title> | |
<meta name="description" content=""> | |
<meta name="author" content="Yannick Assogba"> | |
<script src="//rawgit.com/mrdoob/stats.js/master/build/stats.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.js"></script> |
#Script for scraping Chronicling America | |
import requests | |
import re | |
import csv | |
from bs4 import BeautifulSoup, SoupStrainer | |
import os | |
from time import sleep | |
from datetime import date, datetime, timedelta | |
#search_terms is a string of words separated by spaces. |
void setup() { | |
size(500, 500); | |
smooth(8); | |
noStroke(); | |
} | |
float t, tt, ht, x, y; | |
int N = 11; | |
float l = 24; | |
float sp = l*1.5; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
source | target | weight | |
---|---|---|---|
sam | tully | 3 | |
sam | pat | 8 | |
sam | kim | 2 | |
sam | pris | 1 | |
roy | pris | 5 | |
roy | sam | 1 | |
tully | sam | 1 | |
tully | pris | 5 | |
tully | kim | 3 |
# Requires ImageMagick | |
# Converting the source from JPEG to PNG - if necessary | |
convert my_src_image.jpg my_src_image.png | |
# Option A | |
# - Requires a temporary intermediate file | |
# - Drill more than 10 might result in poor results |
A quick hack on the beautifully executed projection example from Andy Woodruff. I just wanted to see them all on one screen.
Click the Open in new window button to see them all.
Novel code Inspired once again by Jason Davies.
Andy's original text:
We've all seen the projected head from Elements of map projection with applications to map and chart construction, but the authors in 1921 did not have D3 to help them show a full range of weird distorted faces. This is based on the Map Projection Transitions example by Jason Davies.