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 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 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
| 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 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
| 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 |
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
| % startup.m | |
| disp('%%%%%%%%%%%%%%%%'); | |
| disp('Startup Commands in:'); | |
| disp('C:\Users\Clay\Documents\MATLAB\startup.m'); | |
| disp('To undock figures, try:'); | |
| disp('set(0,''DefaultFigureWindowStyle'',''modal'')'); | |
| set(0,'DefaultFigureWindowStyle','docked'); | |
| set(0,'DefaultTextInterpreter','latex'); | |
| set(0,'DefaultTextFontSize',16); | |
| set(0,'DefaultLineLineWidth',2); |
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
| // =============================================================================== | |
| // -*- DATA:INI:EDT -*- | |
| // | |
| // WinEdt Gather Data (GDI) Interface | |
| // | |
| // =============================================================================== | |
| [BUILD] | |
| REQUIRES=20080915 |
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
| Array.prototype.equals = function (array) { | |
| // if the other array is a falsy value, return | |
| if (!array) | |
| return false; | |
| // compare lengths - can save a lot of time | |
| if (this.length != array.length) | |
| return false; | |
| for (var i = 0, l=this.length; i < l; i++) { |
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
| [alias] | |
| lol = log --oneline --graph --decorate | |
| st = status | |
| ci = commit | |
| ra = !sh git-ra.sh | |
| lola = log --decorate --oneline --graph --all --date-order | |
| lold = !sh -c 'git log --oneline --graph --decorate --left-right --boundary --date-order $1...$2' - |
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 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 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
| =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 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 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; | |
| }; |
NewerOlder