Skip to content

Instantly share code, notes, and snippets.

View billpull's full-sized avatar

Bill Pullen billpull

  • ParlayPlay
  • Miami, FL
View GitHub Profile
@billpull
billpull / SassMeister-input.scss
Created July 21, 2014 18:39
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
%Placeholder1 {
color: red;
}
%Placeholder2 {
background: black;
@billpull
billpull / Layer to Sprite.jsx
Last active August 29, 2015 14:02 — forked from jessefreeman/layers_to_sprite_sheet.js
Create vertical sprite in photoshop
// Put this file in Program Files\Adobe\Photoshop\Presets\Scripts\
// In PhotoShop menu File > Automate > Scripts: layersToSprite.js
// Arrange layers into a sprite sheet.
if (documents.length > 0)
{
// --------------------------
docRef = activeDocument;
@billpull
billpull / main.js
Created April 3, 2014 05:35
Twitter Message Count With Shortened Links
/* Character Count for Posts */
function checkPostForURL(post){
var matches = [],
urlexp = new RegExp("(^|[ \t\r\n])((http|https):(([A-Za-z0-9$_.+!*(),;/?:@&~=-])|%[A-Fa-f0-9]{2}){2,}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*(),;/?:@&~=%-]*))?([A-Za-z0-9$_+!*();/?:~-]))","g"),
$linkShort = $('#linkstoshort'),
matchIdx = 0;
if ( post !== undefined ){
if ( urlexp.test(post) ){
var offset = 0;