Skip to content

Instantly share code, notes, and snippets.

View rastersize's full-sized avatar

Aron Cedercrantz rastersize

View GitHub Profile
@rastersize
rastersize / README.md
Last active May 22, 2019 21:43
Syntax highlighting of xcconfig files for Sublime Text 3

Syntax highlighting of xcconfig files for Sublime Text 3

A syntax highlighter configuration for .xcconfig (Xcode configuration) files for Sublime Text 3. Based on work by @dflems.

Screenshot of an xcconfig file being highligthed

Fig 1: Screenshot of an xcconfig file being highligthed. Shown with the “Tomorrow - Night” theme.

Installation

Copy the files *.sublime-* files into an xcconfig directory in your Packages directory.

@rastersize
rastersize / keybase.md
Created October 14, 2016 16:57
Keybase proof

Keybase proof

I hereby claim:

  • I am rastersize on github.
  • I am rastersize (https://keybase.io/rastersize) on keybase.
  • I have a public key ASAy0pshfSYEGOeFcCsJ3K9hbgcj2jnS9G8_WgEz3E5U0wo

To claim this, I am signing this object:

@rastersize
rastersize / HMAC.swift
Created October 11, 2016 15:21 — forked from MihaelIsaev/HMAC.swift
Easy to use Swift implementation of CommonCrypto HMAC. You can easily hash your String to: md5, sha1, sha224, sha256, sha384, sha512 with pure Swift.
//
// HMAC.swift
//
// Created by Mihael Isaev on 21.04.15.
// Copyright (c) 2014 Mihael Isaev inc. All rights reserved.
//
// ***********************************************************
//
// How to import CommonCrypto in Swift project without Obj-c briging header
//
@rastersize
rastersize / RSTimingFunction.h
Created February 10, 2016 18:04 — forked from raphaelschaad/RSTimingFunction.h
All the cool animation curves from `CAMediaTimingFunction` but not limited to use with CoreAnimation. See what you can do with cubic Bezier curves here: http://netcetera.org/camtf-playground.html To get started just "Download Gist", throw the .h and .m files into your Xcode project and you're good to go!
//
// RSTimingFunction.h
//
// Created by Raphael Schaad on 2013-09-28.
// This is free and unencumbered software released into the public domain.
//
#import <Foundation/Foundation.h>
@rastersize
rastersize / ioslocaleidentifiers.tsv
Last active April 1, 2016 08:03 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@rastersize
rastersize / open.sh
Created June 23, 2014 13:10 — forked from mayoff/open.sh
#
# This is a set of bash function definitions, and a bash command, that
# set up bash completion for the Mac OS X "open" command.
#
# HOW TO USE
#
# Add this command to your .bashrc:
#
# . open.sh
#
@rastersize
rastersize / image.py
Last active December 12, 2015 01:38 — forked from phughes/image.py
Generate an `UIImage`/`NSImage` category for each image in the supplied directory. (Differs from the original in that it generates a category with methods instead of a list of `#define`s.)
import os.path as path
import string
import argparse
import glob
import re
def basename(filename):
base = filename
if filename.find('@2x') > 0:
base = filename[:filename.find('@2x')]
USER=rentzsch
PASS=mypassword
REPO=mogenerator
# Delete default labels
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question"