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
#!/usr/bin/env bash | |
set -e | |
# See also: https://github.com/frost-nzcr4/find_forks (same thing but in python) | |
origin_url="$(git config --get remote.origin.url | sed 's+.*: ++')" | |
full_repo_name="$(echo "$origin_url" | sed 's+.*github.com/++ ; s+\.git$++')" | |
forks_url="https://api.github.com/repos/${full_repo_name}/forks" |
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
import Cocoa | |
// Support Foundation calls on String | |
public extension String { public var ns: NSString {return self as NSString} } | |
/// Custom Labeled Playground-Based Drag-and-Drop window | |
public class DropView: NSTextField { | |
// Default action handler | |
public var handler: ([String]) -> Void = { paths in Swift.print(paths) } |
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
javascript:(function()%7Bvar%20s=document.createElement('link');s.setAttribute('href','https://dyslexicfonts.com/plugin/easyread.css');s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');document.getElementsByTagName('head')%5B0%5D.appendChild(s);%7D)(); |
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
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
# Requires pyserial. Install via: | |
# pip install pyserial | |
from __future__ import print_function | |
from serial import Serial, EIGHTBITS, STOPBITS_ONE, PARITY_NONE | |
import time, struct |
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 | |
# Creates a complete class-dump of Xcode and all its libs and internal plug-ins. | |
# Assumes you have Class-Dump in your path and Xcode at the location set via `xcode-select`. | |
xcodeClassDump=${1:-"$HOME/Documents/XcodeClassDump"} | |
xcodePath=`xcode-select -p` | |
sourceXcodeRootPath="$(dirname "$xcodePath")" | |
echo "Dumping from Xcode: $sourceXcodeRootPath" |
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
#=============================================================================== | |
# Filename: boost.sh | |
# Author: Pete Goodliffe | |
# Copyright: (c) Copyright 2009 Pete Goodliffe | |
# Licence: Please feel free to use this, with attribution | |
# Modified version | |
#=============================================================================== | |
# | |
# Builds a Boost framework for iOS, iOS Simulator, and OSX. | |
# Creates a set of universal libraries that can be used on an iOS and in the |
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 | |
# | |
# SignAndPackageForMAS.sh v1.0.1 | |
# | |
# Codesign an app bundle and build a signed package ready for submission to the | |
# Mac App Store | |
# | |
# Copyright (c) 2014 Felix Schwarz (@felix_schwarz), IOSPIRIT GmbH (@iospirit) | |
# |