Skip to content

Instantly share code, notes, and snippets.

@Meroje
Meroje / Makefile
Created January 19, 2012 08:41
Autocompile tex files with latexmk, simply run 'watchr latex.rb'. Works very well with Dropbox
TEXFILES := $(shell find . -name "*.tex")
PDFFILES := $(patsubst %.tex,%.pdf,$(TEXFILES))
all: $(PDFFILES) clean
%.pdf: %.tex
@latexmk -pdf $<
clean:
@rm -f *.aux
@Meroje
Meroje / dabblet.css
Created March 17, 2012 14:51 — forked from anonymous/dabblet.css
Untitled
html {
margin: 0;
padding: 0;
border: 0;
}
body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,dialog,figure,footer,header,hgroup,nav,section {
margin: 0;
padding: 0;
@Meroje
Meroje / Table Flip
Created March 17, 2012 22:43
Table Flip
(╯°□°)╯︵ ┻━┻)
@Meroje
Meroje / dabblet.html
Created May 9, 2012 17:58 — forked from anonymous/dabblet.html
HTML9 Responsive Boilerstrap JS
<script src="//raw.github.com/impressivewebs/HTML9-Responsive-Boilerstrap-js/master/js/html9responsiveboilerstrap.js"></script>
@Meroje
Meroje / rss.rb
Created July 15, 2012 09:35
ruhoh.rb rss compiler
require 'nokogiri'
class Ruhoh
module Compiler
# This rss compiler is provided by David Long
# http://www.davejlong.com/
# https://github.com/davejlong
# Thanks David!
module Rss
# TODO: This renders the page content even though we already need to
# render the content to save to disk. This will be a problem when posts numbers expand. Merge this in later.
@Meroje
Meroje / unicode.txt
Created July 24, 2012 20:19
Some handpicked Unicode Art
1.)
║▌║││ █ ▌│║║
2.)
▄▀▄▀▄▀▄▀
3.)
@Meroje
Meroje / gist:3907972
Created October 17, 2012 20:33
Use webinspector from webkit nightly
cd /System/Library/Frameworks
sudo mv WebKit.framework WebKit.framework.old
sudo cp -a /Applications/WebKit.app/Contents/Frameworks/10.8/WebKit.framework .
sudo mkdir -p WebKit.framework/Versions/A/Frameworks
sudo cp -a /Applications/WebKit.app/Contents/Frameworks/10.8/WebCore.framework WebKit.framework/Versions/A/Frameworks
sudo mv JavaScriptCore.framework JavaScriptCore.framework.old
sudo cp -a /Applications/WebKit.app/Contents/Frameworks/10.8/JavaScriptCore.framework .
cd /System/Library/PrivateFrameworks
sudo mv WebKit2.framework WebKit2.framework.old
sudo cp -a /Applications/WebKit.app/Contents/Frameworks/10.8/WebKit2.framework .
aliceblue { color:#f0f8ff; }
antiquewhite { color:#faebd7; }
aqua { color:#00ffff; }
aquamarine { color:#7fffd4; }
azure { color:#f0ffff; }
beige { color:#f5f5dc; }
bisque { color:#ffe4c4; }
black { color:#000000; }
blanchedalmond { color:#ffebcd; }
blue { color:#0000ff; }
@Meroje
Meroje / premium.php
Created November 9, 2012 13:41
Vérifie les infos minecraft de l'utilisateur
<?php
session_start();
$logged = false;
$error = false;
if(isset($_POST['valider']))
{
$pseudo=(isset($_POST["pseudo"])) ? filter_var($_POST["pseudo"], FILTER_SANITIZE_STRING) : null;
$password=(isset($_POST["password"])) ? filter_var($_POST["password"], FILTER_SANITIZE_STRING) : null;
/*
|--------------------------------------------------------------------------
| Register
|--------------------------------------------------------------------------
*/
Route::get('register', function()
{
return View::make('register');
});