Mostly geared towards GNU make
I've used ->| to indicate a tab character, as it's clearer to read than ⇥
- Set a target, its dependencies and the commands to execute in order
target: [dependencies]
->|
| ''' Script for downloading all GLUE data. | |
| Note: for legal reasons, we are unable to host MRPC. | |
| You can either use the version hosted by the SentEval team, which is already tokenized, | |
| or you can download the original data from (https://download.microsoft.com/download/D/4/6/D46FF87A-F6B9-4252-AA8B-3604ED519838/MSRParaphraseCorpus.msi) and extract the data from it manually. | |
| For Windows users, you can run the .msi file. For Mac and Linux users, consider an external library such as 'cabextract' (see below for an example). | |
| You should then rename and place specific files in a folder (see below for an example). | |
| mkdir MRPC | |
| cabextract MSRParaphraseCorpus.msi -d MRPC |
brew cask install diaAfter his it won't run because DISPLAY=:0 env var is not set
vim /Applications/Dia.app/Contents/Resources/bin/dia| # Author | |
| # Linwood Creekmore III | |
| # April 8 2017 | |
| # heavy input from http://socialmedia-class.org/twittertutorial.html | |
| # [email protected] | |
| import re | |
| import copy | |
| import numpy as np | |
| import pandas as pd |
| import re, sys # this file requires python 3 | |
| def parse(tokens): | |
| stack = ([], None) | |
| for t in tokens: | |
| if t == '(': | |
| stack = ([], stack) | |
| elif t == ')': | |
| (finished_list, stack) = stack | |
| stack[0].append(finished_list) | |
| elif not t.startswith(';;'): |
04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.
This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.
[Laughter]
> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation
| yield | variety | year | site | |
|---|---|---|---|---|
| 27 | Manchuria | 1931 | University Farm | |
| 48.86667 | Manchuria | 1931 | Waseca | |
| 27.43334 | Manchuria | 1931 | Morris | |
| 39.93333 | Manchuria | 1931 | Crookston | |
| 32.96667 | Manchuria | 1931 | Grand Rapids | |
| 28.96667 | Manchuria | 1931 | Duluth | |
| 43.06666 | Glabron | 1931 | University Farm | |
| 55.2 | Glabron | 1931 | Waseca | |
| 28.76667 | Glabron | 1931 | Morris |
| ## install Catalyst proprietary | |
| sudo ntfsfix /dev/sda2 | |
| sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
| sudo apt-get remove --purge fglrx* | |
| sudo apt-get install linux-headers-generic | |
| sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo | |
| sudo amdconfig --initial | |
| ## install build essentials | |
| sudo apt-get install cmake |
| /* | |
| ******************************************************************************** | |
| Golang - Asterisk and Ampersand Cheatsheet | |
| ******************************************************************************** | |
| Also available at: https://play.golang.org/p/lNpnS9j1ma | |
| Allowed: | |
| -------- | |
| p := Person{"Steve", 28} stores the value |
| #!/bin/bash | |
| # pdfScale.sh | |
| # | |
| # Scale PDF to specified percentage of original size. | |
| # Ref: http://ma.juii.net/blog/scale-page-content-of-pdf-files. | |
| echo "This script doesn't handle files with spaces in them." | |
| SCALE=0.95 # scaling factor (0.95 = 95%, e.g.) |