I hereby claim:
- I am boyvanamstel on github.
- I am boyvanamstel (https://keybase.io/boyvanamstel) on keybase.
- I have a public key whose fingerprint is 7194 3A0A 33CC 7063 2CDD FCFD 5069 041D 0970 CA9E
To claim this, I am signing this object:
extension NSDirectionalEdgeInsets { | |
/// Returns new insets with just a value applied to the supplied edge. | |
/// | |
/// - Parameters: | |
/// - edge: The edge to apply an inset to. | |
/// - value: The value to set the edge inset to. | |
init(_ edge: WritableKeyPath<Self, CGFloat>, _ value: CGFloat) { | |
self.init( | |
top: edge == \.top ? value : 0.0, |
#!/bin/sh | |
# | |
# Organizes a directory of games into a more convenient layout: | |
# | |
# Games/ | |
# - 0-9/ | |
# - A/ | |
# - B-D/ | |
# - E-H/ | |
# - I/ |
#!/bin/sh | |
# | |
# Download a copy of the manual, you'll need wget (brew install wget) | |
# | |
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --random-wait --domains mrjester.hapisan.com --no-parent http://mrjester.hapisan.com/04_MC68/Index.html | |
cd mrjester.hapisan.com/04_MC68 | |
# |
// | |
// SomeViewController.swift | |
// | |
// Created by Boy van Amstel on 15/08/16. | |
// Copyright © 2016 Danger Cove. All rights reserved. | |
// | |
// To change the background color, simply modify .backgroundColors: [NSColor] | |
import Cocoa |
VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${SOURCE_ROOT}/${INFOPLIST_FILE}") | |
BUILD=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${SOURCE_ROOT}/${INFOPLIST_FILE}") | |
# The build number gets automatically increased by a build phase | |
BUILD=$((BUILD - 1)) | |
DATE=$(/bin/date +%Y%m%d%H%M%S) | |
OUTPUT_DIR="${HOME}/Desktop/${TARGET_NAME}_v${VERSION}b${BUILD}_${DATE}" | |
mkdir "$OUTPUT_DIR" | |
# Zip and copy .dSYM | |
cd "${ARCHIVE_DSYMS_PATH}/" | |
/usr/bin/zip -r "$OUTPUT_DIR/${TARGET_NAME}.dSYM.zip" "${TARGET_NAME}.app.dSYM" |
I hereby claim:
To claim this, I am signing this object:
# Remove #define DEBUG 0 | |
awk '!/#define DEBUG 0/' "$DERIVED_FILES_DIR"/receipt.h > "$DERIVED_FILES_DIR"/receipt.temp && mv "$DERIVED_FILES_DIR"/receipt.temp "$DERIVED_FILES_DIR"/receipt.h |
{ | |
"cmd": ["pod", "install"], | |
"selector": "Podfile" | |
} |
# Run irssi if it's not already running | |
ps cax | grep irssi > /dev/null | |
if ! [ $? -eq 0 ]; then | |
yn="y" # Set the default, if the timeout expires | |
echo -n "Run irssi? [yn] " | |
read -t 3 yn | |
case $yn in | |
[Yy]* ) irssi;; | |
* ) ;; | |
esac |
# This is the Danger Cove Active Menu plugin | |
# | |
# Installation: | |
# Place this file in your plugin directory. | |
# | |
# Usage: | |
# class="{% dcactivemenu checkfor.html [/another] %}" | |
# | |
# Returns 'active' when the checkfor.html occurs in the page.url | |
# |