Skip to content

Instantly share code, notes, and snippets.

View fffabs's full-sized avatar
:electron:
Coding

Fabio fffabs

:electron:
Coding
View GitHub Profile
@fffabs
fffabs / Lead iOS Developer.md
Last active November 30, 2016 12:10
Mikleo iOS Developer for hire

Hello! 👋 We’re Mikleo, a design studio based in Manchester city centre, looking to hire a Lead iOS Developer to join our fantastic little team and create beautiful, user-focused apps and products.

Born 👶 in February this year, we’ve already worked with a variety of exciting clients from across the globe, including 16Personalities.com, King.com and Riot Games. Most of our projects come in from overseas, so you’ll have plenty of opportunities to work on some of the world’s most exciting new startup ideas.

@fffabs
fffabs / Export_assets.sh
Created May 27, 2016 11:52
What I use to organise the right sliced assets into their properly named folders.
# Android export
mkdir xxhdpi; mkdir xhdpi; mkdir hdpi; mkdir mdpi; mkdir xxxhdpi
for file in $(find . -type f -iname '*-xxhdpi*'); do
mv "$file" "xxhdpi/${file/-xxhdpi/}"
done
for file in $(find . -type f -iname '*-xhdpi*'); do
mv "$file" "xhdpi/${file/-xhdpi/}"
done
@fffabs
fffabs / Preferences.sublime-text.json
Created December 20, 2013 17:26
SublimeText 3 User Preferences
{
//
// Fonts
"font_face": "Monaco",
"font_options":"subpixel_antialias",
"font_size": 11.0,
"bold_folder_labels":true,
"line_padding_bottom":1,
"line_padding_top":1,
"word_separators": "./\\()\"'-:,.;<>~!@$%^&*|+=[]{}`~?", // Remove '#'

Intro

I wanted to try out the MonoGame framework, which allows for creating cross-platform games based on the XNA API. It wasn't straightforward for me to run a Mac example (on OS X Mountain Lion). There were a number of steps I had to go through to get things working, including combing through forum posts. The official instructions didn't seem to work, or I couldn't find the most recent instructions. It's for situations like these I wish I had the foresight to journal my progress so that others don't get tripped up. Here are instructions I followed in case someone finds them useful.

Steps

  1. Install Xamarin Studio and the specified dependencies (mono, gtk+).
  2. Install the MonoGame project template for Xamarin Studio
  3. Install XCode from the Mac App Store.
@fffabs
fffabs / gist:550084
Created August 25, 2010 19:11
A basic Python wrapper for the new Forrst API
import urllib2
import simplejson
API_URL = 'http://api.forrst.com/api/'
VERSION = 'v1'
# Compose the base URL - maybe at __init__ ?
URL = API_URL + VERSION
class Forrst:
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index a3b612b..b75796e 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -92,7 +92,7 @@ ossl_x509_ary2sk(VALUE ary)
#define OSSL_IMPL_SK2ARY(name, type) \
VALUE \
-ossl_##name##_sk2ary(STACK *sk) \
+ossl_##name##_sk2ary(STACK_OF(type) *sk) \