This file contains hidden or 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 | |
/** | |
* Create a DateTime object with the number of seconds | |
* Since the date starts at year 0, the returned time will be in year/month/day/hour/minute/second | |
* | |
* @param Integer $iTime : Timestamp in seconds | |
* @param String $sFormat (optional) : The date format to return | |
* | |
* @return String : The well formatted date. | |
*/ |
This file contains hidden or 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
var oCouchLis = $('#section-watchlist>li'), oSeriesLis = $('#main>div .list-episodes>ul>li'); | |
function processCouch() { | |
var $this = $(this), | |
title = $this.find ('>p>a:first-of-type').text(), | |
cleanTitle = title.replace (/( )/g, '_').replace(/:/g, ''), | |
code = $this.find ('>p>span.episode-code').text().substring(1), | |
season = code.substring(0, code.indexOf("E")).replace(/^[0]+/g,""), | |
episode = code.substring(code.indexOf("E") + 1).replace(/^[0]+/g,""), |
This file contains hidden or 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é uniquement sur Chrome et Firefox **/ | |
jQuery(function ($) { | |
var isOpened = false, | |
imageQuantity = $('.ProdThumbnails>dl').length; | |
$('.ProdThumbnails') | |
.css({ | |
'position': 'absolute', | |
'height': 145, | |
'width': 280, |
This file contains hidden or 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 | |
# | |
# -------------------------------------------------------------------- | |
# This is a free shell script under GNU GPL version 3.0 or above | |
# Copyright (C) 2005 ReFlectiv project. | |
# Feedback/comment/suggestions : http://www.reflectiv.net/ | |
# ------------------------------------------------------------------------- | |
# | |
# This script automatically set up a new *Debian* server (IMPORTANT : Debian!), by doing these actions : | |
# |
This file contains hidden or 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 | |
# | |
# -------------------------------------------------------------------- | |
# This is a free shell script under GNU GPL version 3.0 or above | |
# Copyright (C) 2005 ReFlectiv project. | |
# Feedback/comment/suggestions : http://www.reflectiv.net/ | |
# ------------------------------------------------------------------------- | |
# | |
# This scripts aims to create everything needed to have an environment | |
# for any Apache websites : Folder, Logs, VirtualHost and FTP Access |
This file contains hidden or 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 | |
# | |
# -------------------------------------------------------------------- | |
# This is a free shell script under GNU GPL version 3.0 or above | |
# Copyright (C) 2005 ReFlectiv project. | |
# Feedback/comment/suggestions : http://www.reflectiv.net/ | |
# ------------------------------------------------------------------------- | |
# | |
# This script automatically backups the database based on each folder | |
# on the given path and the directive for which db to save |
This file contains hidden or 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
// Inject css rules in Cryptocat conversation for a full width display | |
// Also add a "body click to text focus" action (using jQuery, already embedded in Cryptocat) | |
// Note: Only tested on IE 6 ! (Ok, I'm kidding, only Chrome) | |
// Author : Cyril N. | |
(function (){ | |
var newcss = "#userInput>#userInputText {width : 84%;} body>div#bubble {width : auto; margin : 0 auto; position : absolute; top : 0; bottom : 0; left : 0; right : 0; height : auto; border-radius: 0}"; | |
newcss += "div#conversationWindow .line1, div#conversationWindow .line2, div#conversationWindow .line3, div#conversationWindow .line4 {max-width : 96%;}"; | |
newcss += "div#buddyWrapper {width : 14%;}"; |
This file contains hidden or 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 | |
# | |
# -------------------------------------------------------------------- | |
# This is a free shell script under GNU GPL version 3.0 or above | |
# Copyright (C) 2005 ReFlectiv project. | |
# Feedback/comment/suggestions : http://www.reflectiv.net/ | |
# ------------------------------------------------------------------------- | |
# | |
# This scripts do the start/stop/restart of a PlayFramework project with GIT Support | |
# |
This file contains hidden or 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
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.auth.UsernamePasswordCredentials; | |
import org.apache.http.client.ClientProtocolException; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.entity.UrlEncodedFormEntity; |
This file contains hidden or 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
""" | |
The Pool module provides some classes for managing a fixed-size thread-safe pool of functionally identical objects. One use for this is database connections, which tend to take awhile to create. | |
Pool | |
class that manages the pool of objects. | |
Constructor | |
class used to create new instances of items in the Pool. | |
For more details, use pydoc or read the docstrings in the code. |
OlderNewer