Skip to content

Instantly share code, notes, and snippets.

@yannmadeleine
yannmadeleine / gist:4028544
Created November 6, 2012 23:56
truncated
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
</head>
<body>
<form action="">
<input type="password" name="" id="pwd" maxlength="5" />
<input type="submit" value="Submit">
@yannmadeleine
yannmadeleine / gist:1082570
Created July 14, 2011 14:34
calculate cost and time for a travel in car via highway in france
from selenium import webdriver
from selenium import selenium
from webdriver import DesiredCapabilities
import re
to_cities = ['toulouse', 'bordeaux', 'marseille']
from_cities = [
'paris',
'toulouse',
'bordeaux',
@yannmadeleine
yannmadeleine / _functions.sass
Created June 6, 2011 21:06
basic functions for sass
//handling vendor extension
//shorthand for box with rounded top corners
@mixin top-border-radius ($radius: 5px) {
@include border-radius('#{$radius} #{$radius} 0 0');
}
//shorthand for the border-radius property (http://www.w3.org/TR/css3-background/#the-border-radius)
//also call the PIE IE fallback
//accept the same params listed in the w3c specs
//use example
@yannmadeleine
yannmadeleine / functions.less
Created June 6, 2011 21:02
basic functions for less
//note that in less php all ,(comma) in functions and call must be replaced by ;(semi-colon) see : http://leafo.net/lessphp/docs/#args
//handling vendor extension
.border-radius(@radius_tl: 5px, @radius_tr: 5px, @radius_br: 5px, @radius_bl: 5px) {
border-radius: @arguments;
-webkit-border-radius: @arguments;
-moz-border-radius: @arguments;
}
.top-border-radius (@radius: 5px) {
border-radius: @radius @radius 0 0;