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
| #!/usr/bin/env perl | |
| use v5.010; | |
| use strict; | |
| use warnings; | |
| # From http://listofrandomwords.com/index.cfm?blist | |
| my @keywords = qw( | |
| hotspur | |
| topnotch |
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
| >> net | |
| net = | |
| Neural Network | |
| name: 'Function Fitting Neural Network' | |
| userdata: (your custom info) | |
| dimensions: |
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
| # See http://psc.edu/images/xsedetraining/BigData/Intro_To_Spark.pdf | |
| rdd = sc.textFile("Complete_Shakespeare.txt") | |
| print('Count number of lines:') | |
| print(rdd.count()) | |
| print('Count number of words:') | |
| words_rdd = rdd.flatMap(lambda x: x.split()) | |
| print(words_rdd.count()) |
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
| @rem Base Python directory | |
| @set PythonPath=%USERPROFILE%\AppData\Local\Programs\Python\Python35 | |
| @REM I'm assuming command extensions are off and Perl is installed :\ | |
| @REM Make temporary directory to hold new path information, since I have to set it through an intermediate file? | |
| @cd %USERPROFILE% | |
| @if not exist tmp mkdir tmp | |
| @REM Add path(s) to environment path, keeping order but avoiding duplicates (I hope) | |
| @echo Adding python command directories to the current environment: |
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 few things have been renamed in an attempt to protect the innocent (and guilty) | |
| package SomePackage; | |
| use SomePackage; | |
| sub LoadUnits { | |
| return if $ser{'m'}; | |
| my($file) = "$SomePackage::HOME/etc/serunits.conf"; | |
| open(SERUNITS,"<$file") || return; |
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
| Windows Registry Editor Version 5.00 | |
| ; Per-user telnet URL mapping | |
| ; | |
| ; Works w/ Firefox and Chrome under Windows 7 | |
| ; | |
| ; Be sure to replace the path to PuTTY with the correct destination | |
| ; | |
| [HKEY_CURRENT_USER\Software\Classes\telnet] |
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
| 3 error(s) found in /u3/clerk/archive/2009/hydlab/hydlab-2009328.hyd | |
| =============================» Parse Error «============================== | |
| #2012158+1946 hydscan[20199] header: (074 2009328+0430) ?unknown header designation (ond) | |
| #2012158+1946 hydscan[20199] header: (074 2009328+0430) ?unknown header designation (SalCTempSp) | |
| #2012158+1946 hydscan[20199] header: (074 2009328+0430) ?unknown header designation (pHS/cmCond) | |
| #2012158+1946 hydscan[20199] header: (074 2009328+0430) ?unknown header designation (LDO%pptUnSal) | |
| #2012158+1946 hydscan[20199] header: (074 2009328+0430) ?unknown header designation (LDOitspHL) | |
| #2012158+1946 hydscan[20199] header: (074 2009328+0430) ?unknown header designation (Dep25SatmDO%) | |
| #2012158+1946 hydscan[20199] header: (074 2009328+0430) ?unknown header designation (EBattg/lmeLDOD) |
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
| diff --git a/lib/HTML/FormHelpers.pm b/lib/HTML/FormHelpers.pm | |
| index fba2ae6..30ba810 100644 | |
| --- a/lib/HTML/FormHelpers.pm | |
| +++ b/lib/HTML/FormHelpers.pm | |
| @@ -99,7 +99,7 @@ sub radio { | |
| while ($i < @$values) { | |
| my ($val,$disp) = @{$values}[$i, $i+1]; | |
| my $checked = $on eq $val ? 'checked="checked"' : ""; | |
| - push @ret, qq(<input type="radio" name="$fname" value="$val" $checked $attributes />$disp); | |
| + push @ret, qq(<label><input type="radio" name="$fname" value="$val" $checked $attributes />$disp</label>); |