A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
// | |
// AppDelegate.m | |
// AnimationExamplesiPhone | |
// | |
// Created by Eric Allam on 10/05/2014. | |
#import "AppDelegate.h" | |
#pragma mark - UIColor Additions |
#!/bin/bash | |
### Save as "/usr/local/bin/progress" and chmod +x, then: | |
# | |
# $ progress ~/huge-file.tar.bz2 | |
# $ progress -p $(pidof bzcat) | |
# $ progress # progress of all open files, shows e.g. how far mpd is through your song :P | |
# | |
# source: http://stackoverflow.com/a/238140/69663 |
// Win32 : Minimal VST 2.x Synth host in C++11. | |
// | |
// This is a simplified version of the following project by hotwatermorning : | |
// A sample VST Host Application for C++ Advent Calendar 2013 5th day. | |
// https://github.com/hotwatermorning/VstHostDemo | |
// | |
// Usage : | |
// 1. Compile & Run this program. | |
// 2. Select your VST Synth DLL. | |
// 3. Press QWERTY, ZXCV, etc. |
Objective-C APIs can now express the “nullability” of parameters, return types, properties, variables, etc. For example, here is the expression of nullability for several UITableView APIs:
-(void)registerNib:(nonnull UINib *)nib forCellReuseIdentifier:(nonnull NSString *)identifier;
-(nullable UITableViewCell *)cellForRowAtIndexPath:(nonnull NSIndexPath)indexPath;
@property (nonatomic, readwrite, retain, nullable) UIView *backgroundView;
The nullability qualifiers affect the optionality of the Objective-C APIs when in Swift. Instead of being imported as implicitly-unwrapped optionals (e.g., UINib!), nonnull-qualified types are imported as non-optional (e.g., UINib) and nullable-qualified types are imported as optional (e.g., UITableViewCell?), so the above APIs will be seen in Swift as:
func registerNib(nib: UINib, forCellReuseIdentifier identifier: String)
#!/usr/bin/env bash | |
# vim: set filetype=ruby: | |
# b - browse Chrome bookmarks with fzf | |
[ $(uname) = Darwin ] || exit 1 | |
which fzf > /dev/null 2>&1 || brew reinstall --HEAD fzf || exit 1 | |
/usr/bin/ruby -x "$0" | | |
fzf-tmux -u 30% --ansi --multi --no-hscroll --tiebreak=begin | | |
awk 'BEGIN { FS = "\t" } { print $2 }' | |
#!/bin/sh | |
# Create a RAM disk with same perms as mountpoint | |
# Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
# Usage: sudo ./xcode_ramdisk.sh start | |
# PREREQUISITE: | |
# mkdir /Users/$USERNAME/Library/Developer/Xcode/DerivedData.shadow | |
## Unless you clear DerivedData folder, you can't mount ramdisk on it | |
# rm -r /Users/$USERNAME/Library/Developer/Xcode/DerivedData/* |
#!/bin/sh | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
enabled=$? | |
if [ "$1" = "off" ]; then | |
if [ $enabled -eq 1 ]; then | |
defaults write com.apple.finder CreateDesktop false | |
osascript -e 'tell application "Finder" to quit' | |
open -a Finder |
🌁📉🌁🌁⬜⬜⬜🌁⬜🌁📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📃🏭📃🌁📃📃🌁📃📃🏂🏂🎂📃🌁🌁🏭📃🏢🏭🎂📃🏭📃🏢📃⛲⛲🕕⬜📩🔳🍧💈📤🎲📤📉🌁🌁📃🌁⬜📈⬜⬜⬜⬜🌁⬜⬜⬜⬜⬜🌁
⬜🌁🌁⬜⬜⬜🌁🌁🌁📃📃⬜⬜⬜⬜⬜⬜🌁⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁🌁📃📃🌁📃💬🏢💬🌁🌁🌁🌁📃🏭💬💬🏭📃🌁🏭💬🏂⛲⛲📂⬜🌄🌄⚾📱💈📱🕖🏭📈📃🌁⬜⬜📈⬜⬜⬜🌁📝📝⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜🌁🌁🌁📃🌁🌁🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁📃📃🌁📃🌁📃💬📂🏢🌁📃🏢📃📃💬🏭💬🏢🏢🏢🏢🏂⛲📖⛲🔣📉💬💌🌄📤💈👟🎲🎂🌁🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜🌁🌁📃📃📃📃📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🏭📃📃🌁📃💬🎂🔳📂🏂📃📉📉🌁⬜⬜🗼🗼🗼🗼📈📃📃📃📃🌁🎂🕓⚾📱💈💈🍜📈⬜🌁📃⬜🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜🌁📃📃📃📃🏭📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁🌁🌁📃🏂🏢📃🕕🍚🌁⬜🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🎂🔳📧👀🔩🍧🐹🌁🌁🌁⬜⬜📈🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜🌁💬🏂📃📃🌁📃📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁📃🏭🏭🍚🏂🏢🏂🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📝🕕🎲🔏🔘🐚📩🌁⬜⬜🌁🌁🌁🗼🌁🌁🌁⬜⬜⬜🌁🌁🌁🌁⬜
⬜⬜⬜📜🌁📃🏂🏢📃🏢🏢🏢🏭🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁🌁📈📑🎡🏢🏢📃🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📃📠😰💌🎹📤⛅🎂⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📃📃
⬜⬜⬜🌁🏭🏭📃🏢🏢🏢🏢🏢📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁⬜⬜🌁🎡⬜🌁🏢🏢🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁💬📜💑🌄📤🏦🔤🏭⬜⬜⬜⬜⬜⬜🌁🌁📈🌁🌁📃🌁🌁🌁🏭💬
⬜🏭📃📃📃📃📃📂🏂🌁💬🏢📃⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🌁🌁⬜⬜🌁🏭🌁🗼💬🔳📃📃📉🗼🌁🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜🌁🎂📝📜🐹🔘👀🎹💬📝🌁📈🌁🌁🌁📈📃📃📈📃📈📃📃🏭🏭🏂
🌁🌁📃📃📃📃🏢🏂📃📃🌁📃📃🌁⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📈📃🏂📈💬📃📉🏭📈📃🏭📈📈⬜⬜🌁📃⬜⬜⬜⬜⬜⬜📈🎂🏂📄🎂💌🔘🐚😱🎂📃📈📈🏭📈📈📈📃📈📈📈📈📃🏭📃📃💬