Skip to content

Instantly share code, notes, and snippets.

View afrael's full-sized avatar

Afrael Ortiz afrael

View GitHub Profile
@afrael
afrael / Localizable.htm
Created June 1, 2013 16:06
Localizable content using Javascript
<a href="#" class="scroller" data-section="#about"><span lang="EN">About</span><span lang="ES">Acerca De</span></a>
<script>
$('.set_lang_EN').click(function(){
$("[lang]").each(function () {
if ($(this).attr("lang") == "EN")
$(this).show();
else
$(this).hide();
});
@afrael
afrael / protocolDemo.m
Last active December 21, 2015 12:49
The power of protocols to avoid concrete implementations
// Model
// OAStack.m
@protocol OAStack
- (void) pushData:(id)data;
- (id) popData;
@optional
- (void) purgeStack;

OS X 10.10 Guide

Here's what I did to get things working.

1. Install Xcode 6

Yep, over at: https://developer.apple.com

2. Install the Command Line Tools (CLT)

@afrael
afrael / twittermute.txt
Created January 25, 2020 15:46 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet