Skip to content

Instantly share code, notes, and snippets.

@mynameismiek
mynameismiek / genicons.sh
Last active October 11, 2017 16:03
shell script for generating iOS and Android icons from source images. It needs Python3 (or virtualenv) and CairoSVG installed to work (http://cairosvg.org/).
#!/bin/bash
RED_ON='\e[0;31m';
GREEN_ON='\e[0;32m';
YELLOW_ON='\e[0;33m'
OFF='\e[0m'
# Python 3 Virtual Env !!! replace with your own !!!
source ~/Projects/tensorflowp3/bin/activate
# Set arguments
@mynameismiek
mynameismiek / Emojify Terminal Prompt Instructions.txt
Created August 9, 2017 13:11
Get a random emoji for your terminal prompt instead of that boring old dollar sign.
1. Make sure ruby is installed
2. Add this to your bash profile:
# emoji prompt
export PS1="\w \$(~/.emoji.rb) "
2(alt). Or, if you are using zsh, edit your theme and add this to the PROMPT (I put it at the end with a couple spaces after)
$(~/.emoji.rb)
3. create .emoji.rb and place in same directory as bash profile and with contents:
@mynameismiek
mynameismiek / ViewExtensions.cs
Last active December 14, 2015 00:08 — forked from ChuckSavage/ViewExtensions.cs
Added tap gestures and a way to remove the views from this class when they are disposed. This class registers itself with the default notification center. Simply add NSNotificationCenter.DefaultCenter.PostNotificationName(ViewExtensions.ViewDisposed, View) to your disposal method.
using System.Collections.Generic;
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
using MonoTouch.UIKit;
namespace iOSLib
{
public static class ViewExtensions
{
public static String ViewDisposed = "ViewExtension_ViewDisposed";