Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam porttitor condimentum efficitur. Duis porta nunc vel sem luctus laoreet. Donec tempus lobortis lectus, fringilla lobortis felis tristique vel. Aliquam erat volutpat. Suspendisse condimentum quis lorem vel pellentesque. Mauris condimentum mi ac magna viverra, et fermentum massa pretium. Cras at odio a elit fermentum scelerisque. Quisque semper, turpis quis dignissim interdum, diam tellus euismod diam, at pulvinar leo nisl ut velit.
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
# Fibonacci Macros | |
# ================ | |
define(`FIB', `ifelse(`$3',`2',`$2',`FIB($2,expr($1 + $2),decr($3))')')dnl | |
* 12th Fibonacci Number: FIB(0,1,12) | |
# Use brackets for quotes instead of ` and ' | |
changequote([,])dnl | |
# Decrement a literal number | |
decr(3) |
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
#!/usr/bin/ruby | |
# A Mean Ruby trick for April Fools | |
# | |
# This is why code review is important. | |
module NilTracer | |
def self.included(base) | |
base.class_eval do | |
alias_method :original_nil?, :nil? | |
def nil? |
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
#include <stdexcept> | |
void f() { | |
throw exception(); | |
} | |
class C { | |
C() { | |
throw exception(); | |
} |
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
#!/bin/ksh | |
# Assume /tmp is memory mapped | |
(echo -n "robert:"; (openssl rand -base64 48 | tee /tmp/pass)) | htpasswd -I /var/www/authentication.db | |
cat /tmp/pass && rm /tmp/pass |
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
#!/bin/bash | |
pad_response_in_brackets() { | |
echo -n "[" | |
cat < /dev/stdin | |
echo "]" | |
} | |
strip_brackets() { | |
gsed 's/\[//g' | gsed 's/\]//g' | |
} |
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
{ | |
"email": "[email protected]" | |
} |
I hereby claim:
- I am robertdfrench on github.
- I am robertdfrench (https://keybase.io/robertdfrench) on keybase.
- I have a public key ASBR3H7cZgNAa4wn18qNJbFzoldxdV_s_6LoPdG3Xj7BIQo
To claim this, I am signing this object:
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
#!/bin/bash | |
module load py-netcdf | |
module load py-numpy | |
module load py-matplotlib | |
module load py-scipy | |
python -c "import netCDF4" |
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
#!/bin/bash | |
module unload nag | |
module unload PrgEnv-intel PrgEnv-gnu PrgEnv-pgi PrgEnv-pathscale | |
module load PrgEnv-pgi | |
module load nag/fl24 | |
ftn -I$NAGDIR/nag_interface_blocks/ -L$NAGDIR/lib -lnag_nag -o test_cmplx $NAGDIR/examples/source/a02aafe.f90 $NAGDIR/lib/libnag_nag.a |
NewerOlder