Command Line Basics
Find the full path of the folder you're in
pwd
| 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 |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| 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; |
| #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. |
| <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> |
| 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); |
| # 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) |