Skip to content

Instantly share code, notes, and snippets.

View ideamonk's full-sized avatar
🍹
wfh

Ideamonk ideamonk

🍹
wfh
View GitHub Profile
@sergejmueller
sergejmueller / ttf2woff2.md
Last active March 9, 2024 13:37
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@shannoga
shannoga / gist:1008678
Created June 5, 2011 05:14
Get fonts family and font names list on iOS
// List all fonts on iPhone
NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
NSArray *fontNames;
NSInteger indFamily, indFont;
for (indFamily=0; indFamily<[familyNames count]; ++indFamily)
{
NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);
fontNames = [[NSArray alloc] initWithArray:
[UIFont fontNamesForFamilyName:
[familyNames objectAtIndex:indFamily]]];
@abhin4v
abhin4v / random_cow_fortune.sh
Created April 8, 2011 11:15
Generates a random fortune spoken by a random cow
fortune -s -n 100 | cowsay -f `ls -1 /usr/share/cowsay/cows/ | replace ".cow" "" | tail -n +\`echo $(( 1 + (\\\`od -An -N2 -i /dev/random\\\`) % (\\\`ls -1 /usr/share/cowsay/cows/ | wc -l\\\`) ))\` | head -1`
@kitallis
kitallis / pratulkalia.rb
Created December 14, 2010 14:11
PratulKalia can do a lot of things.
class PratulKalia
class << self
def should(&sblk)
self.new.instance_eval(&sblk)
end
end
end
class Blabber
def things(arg)