Skip to content

Instantly share code, notes, and snippets.

@paulrouget
paulrouget / foo
Created January 9, 2011 20:15
test
<p>test</p>
int main() {
}
@paulrouget
paulrouget / uploader.html
Created March 10, 2011 23:21
The shortest Image Uploader Ever. Yeah. (Firefox 4 and Chrome)
<!DOCTYPE html>
<!-- This is the shortest Image Uploader ever :)
And you can even make it shorter if you don't
want all the drag'n drop thing. -->
<!--
AUTHOR: @paulrouget <paul@mozilla.com>
LICENSE:
@paulrouget
paulrouget / slides.html
Created August 23, 2011 09:13
HTML5. Today and tomorrow
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML5 today and tomorrow</title>
<section id="intro">
<h1>HTML5 &amp; Friends</h1>
<h2>Today and tomorrow</h2>
<footer>by <a href="http://twitter.com/paulrouget">@paulrouget</a></footer>
</section>
@paulrouget
paulrouget / fiddle.css
Created October 4, 2011 11:52
Firefox HTML Tree Panel
html {
background-color: -moz-dialog;
}
body {
margin: 0;
overflow: auto;
font-family: Lucida Grande, sans-serif;
font-size: 11px;
border-top: 1px solid #BBB9BA;
@paulrouget
paulrouget / .tmux.conf
Created January 27, 2012 17:37
Paul's configurations files
set -g default-terminal "screen-256color"
set -g status-utf8 on
bind M source-file ~/.tmux/mac.session
bind L source-file ~/.tmux/linux.session
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# THEME
set -g status-bg black
@paulrouget
paulrouget / bzprettify.js
Created February 7, 2012 10:13
Prettify Bugzilla Activity Report
var rows = document.querySelectorAll("#report > tbody > tr:not(#report-header)")
var bugs = {};
var currentBug = null;
var currentDate = null;
for (var i = 0; i < rows.length; i++) {
var row = rows[i];
// new bug?
let f = this.iframe;
this.iframe.addEventListener("load", function() {
dump("XXX " + f.contentDocument + "\n"); // Will dump "undefined" - but later, this property is available. Why?
}, true);
@paulrouget
paulrouget / s.vim
Created February 14, 2012 07:28
Darkroom mode for Vim
""" FocusMode
function! ToggleFocusMode()
if (&foldcolumn != 12)
set laststatus=0
set numberwidth=10
set foldcolumn=12
set noruler
hi FoldColumn ctermbg=none
hi LineNr ctermfg=0 ctermbg=none
hi NonText ctermfg=0
@paulrouget
paulrouget / example.html
Created February 16, 2012 13:35
Fullscreen in a the context menu
<canvas contextmenu="fullscreenmenu"></canvas>
<!-- can be a div if you prefer -->
<menu id="fullscreenmenu" type="context">
<menuitem label="fullscreen"
onclick="document.querySelector('canvas').requestFullScreen()">
</menuitem>
</menu>
<script>