β β ⌘ β ⌘ β the Command Key symbol
β₯ β ⌥ β ⌥ β the Option Key symbol
β§ β ⇧ β ⇧ β the Shift Key symbol
β β ⌃ β ⌃ β the Control Key symbol
β β ⎋ β ⎋ β the ESC Key symbol
βͺ β ⇪ β ⇪ β the Capslock symbol
β β ⏎ β ⏎ β the Return symbol
β« β ⌫ β ⌫ β the Delete / Backspace symbol
β₯ β ⇥ β ⇥ β the Tab Key symbol
This file contains hidden or 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
| ;(function ($, window) { | |
| var intervals = {}; | |
| var removeListener = function(selector) { | |
| if (intervals[selector]) { | |
| window.clearInterval(intervals[selector]); | |
| intervals[selector] = null; | |
| } |
This file contains hidden or 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 <Foundation/Foundation.h> | |
| @interface NSBundle (TTTOverrideLanguage) | |
| + (void)ttt_overrideLanguage:(NSString *)language; | |
| + (void)ttt_resetLanguage; | |
| @end |
This file contains hidden or 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
| // MultiExporter.jsx | |
| // Version 0.1 | |
| // Version 0.2 Adds PNG and EPS exports | |
| // Version 0.3 Adds support for exporting at different resolutions | |
| // Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
| // Version 0.5 Fixed cropping issues | |
| // Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
| // | |
| // Copyright 2013 Tom Byrne | |
| // |
This file contains hidden or 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
| // | |
| // HomeViewController.m | |
| // Stories | |
| // | |
| // Created by Christian Roman on 05/02/14. | |
| // Copyright (c) 2014 Christian Roman. All rights reserved. | |
| // | |
| #import "HomeViewController.h" | |
| #import "StoryView.h" |
This is a reference to Matthew Ericson's article Export Illustrator Layers and/or Artboards as PNGs and PDFs in case something happens to happen to the article, and if I just forget where to find the exporter online.
- Drop
MultiExporter.jsinto/Applications/Adobe\ Illustrator\ CS6/Presets.localized/en_GB/Scripts - Restart Illustrator
This file contains hidden or 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
| UIFontDescriptor *fontDescriptor = [UIFontDescriptor fontDescriptorWithFontAttributes:@{ | |
| UIFontDescriptorNameAttribute: @"SourceSansPro-Regular", | |
| UIFontDescriptorCascadeListAttribute: | |
| @[ | |
| [UIFontDescriptor fontDescriptorWithFontAttributes:@{ UIFontDescriptorNameAttribute: @"Hiragino Sans GB W3" }] | |
| ] | |
| }]; | |
| }); | |
| UIFont *font = [UIFont fontWithDescriptor:fontDescriptor size:pointSize]; |
This file contains hidden or 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 ruby | |
| device_types_output = `xcrun simctl list devicetypes` | |
| device_types = device_types_output.scan /(.*) \((.*)\)/ | |
| runtimes_output = `xcrun simctl list runtimes` | |
| runtimes = runtimes_output.scan /(.*) \(.*\) \((com.apple[^)]+)\)$/ | |
| devices_output = `xcrun simctl list devices` | |
| devices = devices_output.scan /\s\s\s\s(.*) \(([^)]+)\) (.*)/ |
This file contains hidden or 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
| func unwrap<T1, T2>(optional1: T1?, optional2: T2?) -> (T1, T2)? { | |
| switch (optional1, optional2) { | |
| case let (.Some(value1), .Some(value2)): | |
| return (value1, value2) | |
| default: | |
| return nil | |
| } | |
| } | |
| func unwrap<T1, T2, T3>(optional1: T1?, optional2: T2?, optional3: T3?) -> (T1, T2, T3)? { |
This file contains hidden or 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
| # http://stackoverflow.com/a/28818420/484780 | |
| git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1` |