Moved to https://github.com/kbilsted/Functional-core-imperative-shell/blob/master/README.md
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
@Grab(group='org.apache.sshd', module='sshd-core', version='0.13.0') | |
import org.apache.sshd.SshServer | |
import org.apache.sshd.server.PasswordAuthenticator | |
import org.apache.sshd.server.command.ScpCommandFactory | |
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider | |
import org.apache.sshd.server.session.ServerSession | |
import org.apache.sshd.server.sftp.SftpSubsystem | |
import org.apache.sshd.server.shell.ProcessShellFactory |
For iPhone app developers. Emphasis on getting the fastest app store approval. Everything stated as suggestion made into an imperative. When "violating" these imperatives, you can check for yourself what the caveats are. Generally speaking, deviating will more likely cause your app to be hung up in approval.
You can read this entire document in about 20 minutes. This is faster than reading and understanding the entire Human Interface Guidelines.
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
@Grab( 'com.netflix.rxjava:rxjava-groovy:0.15.1' ) | |
import groovy.transform.* | |
import rx.* | |
@CompileStatic | |
class RPSRX { | |
enum Result { | |
WIN, LOSE, DRAW | |
} | |
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
export JAVA7_HOME=`/usr/libexec/java_home -v 1.7*` | |
export JAVA8_HOME=`/usr/libexec/java_home -v 1.8*` | |
function jdk7 { | |
export JAVA_HOME=$JAVA7_HOME | |
set_path | |
echo "Using Java 7 $JAVA_HOME" | |
} | |
function jdk8 { |
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
/* | |
* HQL would look something like this: | |
* | |
* from Person p join fetch p.addresses address | |
* where exists ( | |
* from Address addr left join addr.state st | |
* where addr.personId = p.id | |
* and st.abbreviation = :abbreviation | |
* ) | |
*/ |
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
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
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
"Ann Lenczewski (DFL)" <[email protected]> | |
"Diane Loeffler (DFL)" <[email protected]> | |
"Greg Davids (R)" <[email protected]> | |
"Sarah Anderson (R)" <[email protected]> | |
"Tom Anzelc (DFL)" <[email protected]> | |
"Bob Barrett (R)" <[email protected]> | |
"John Benson (DFL)" <[email protected]> | |
"Lyndon Carlson Sr. (DFL)" <[email protected]> | |
"Jim Davnie (DFL)" <[email protected]> | |
"Steve Drazkowski (R)" <[email protected]> |
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 | |
echo "Finding and Purging Big Files From Git History" | |
echo "==============================================" | |
echo "" | |
echo "http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history/" | |
echo "" | |
pushd "$(git rev-parse --show-toplevel)" > /dev/null |