Skip to content

Instantly share code, notes, and snippets.

View nhoizey's full-sized avatar
👋

Nicolas Hoizey nhoizey

👋
View GitHub Profile
@judbd
judbd / gist:8826823
Last active August 29, 2015 13:56
La meilleure ligne de métro

Christophe:
=)
putain c'te FLEMME


Julien:
same here
en plus il faut que je passe au vieux campeur ce soir
flemmouze × 1000
c'est même pas sur ma ligne de métro
LA PUTAIN DE LIGNE TROIS

run:
casperjs index.js && convert *.jpg video.mpeg && gify video.mpeg out.gif && rm *.jpg video.mpeg
@karlcow
karlcow / tracking.md
Last active August 29, 2015 14:06
Tracked by redirections from a simple tweet.

How tracking is working.

Let's start a first request.

→ http HEAD http://t.co/b6O9bSv5XO

Pagination Issues

We created a pagination project, following the discussion. Check the issues

This is a long standing discussion in the French community about pagination issues. These are a list of issues for collecting feedback and eventually publish an article on http://www.openweb.eu.org/ or somewhere. Feel free to write in English or French. Consider this place as a draft. UX, code, accessibility thoughts are welcome.

Issues

@vovko
vovko / curated_collections.js
Last active August 29, 2015 14:18
500px Curated Collections
// ==UserScript==
// @name 500px Curated Collections
// @namespace http://500px.com
// @version 0.1
// @description Curating Curated Collections
// @match http://500px.com/photo/*
// @copyright 2014, Vova
// ==/UserScript==
CollectionsView = Backbone.View.extend({
# Bash script to convert a GIF to a video
# Only works with const framerate gifs
# Requires ffmpeg and imagemagick
# Modified from https://www.npmjs.com/package/videofy
function gif2video() {
fps="$(identify -format '%T\n' $@ | tail -1 | awk '{ print 100/$1 }')"
echo "GIF FPS: $fps"
convert "$@" gif2video_tmp_%05d.jpg
ffmpeg -f image2 -r $fps -i gif2video_tmp_%05d.jpg -c:v libx264 "$@.mp4"
(function(window, document, undefined) {
// Enable all HTML5 elements in IE. For discussion and comments, see: http://remysharp.com/2009/01/07/html5-enabling-script/
/*@cc_on'abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)})@*/
if (![].forEach) {
Array.prototype.forEach = function (fn) {
var len = this.length || 0, that = arguments[1];
if (typeof fn == 'function') {
for (var i = 0; i < len; i++) {
@remy
remy / view-source.js
Created March 4, 2010 10:05
Save this a bookmarklet on your iPhone or desktop browser to view the source to the current page
// bookmarklet to introspect the source of current page
javascript:(function(d,h){h=d.documentElement.innerHTML;d.open();d.write('<pre>'+('<!DOCTYPE html><html>'+h+'</html>').replace(/[<>]/g,function(m){return{'<':'&lt;','>':'&gt;'}[m]})+'</pre>')})(document);
<link rel="stylesheet" href="anothersheet.css" type="text/css" charset="utf-8">
<style type="text/css" media="screen">
@font-face {
/* etc */
}
</style>
<!--
The above causes rendering to block in IE6-8 until the external font has downloaded.
So, to avoid blocking in IE:
@remy
remy / gist:539433
Created August 20, 2010 02:01
Random hex colour with correct padding for small colours
(function(h){return '#000000'.substr(0,7-h.length)+h})((~~(Math.random()*(1<<24))).toString(16))