Skip to content

Instantly share code, notes, and snippets.

View kevinrenskers's full-sized avatar

Kevin Renskers kevinrenskers

View GitHub Profile
@kevinrenskers
kevinrenskers / emoticonize
Created March 16, 2015 14:02
A simple emoticonize filter for AngularJS: translates emoticon codes and smileys to emoji
angular.module('components.filters').filter('emoticonize', function emoticonize() {
'use strict';
// Try to stick to the emoticon codes as used by GitHub, Campfire, Basecamp, Flowdock, Slack.. etc.
// See http://www.emoji-cheat-sheet.com for a list.
var table = {
'🔥': [':fire:'],
'💩': [':shit:', ':hankey:', ':poop:'],
'🙏': [':pray:'],
@kevinrenskers
kevinrenskers / createbuild.sh
Last active May 6, 2016 12:39
iOS build script
#!/bin/bash
ARCHIVE_DEST_PATH="./archive"
ARCHIVE_PACKAGE="$ARCHIVE_DEST_PATH.xcarchive"
# Remove old archive
if [ -f "$ARCHIVE_PACKAGE/Info.plist" ]; then
rm -r "$ARCHIVE_PACKAGE"
fi
@kevinrenskers
kevinrenskers / progress-button.less
Last active January 20, 2017 11:11
Progress button for AngularJS
/* General styles for all types of buttons */
.progress-button {
position: relative;
display: inline-block;
}
.progress-button .progress-button-content {
position: relative;
display: block;
}
import ComposableArchitecture
struct Environment {}
// Account
struct AccountState: Equatable {
var username: String?
}