This userscript is an improvment proposition for http://userscripts.org/scripts/show/139503
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# UTILS | |
usage() { | |
echo "" | |
echo "SUPER FLATTEN" | |
echo "-------------" | |
echo "This script clean your eZ Publish database by removing unused entries" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show_svn() { | |
if [ -d "$1.svn" ] | |
then | |
echo "$1.svn" | |
fi | |
for file in `ls -p $1 2>/dev/null | grep "/$"` | |
do· | |
show_svn "$1$file" | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function subval_sort( $array, $subkey ) { | |
$compare = function( $a, $b ) use ( $subkey ) { | |
return strcasecmp( $a[ $subkey ], $b[ $subkey ] ); | |
} | |
uasort( $array, $compare ); | |
return $array; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FluidBonjourMadame | |
// @description Add Keyboard controls to BonjourMadame | |
// @id me.zilliox.FluidBonjourMadame | |
// @homepageURL http://userscripts.org/scripts/show/138650 | |
// @supportURL http://userscripts.org/scripts/discuss/138650 | |
// @updateURL http://userscripts.org/scripts/source/138650.meta.js | |
// @author tzi | |
// @namespace http://zilliox.me | |
// @include http://www.bonjourmadame.fr/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var is_old_view = false; | |
var current_css_href = "./themes/SilverScreen2/css/common.css"; | |
var old_css_href = "./themes/SilverScreen2/css/common_old.css"; | |
var link = document.querySelector( '[href="' + current_css_href + '"]' ); | |
if ( link ) { | |
var popin = new bm_popin( 3068137 ); | |
var switch_view = function() { | |
is_old_view = ! is_old_view ; | |
if ( is_old_view ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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' ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
// TODO | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.test { | |
height: 139px; | |
width: 96px | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>How to detect the Data-Uri support in javascript</title> | |
<link href="no-data-uri.css" media="screen" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<script type="text/javascript" src="no-data-uri.js"></script> | |
<body> |