Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| #!/bin/bash | |
| # from "How to install PowerShell 7 and essential tools on Linux" | |
| # https://mikefrobbins.com/2024/09/26/how-to-install-powershell-7-and-essential-tools-on-linux/ | |
| # Determine the system architecture | |
| ARCH=$(dpkg --print-architecture) | |
| # Get the latest PowerShell version number | |
| pwshVersion=$(curl -s https://api.github.com/repos/PowerShell/PowerShell/releases/latest | grep 'tag_name' | cut -d '"' -f 4 | sed 's/v//') |
| /** | |
| * Compare two variables of any type for recursive (deep) equality | |
| * @param {*} bar - variable to test against for a match | |
| * @param {*} data - output variable being tested | |
| * @returns {boolean} true if vars are equal, false if unequal | |
| */ | |
| function areEqual (bar, data) { | |
| var types = { | |
| string: { | |
| bar: Object.prototype.toString.call(bar), |
| on run {input, parameters} | |
| set cmd to "vim -c startinsert" | |
| if input is not in {} then | |
| set myPath to POSIX path of input | |
| set cmd to "vim " & quote & myPath & quote | |
| end if | |
| tell application "iTerm" | |
| activate | |
| set myTerm to (current terminal) |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| <?php | |
| //* Do NOT copy the opening PHP tag | |
| //* Add Google Fonts to our header | |
| add_action( 'wp_enqueue_scripts', 'ck_load_google_fonts' ); | |
| function ck_load_google_fonts() { | |
| wp_enqueue_style( 'ck-google-fonts', '//fonts.googleapis.com/css?family=Open+Sans', array(), CHILD_THEME_VERSION ); | |
| } |
| /** | |
| * Setup Module with `highlight` filter | |
| */ | |
| var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) { | |
| $locationProvider.html5Mode(false); | |
| }); | |
| JekyllApp.filter('highlight', function () { | |
| return function (text, filter) { |
| #compdef godoc | |
| typeset -A opt_args | |
| local context state line | |
| local pkgdir usrpkgdir | |
| pkgdir="$GOROOT/src/pkg" | |
| usrpkgdir="$GOPATH/src" | |
| godoctmpl=~/.godoc_templates |