This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| # Get location of unparsed Info.plist | |
| GS_INFO_PLIST_INPUT=$(basename "$INFOPLIST_FILE" .plist) | |
| # Get location of parsed Info.plist | |
| GS_INFO_PLIST_PATH="$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/Info" | |
| # Get version number from unparsed Info.plist | |
| GS_VERSION=$(defaults read "$PROJECT_DIR/$GS_INFO_PLIST_INPUT" CFBundleVersion) | |
| # Append local SVN revision number |
| // | |
| // Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #if TARGET_OS_SIMULATOR | |
| static const char *fakeCarrier; | |
| static const char *fakeTime; |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| EditorGUILayout.BeginHorizontal(EditorStyles.toolbar); | |
| GUILayout.Label("Toolbar Title"); | |
| GUILayout.FlexibleSpace(); | |
| if (GUILayout.Button("A", EditorStyles.toolbarButton)) | |
| { | |
| // does something | |
| } | |
| if (GUILayout.Button("B", EditorStyles.toolbarButton)) | |
| { | |
| // does something |
| eXtreme Go Horse (XGH) Process | |
| Quelle: http://gohorseprocess.wordpress.com | |
| Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
| 1. Ich denke, also ist es nicht XGH. | |
| In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
| 2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ## based on https://gist.github.com/1910413 updated for Sublime Text 3 | |
| import sublime | |
| import sublime_plugin | |
| import subprocess | |
| class PromptRunExternalCommand(sublime_plugin.WindowCommand): |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "os/exec" | |
| "strconv" |
| /** | |
| * K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
| * | |
| * More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
| * https://github.com/KdotJPG/OpenSimplex2 | |
| */ | |
| public class OpenSimplex2S { | |
| private static final long PRIME_X = 0x5205402B9270C86FL; |