Skip to content

Instantly share code, notes, and snippets.

View jaredwilli's full-sized avatar
🏄‍♂️

Jared Williams jaredwilli

🏄‍♂️
View GitHub Profile
@jaredwilli
jaredwilli / gist:3956746
Created October 26, 2012 03:44 — forked from jupiterjs/gist:987358
Resize.md

jQuery Resize Event

When building web applications, it can be tricky to get pages to layout correctly, especially when layout can't be done with CSS. Widgets that can dynamically change the layout only complicate matters. JavaScriptMVC 3.1 packs a new resize event that greatly simplifies these layouts.

@jaredwilli
jaredwilli / add-event.js
Created November 15, 2012 03:41 — forked from desandro/add-event.js
add/remove event with handleEvent helper
// modified John Resig's http://ejohn.org/projects/flexible-javascript-events/
var div = document.createElement('div');
var addEvent, removeEvent;
if ( div.addEventListener ) {
addEvent = function( elem, type, fn ) {
elem.addEventListener( type, fn, false );
};
@jaredwilli
jaredwilli / gist:4076509
Created November 15, 2012 03:41 — forked from mrdoob/gist:845802
video to looped animated gif
ffmpeg -i out.ogv -s 160x128 -pix_fmt rgb24 -ss 62.6 -t 3 -r 5 -loop 0 -f gif out.gif
convert -loop 0 -layers Optimize out.gif outopt.gif
@jaredwilli
jaredwilli / Grep.js
Created November 24, 2012 16:32 — forked from nicdaCosta/Grep.js
Basic function that searches / filters any object or function and returns matched properties.
/*
Grep.js
Author : Nic da Costa ( @nic_daCosta )
Created : 2012/11/14
Version : 0.1
License : MIT, GPL licenses.
Overview:
Basic function that searches / filters any object or function and returns matched properties.
Main area of use would be for DevTools purposes, when needing to find a specific property but only part of
@jaredwilli
jaredwilli / gist:4235026
Created December 7, 2012 17:48 — forked from paulirish/gist:4158604
Learn JavaScript concepts with recent DevTools features

Learn JavaScript concepts with the Chrome DevTools

Authored by Peter Rybin , Chrome DevTools team

In this short guide we'll review some new Chrome DevTools features for "function scope" and "internal properties" by exploring some base JavaScript language concepts.

Closures

Let's start with closures – one of the most famous things in JS. A closure is a function, that uses variables from outside. See an example:

@jaredwilli
jaredwilli / README.md
Created December 10, 2012 00:42 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@jaredwilli
jaredwilli / github.md
Created December 10, 2012 05:01 — forked from revolunet/github.md
Whats missing from Github

Missing features on Github

After some years using github, heres what i miss most. Add your comments :)

Repositories :

  • Ability to choose a licence type for each project, with auto-generated licence. (see [mit-licence.org][0])
# place this in your ST2 'User' folder
# eg: /Users/juju/Library/Application Support/Sublime Text 2/Packages/User/compass.sublime-build
#
{
"cmd": ["compass", "compile", "--boring" ,"$file_name"],
"working_dir": "$file_path",
"selector": "source.scss"
}
# ceci extraira en jpg la premiere image de la video test.mpg
vlc.exe -V image --start-time 0 --stop-time 1 --image-out-format jpg --image-out-ratio 24 --image-out-prefix snap test.mpg vlc://quit

[project-name][1] ![build status][2]

project-description

getting started

overview

frequently asked questions

license

copyright © username [![endorse][3]][4]