Skip to content

Instantly share code, notes, and snippets.

View osahyoun's full-sized avatar

Omar Sahyoun osahyoun

View GitHub Profile
@osahyoun
osahyoun / instagram-feed.html
Last active August 20, 2016 09:57
Display Your Instagram Feed With 14 Lines of Code
<html>
<body>
<!--This requires a bitsalad URL (www.bitsalad.co) for your instagram feed, and append ?callback=_i to the URL.-->
<div id='instagram-feed'></div>
<script>
(function(a,b,c,d){
var $ = b.getElementById('instagram-feed');
a['_i'] = function(d){
@vsouza
vsouza / .bashrc
Last active June 25, 2025 10:02
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby