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
<a href="..">lien de retour</a> |
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
# source: http://countergram.com/python-group-iterator-list-function | |
def group_iter(iterator, n=2, strict=False): | |
""" Transforms a sequence of values into a sequence of n-tuples. | |
e.g. [1, 2, 3, 4, 5] => [(1, 2), (3, 4), (5,)] (when n == 2) | |
If strict, then it will raise ValueError if there is a group of fewer | |
than n items at the end of the sequence. """ | |
accumulator = [] | |
for item in iterator: | |
accumulator.append(item) |
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
/* LessCSS Variables */ | |
@padding-left: 10px; | |
@padding-right: 15px; | |
@padding-top:48px; | |
@padding-bottom:11px; | |
@width: 328px; | |
@height: 113px; | |
/* the magic happens here */ |
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
/* ugly */ | |
a_trailing_commas_list = [ | |
"foo", | |
"bar", | |
"foo", | |
"bar" | |
]; | |
/* godly */ | |
a_leading_commas_list = [ |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//FR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Hôtel des commandants</title> | |
<link rel="stylesheet" href="css/main.css" media="screen" /> | |
<link rel="stylesheet" href="css/print.css" media="print" /> | |
<!--[if IE 8]> | |
<link rel="stylesheet" href="css/ie8.css" media="screen" /> |
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
<div class="more"> | |
<p><p/> <!-- provenant de ckeditor --> | |
</div> |
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
class foo {}; | |
$obj = new foo(); | |
$property_name = 'a_unstoppable_property'; | |
$obj->$property_name = "bar"; | |
echo $obj->a_unstoppable_property; |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<script type="text/javascript"> | |
/* Modifying the loading message before jQuery Mobile kicks in */ | |
$(document).bind("mobileinit", function(){ | |
$.extend($.mobile, { | |
loadingMessage: "Chargement en cours..." | |
}); | |
}); |
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
#foo { | |
.bar {color:#000;} | |
.ow { color:red; | |
.fou {color:#fff;} | |
} | |
} |
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
productListDataTable.Rows.Add(RelevanceMoy, product.ID, product.ProductName, productType.Type, product.EffectiveArea, (product.Pmax != null) ? (new Measure(product.Pmax.ToString(), "W")).ToString() : "-1", (product.Emax__1064_nm_ != null) ? (new Measure(product.Emax__1064_nm_.ToString(), "J")).ToString() : "-1", (product.Emax__1064_nm_ != null) ? (new Measure(product.Emax__1064_nm_.ToString(), "J")).ToString() : "-1", ReturnConvection((bool)product.Conv__S__H__L_, (bool)product.Fan__F_, (bool)product.Water__W_), product.Head___Display, product.Head___PC, product.All_in_one, product.Conv__S__H__L_, product.Fan__F_, product.Water__W_, product.E_Pulse, product.Avg_Power, product.E_Pulse_SS, (product.UrlProduitHtml == null) ? "#" : product.UrlProduitHtml.ToString(), (product.UrlProduitPdf == null) ? "#" : product.UrlProduitPdf.ToString(), product.TypeText, product.Size__mm_, product.Shape); |
OlderNewer