Skip to content

Instantly share code, notes, and snippets.

@pixbit
pixbit / .gitconfig
Created November 7, 2013 22:53
Github Alias Commands
hist = log --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --graph --date=short
histall = log --all --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --graph --date=short
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@pixbit
pixbit / consoleEachOutput.js
Created June 13, 2013 03:41
Goes through all elements selected and outputs them on the console.
jQuery('').each(
function(){
console.log($(this));
}
);
@pixbit
pixbit / GmapLatLngPoints.js
Created June 13, 2013 00:43
Google Map API LatLng Points
var townsvilleAustralia = new google.maps.LatLng(-19.257753, 146.823688);
var paloAltoCaliforniaUSA = new google.maps.LatLng(37.4258140463356, -122.0960618896484);
var raleighNorthCarolinaUSA = new google.maps.LatLng(35.77910693363999, -78.63945007324219);
var sydneyAustralia = new google.maps.LatLng(-33.92, 151.25);
var shelbyNorthCarolinaUSA = new google.maps.LatLng(35.2922, -81.5358);
var hickoryNorthCarolinaUSA = new google.maps.LatLng(35.72421761691415, -81.3427734375);
@pixbit
pixbit / index.html
Created July 27, 2012 01:45
Webkit - Card flip - Metro UI
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen &middot; A Pen by jpkeisala</title>
<!--
Copyright (c) 2012 Jukka-Pekka Keisala, http://codepen.io/jpkeisala
Permission is hereby granted, free of charge, to any person obtaining
@pixbit
pixbit / index.html
Created July 27, 2012 01:43
CSS task list.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pure CSS task list &middot; CodePen</title>
<!--
Copyright (c) 2012 koshdnb, http://codepen.io/koshdnb
Permission is hereby granted, free of charge, to any person obtaining
@pixbit
pixbit / index.html
Created July 27, 2012 01:42
Simple CSS loading spinner
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Simple CSS loading graphic &middot; CodePen</title>
<!--
Copyright (c) 2012 David Bond, http://codepen.io/davebond
Permission is hereby granted, free of charge, to any person obtaining
@pixbit
pixbit / index.html
Created July 27, 2012 01:41
CSS bubble speech from Android
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS bubble speech from Galaxy SII &middot; CodePen</title>
<!--
Copyright (c) 2012 Hugo Giraudel, http://codepen.io/HugoGiraudel
Permission is hereby granted, free of charge, to any person obtaining
@pixbit
pixbit / index.html
Created July 27, 2012 01:40
Seperator Title & Line
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Seperator Title & Line &middot; CodePen</title>
<!--
Copyright (c) 2012 Colin Simpson, http://codepen.io/FireNet
Permission is hereby granted, free of charge, to any person obtaining
@pixbit
pixbit / index.html
Created July 27, 2012 01:40
Special Buttons in CSS
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Special Buttons in CSS Only &middot; CodePen</title>
<!--
Copyright (c) 2012 Colin Simpson, http://codepen.io/FireNet
Permission is hereby granted, free of charge, to any person obtaining