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
# A simple approach to visually-weighted regression plots, with Zelig | |
doInstall <- TRUE # Change to FALSE if you don't want packages installed. | |
toInstall <- c("ggplot2", "reshape2", "Zelig") | |
if(doInstall){install.packages(toInstall, repos = "http://cran.us.r-project.org")} | |
lapply(toInstall, library, character.only = TRUE) | |
# Generate some data: | |
nn <- 1000 | |
myData <- data.frame(X = rnorm(nn), |
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
(defun* get-closest-pathname (&optional (file "Makefile")) | |
"Determine the pathname of the first instance of FILE starting from the | |
current directory towards root. This may not do the correct thing in presence | |
of links. If it does not find FILE, then it shall return the name of FILE in | |
the current directory, suitable for creation" | |
(let ((root (expand-file-name "/"))) | |
(expand-file-name file | |
(loop | |
for d = default-directory | |
then (expand-file-name ".." d) |
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
function MonitorAssignment( F, names, valNames, E ) | |
% MonitorAssignment( F, names, valNames, E ) - Pretty prints all the | |
% marginals for an assignment | |
% | |
% F contains the struct array of factors | |
% names contains the variable names | |
% valNames contains the assignment names for each variable, | |
% as seen in SAMIAM | |
% E is an N-by-2 cell array, each row being a variable/value pair. | |
% Variables are in the first column and values are in the second column. |
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
/** | |
* Circular Tooltip (SO) | |
* http://stackoverflow.com/q/13132864/1397351 | |
*/ | |
* { margin: 0; padding: 0; } | |
body { | |
overflow: hidden; | |
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg); | |
} | |
/* generic styles for button & circular menu */ |
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 | |
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2 |
I hereby claim:
- I am deangiberson on github.
- I am deangiberson (https://keybase.io/deangiberson) on keybase.
- I have a public key whose fingerprint is 4F80 5302 A2DD DD30 A069 514C A5A4 694F 153D 0C6F
To claim this, I am signing this object:
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 | |
# | |
# Written by Corey Haines | |
# Scriptified by Gary Bernhardt | |
# | |
# Put this anywhere on your $PATH (~/bin is recommended). Then git will see it | |
# and you'll be able to do `git churn`. | |
# | |
# Show churn for whole repo: | |
# $ git churn |
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
From Geoff Anders, of Leverage Research (http://www.leverageresearch.org/) | |
For people doing goal factoring - or for people making any sort of box-and-arrow diagram - I recommended the program yEd. It is available here: http://www.yworks.com/en/products_yed_about.html | |
After you install it, I highly recommend setting up the defaults in the following way: | |
1. Open yEd. | |
2. Create a new document. | |
3. Click the white background; a small yellow square should appear on the canvas. | |
4. Click the small yellow square so as to select it. |
OlderNewer