Skip to content

Instantly share code, notes, and snippets.

View jgrana's full-sized avatar
🐢
Go Fractional

Jonathan Grana jgrana

🐢
Go Fractional
View GitHub Profile
@jgrana
jgrana / osx_install.sh
Last active July 23, 2018 14:28 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Keybase proof

I hereby claim:

  • I am jgrana on github.
  • I am jgrana (https://keybase.io/jgrana) on keybase.
  • I have a public key ASCHMjDLZbzOF-Z6NmYVHQgISOx9w-o37q8tJwb5SV3lvgo

To claim this, I am signing this object:

@jgrana
jgrana / Queue.swift
Created October 31, 2015 18:55
Generic swift queue
private class QueueItem<T> {
let value: T!
var next: QueueItem?
init(_ newvalue: T?) {
self.value = newvalue
}
}
public class Queue<T> {
@jgrana
jgrana / modeltest.m
Created November 14, 2014 20:56
Iterate properties snippet
const char *property_getTypeString( objc_property_t property ) {
const char * attrs = property_getAttributes( property );
if ( attrs == NULL )
return ( NULL );
static char buffer[256];
const char * e = strchr( attrs, ',' );
if ( e == NULL )
return ( NULL );
@jgrana
jgrana / gist:b9f0d4b3700f0eecc1a3
Last active August 29, 2015 14:06
Git Log From Last Tag As MarkDown
# First it will fetch the last tag ending in -release excluding the current commit in the search
# Markdown references github links
git log `git describe --tags --abbrev=0 --match "*-release" HEAD^`..HEAD --pretty=format:'<a href="http://github.com/UrbanCompass/mobile/commit/%H">%h</a> %s - __%an__ *%ad*<br />' --reverse --date=local >> RELEASENOTES.MD