Skip to content

Instantly share code, notes, and snippets.

View joshuapekera's full-sized avatar

Joshua Pekera joshuapekera

View GitHub Profile
@tricil
tricil / Asynchronous Facebook Twitter Google+ buttons and Google Analytics Social Tracking
Created April 21, 2012 04:21
This .js file will render HTML5 social buttons asynchronously as well as bind callbacks to Google Analytics. Twitter Follow Action and Facebook Comment tracking included.
window.fbAsyncInit = function() {
FB.init({
appId : '123456', // ENTER your FB App ID
//channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
_ga.trackFacebook(); //Google Analytics tracking
@pmeinhardt
pmeinhardt / webinspect-ios-simulator.sh
Created April 27, 2012 10:16
web-inspect mobile safari running in the ios simulator
#!/bin/bash
# Based on Nathan de Vries' findings http://goo.gl/jbtzX
MSPID=$(ps x | grep "MobileSafari" | grep -v grep | awk '{ print $1 }')
if [ -z "$MSPID" ]; then
echo "Run \"Mobile Safari.app\" in the Simulater to enable remove debugging."
exit 1
fi
@joshuapekera
joshuapekera / Asynchronous Facebook Twitter Google buttons and Google Analytics Social Tracking This .js file will render HTML5 social buttons asynchronously as well as bind callbacks to Google Analytics. Twitter Follow Action and Facebook Comment tracking included.
window.fbAsyncInit = function() {
FB.init({
appId : '123456', // ENTER your FB App ID
//channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
_ga.trackFacebook(); //Google Analytics tracking
@joshuapekera
joshuapekera / gist:2571235
Created May 1, 2012 20:46 — forked from yahelc/gist:1004702
Simpler Twitter Intents / Google Analytics Script
(function(){
var event_names = {
"click" : "" ,
"tweet" : "",
"retweet" : "source_tweet_id",
"follow" : "screen_name",
"favorite" : "tweet_id"
};
for(var event_name in event_names)
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 9, 2025 12:04
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@joshuapekera
joshuapekera / styles.css
Last active October 7, 2015 13:38
Responsive Base CSS
/*
* Main CSS by Joshua Pekera
*/
/* Table of Content
==================================================
:: Global Site Styles
:: Header & Global Nav
:: Side Nav
:: Content Containers & Grids
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@mbostock
mbostock / .block
Last active April 19, 2025 08:19
The Gist to Clone All Gists
license: gpl-3.0
@joshuapekera
joshuapekera / queries.less
Last active November 17, 2016 10:47
A starting point for responsive design and retina graphics. Best used in conjunction with Twitter Bootstrap.
/* !START Responsive Queries*/
// -----------------------------------------------------------------------------------------------------
/* !Mobile Default - Landscape phone to portrait tablet */
// ------------------------------------------------------
@media (max-width: 767px) {
/* Styles */
}// Close Query
/* !Mobile - Landscape Specific */
@joshuapekera
joshuapekera / fonts.less
Created October 31, 2012 18:26
Proxima Nova Font Face
/* Typekit delayed loading of Ansyc Fonts */
.wf-loading h1, .wf-loading h2, .wf-loading h3, .wf-loading p, .wf-loading a { visibility: hidden; }
/* Font-Face */
@font-face {
font-family: @sansFontFamily;
src: url(../fonts/proxima-nova/proximanova-regular-webfont.eot?1307578394);
src: url('../fonts/proxima-nova/proximanova-regular-webfont.eot?iefix') format('eot'),url(../fonts/proxima-nova/proximanova-regular-webfont.woff?1307578394) format('woff'),url(../fonts/proxima-nova/proximanova-regular-webfont.ttf?1307578394) format('truetype'),url('../fonts/proxima-nova/proximanova-regular-webfont.svg#webfont2rpW2ohz') format('svg')
}