Skip to content

Instantly share code, notes, and snippets.

View fabioyamate's full-sized avatar

Fabio Yamate fabioyamate

View GitHub Profile
@fabioyamate
fabioyamate / yui.html
Last active October 5, 2015 18:58
YUI snippet to start working
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>YUI Snippet</title>
<link rel="stylesheet" href="http://rawgithub.com/necolas/normalize.css/master/normalize.css">
<script src="http://rawgithub.com/LeaVerou/prefixfree/gh-pages/prefixfree.min.js"></script>
</head>
<body>
<div id="container"></div>
@fabioyamate
fabioyamate / extract.sh
Created May 14, 2012 03:26
One line script to extract multiples rar files, with historic of ones already extracted
# Extract multiple rar files in subdirs from torrent files
#
# it doesn't extract files that have been previously. Always run the script file in
# the same dir as extrected.list, since it store path
#
# 1. ls **/*.rar - look up to any rar files in sub dirs
# 2. ignores all files that matches ones in the extracted.lst file
# 3. appends the non-extracted files to the lst file
# 4. for each rar file, extract them in the current directory
#
@hsablonniere
hsablonniere / README.md
Created May 2, 2012 22:42
scrollIntoViewIfNeeded 4 everyone!!!

scrollIntoViewIfNeeded 4 everyone!!!

This gist provides a simple JavaScript implementation of the non-standard WebKit method scrollIntoViewIfNeeded that can be called on DOM elements.

Usage

Just use the code in index.js in your app or website. You can see usage in the test page test.html.

The parent element will only scroll if the element being called is out of the view. The boolean can force the element to be centered in the scrolling area.

@cstrahan
cstrahan / pair.md
Created April 11, 2012 00:22 — forked from wm/pair.md
TMUX Pairing

SSH setup for remote pairing

If Animal and Fozzie wanted to pair on Animals machine and they both have access to shared.muppets.com then they could use the following setup

  • Animal will have the following in ~/.ssh/config
Host tunnel_from_muppets
  Hostname space.muppets.com
 RemoteForward 1235 localhost:22