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
| source /usr/local/share/antigen/antigen.zsh | |
| antigen use oh-my-zsh | |
| antigen bundle zsh-users/zsh-syntax-highlighting | |
| antigen bundle zsh-users/zsh-autosuggestions | |
| antigen bundle zsh-users/zsh-completions | |
| antigen bundle git | |
| antigen bundle lukechilds/zsh-nvm | |
| antigen bundle zpm-zsh/autoenv |
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
| # Usage: copyFromRemote <SSH Config Host> <remote file/dir> <local file/dir> | |
| # Example: copyFromRemote myServer ~/remote/path ~/local/path | |
| function copyFromRemote() { | |
| rsync -avze ssh $1:$2 $3 | |
| } | |
| # Usage: copyToRemote <SSH Config Host> <local file/dir> <remote file/dir> | |
| # Example: copyToRemote myServer ~/local/path ~/remote/path | |
| function copyToRemote() { |
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
| source /usr/share/zsh-antigen/antigen.zsh | |
| antigen use oh-my-zsh | |
| antigen bundle zsh-users/zsh-syntax-highlighting | |
| antigen bundle zsh-users/zsh-autosuggestions | |
| antigen bundle git | |
| antigen bundle zsh-users/zsh-completions | |
| antigen bundle lukechilds/zsh-nvm | |
| antigen bundle zpm-zsh/autoenv |
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
| #!/bin/bash | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Please supply a port number: 'killport 9000'" | |
| exit 1 | |
| fi | |
| sudo kill `sudo lsof -t -i:$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
| //Simple HSL Manipulation | |
| /** | |
| * | |
| * | |
| * | |
| * Author: Thomas Nairn | |
| * | |
| * | |
| * | |
| */ |
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
| import java.util.HashMap; | |
| import java.util.Map; | |
| /** | |
| * | |
| * @author thomas | |
| */ | |
| public class ArgumentParser { | |
| private static final Map<String, RunnableParam> arguments = new HashMap<>(); |
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
| public boolean isInRegion(SimpleLocation location) { | |
| if (location == null) | |
| return false; | |
| SimpleLocation lastPoint = area.get(area.size() - 1); | |
| boolean isInside = false; | |
| double x = location.getLongitude(); | |
| for (SimpleLocation point : area) { | |
| double x1 = lastPoint.getLongitude(); | |
| double x2 = point.getLongitude(); | |
| double dx = x2 - x1; |
NewerOlder