Skip to content

Instantly share code, notes, and snippets.

View pomeh's full-sized avatar

Romain Guerin pomeh

View GitHub Profile
{
"name": "French TV",
"description": "Watch French TV",
"author": "pomeh",
"unblocker_rules": {
"tf1": {
"description": "Watch TF1",
"link": "tf1.fr",
"icon": "http://www.tf1.fr/favicon.ico",
"cmds": [
@pomeh
pomeh / pr.md
Created September 17, 2012 14:54 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

This is a feedback for the article at http://buildnewgames.com/sprite-animation/. It contains code review, bug fixes and sort of improvements.

First of all, the article concerned contains a lot of jsfiddle demonstration. I think it's really nice as we can see the code, see the result and make our change as we like. But it seems like the usage of jsfiddle may be improved. Here is the trick: jsfiddle has 3 "fields" where we can type code (for HTML, CSS, and Javascript). So please stop writing every things like this http://jsfiddle.net/dariusk/wa8eV/light/, that's insane. What is easier to read between this http://jsfiddle.net/pomeh/tQE89/ and this http://jsfiddle.net/pomeh/tQE89/1/ ? If you pay attention to the source, I've modified the onload function to make it an anonymous one. Here is why and what happens, and here are some solutions, from worst to [best](http://jsfiddle.net/pomeh/ZjF3y/3/

@pomeh
pomeh / wtcraft.com.user.js
Created April 2, 2012 19:27
my userscripts
// ==UserScript==
// @name wtcraft.com
// @description Removes annoying ads on wtcraft.com, UX anyone ?
// @author pomeh
// @match http://www.wtcraft.com/
// @match http://www.wtcraft.com/*
// @match http://wtcraft.com/
// @match http://wtcraft.com/*
// @include http://www.wtcraft.com/
// @include http://www.wtcraft.com/*
@pomeh
pomeh / jQuery.fn.getEvents
Created February 11, 2012 21:19
Get jQuery events informations
jQuery.fn.getEvents = function( type ) {
var evts = jQuery._data( this[0] ).events;
return evts && evts[type] || evts;
};
// usage
jQuery( "#foo" ).getEvents();
jQuery( "#foo" ).getEvents( "click" );
@pomeh
pomeh / data-markdown.user.js
Created November 8, 2011 22:28 — forked from paulirish/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@pomeh
pomeh / tweet.sh
Created November 8, 2011 21:49 — forked from espadrine/tweet.sh
Twitter bash script
#!/bin/bash
# Configure your account.
USER=espadrine
# Ask for the password.
echo -n password\ ; read -s PASS
curl -u $USER:$PASS -d status="$1" http://twitter.com/statuses/update.xml
Some other generals links
http://palagpat-coding.blogspot.com/2010/09/in-case-you-missed-it-jsconfeu-2010-day.html
http://www.blueskyonmars.com/2010/09/30/jsconf-eu-2010-a-weekend-of-awesome/
http://www.delicious.com/spacecowboy/jsconf+berlin+2010
http://speakerrate.com/events/589-jsconf-eu-2010?all (all the presentation on speakerrate)
http://www.delicious.com/mattscape/jsconfeu2010
http://phpugmunich.org/dokuwiki/jsconfeu
https://twitter.com/buyog/jsconf-eu-2010
http://dailyjs.com/2010/09/27/jsconfeu/
@pomeh
pomeh / screening.js
Created September 13, 2010 21:02 — forked from rmurphey/screening.js
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}
// ----------
bar[foo?'doSomething':'doSomethingElse'](el);