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
# https://unix.stackexchange.com/a/124447 | |
add_to_path() { | |
case ":${PATH:=$1}:" in *:"$1":*) ;; *) PATH="$1:$PATH" ;; esac; | |
} | |
# Example | |
add_to_path $HOME/bin/julia-1.6.1/bin |
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
=== Racket CS enabled | |
checking build system type... aarch64-apple-darwin21.5.0 | |
checking host system type... aarch64-apple-darwin21.5.0 | |
checking target system type... aarch64-apple-darwin21.5.0 | |
=== CS executables without suffix enabled | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no |
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
# add to .zshrc or .bashrc | |
# Create a new directory and enter it | |
function mkd() { | |
mkdir -p "$@" && cd "$_"; | |
} |
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
Sub CompareWordList() | |
' | |
' CompareWordList Macro | |
' Andrew Crook 2012 | |
' Based on - Highlight Words from a Word List | |
' http://word.tips.net/T000502_Highlight_Words_from_a_Word_List.html | |
' | |
Dim sCheckDoc As String | |
Dim docRef As Document | |
Dim docCurrent As Document |
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
var app = $.sammy( function() { | |
this.get('#/', function() { | |
$('#main').html('nothing to see here!'); | |
}); | |
this.get('#/test', function() { | |
$('#main').html('worked'); | |
}); |