This file contains 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 findAndRemove(superset, subset) { | |
var ind = 0; | |
while (superset.length > 0 & subset.length>0 $ len<subset.length) { | |
var f = superset.indexOf(subset[ind]); | |
if (f>=0) { | |
superset=superset.slice(0,f).concat(superset.slice(f+1)); | |
subset=subset.slice(0,ind).concat(subset.slice(ind+1)); | |
} else { | |
ind++; | |
} |
This file contains 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
=query( importrange( "<source_spreadsheet_key_from_url>", "Form Responses!A:E" ), "select Col3, Col2, Col5 where Col5 contains 'Team1' order by Col2, Col3", 1 ) |
This file contains 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 createArray(length) { | |
var arr = new Array(length || 0), | |
i = length; | |
if (arguments.length > 1) { | |
var args = Array.prototype.slice.call(arguments, 1); | |
while(i--) arr[length-1 - i] = createArray.apply(this, args); | |
} | |
return arr; | |
}; |
This file contains 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 onFormSubmit(e) { | |
// Log me like a hurricane. | |
var len = e.values.length; | |
for (var i = 0; i<len; i++){Logger.log(i + "<==>" + e.values[i]);}; | |
// Gather form info into JavaScript variables. | |
var whoAreYou = e.values[28]; | |
var Player; | |
var guestArray = new Array; | |
if (whoAreYou === 'Player') { | |
// Register a Player. |
This file contains 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
# Case-by-case basis for tracking PDF: | |
# Latex files | |
*.aux | |
*.auxlock | |
*.glo | |
*.idx | |
*.log |
This file contains 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 | |
class MailChunker { | |
public function __construct( $addr = "", $sub = "", $msg = "" , $from = "", $file = "", $maxfsize = "9MB") { | |
$this->addr = $addr; # Comma-separated string of email addresses. | |
$this->sub = $sub; | |
$this->msg = $msg; | |
$this->from = $from; | |
$this->fname = $file; | |
$this->maxfsize = $maxfsize; | |
}; |
This file contains 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
for x in `git status | grep deleted | awk '{print $3}'`; do git rm $x; done |
This file contains 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 onFormSubmit(e) { | |
// Initial Testing/Debugging | |
// var test = ''; | |
// var appendme = ''; | |
// for (var i = 0; i<e.values.length; i++) { | |
// appendme = i+': '+e.values[i]; | |
// Logger.log(appendme); | |
// test += appendme+'\n'; | |
// } | |
Logger.log(e); |
This file contains 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
gfind . -type f -printf "%-.22T+ %M %n %-8u %-8g %8s %Tx %.8TX %p\n" | sort | cut -f 2- -d ' ' | grep -v Icon |
This file contains 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
for x in `git diff --name-only FROMCOMMIT TOCOMMIT | awk '{print $1}'`; do git log --word-diff --color -U2 FROMCOMMIT..TOCOMMIT $x|tmp/ansi2html.sh > change/$x.html; done |
NewerOlder