Skip to content

Instantly share code, notes, and snippets.

View tzi's full-sized avatar
👨‍🎓
enseigner les CSS

Thomas ZILLIOX tzi

👨‍🎓
enseigner les CSS
View GitHub Profile
@tzi
tzi / alphabounceenhancer.user.js
Created September 8, 2011 17:25
A #javascript #userscript : Enhance the #Alphabounce Interface
// ==UserScript==
// @name AlphabounceEnhancer
// @namespace http://zilliox.me
// @description Improve the Alphabounce interface by adding the direction of the missions, the planets and the asteroids. This script also add a bloc-note.
// @include *.alphabounce.com/
// @include *.alphabounce.com/?*
// ==/UserScript==
(function () {
var $;
@tzi
tzi / install.sh
Last active October 30, 2024 21:46
WeasyPrint install on a clean Ubuntu
sudo apt-get install libxml2-dev libxslt-dev libffi-dev libcairo2-dev libpango1.0-dev python-dev python-pip
sudo pip install WeasyPrint
@tzi
tzi / README.md
Created July 10, 2020 11:39
Complete list of GitHub emojis

Complete list of GitHub emojis

You can find the name / alais of every emojis in this gist

@tzi
tzi / important.css
Last active March 21, 2023 08:54
How to set an !important css property in javascript
.test {
height: 139px;
width: 96px
}
@tzi
tzi / EmbedGithubFile.user.js
Created February 22, 2012 16:21
A #javascript #userscript : Add an embed link on every #github repository file
// ==UserScript==
// @name EmbedGithubFile
// @description Add an embed action on github repository. Like gist
// @id me.zilliox.EmbedGithubFile
// @homepageURL http://userscripts.org/scripts/show/121119
// @supportURL http://userscripts.org/scripts/discuss/121119
// @updateURL http://userscripts.org/scripts/source/121119.meta.js
// @version 2012.02.27
// @author tzilliox
// @namespace http://zilliox.me
@tzi
tzi / debounce.js
Last active November 21, 2022 02:30
function debounce(func, wait) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
func.apply(context, args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
@tzi
tzi / convert.js
Created June 29, 2012 13:41
A #javascript unit converter
(function(){
var current_question = 1;
var questions = document.getElementById( 'questions' );
var question1 = document.getElementById( 'question1' );
var question2 = document.getElementById( 'question2' );
var answer = document.getElementById( 'answer' );
document.converter.onsubmit = function(){
if ( current_question == 1 ) {
var origin = document.converter.value.value;
if ( document.converter.unit.value == 'm' ) {
@tzi
tzi / readme.md
Created January 28, 2016 16:14
Responsive photo grid with rowspan

Responsive photo grid with rowspan

Demo:

@tzi
tzi / index.html
Created January 13, 2012 16:48
PrintPreview
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>PrintPreview - A bookmarklet to preview the print version of a web page</title>
<meta name="viewport" content="initial-scale=1.0">
<link rel="stylesheet" href="style.css" >
</head>
<body>
<h1>PrintPreview</h1>
@tzi
tzi / Readme.md
Last active April 16, 2019 12:35
Check host availability from an HTML page

Check domains

This script check domains availability of links from an HTML file 🎉

# Usage
$ ./check-domains.sh ./bookmarks.html
aslibrary.org is available