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 import_csv_to_sqlite(&$pdo, $csv_path, $options = array()) | |
{ | |
extract($options); | |
if (($csv_handle = fopen($csv_path, "r")) === FALSE) | |
throw new Exception('Cannot open CSV file'); | |
if(!$delimiter) | |
$delimiter = ','; |
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
@media print | |
{ | |
div.className { | |
page-break-inside: avoid; | |
} | |
} |
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
Add this in .screenrc : | |
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c" |
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
[xdebug] | |
zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" | |
xdebug.profiler_enable = 1 | |
xdebug.profiler_output_dir = "/tmp" |
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
rsync --progress /copy/from /copy/to |
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
[http] | |
proxy = http://PROXY_ADDRESS:PROXY_PORT |
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 | |
// let's say we added in our project the "eatCandy" method | |
// that displays something onsilly the screen | |
// and now we want to call this method in our template | |
// NOTE : eatCandyNow will be the name of the twig function we'll create | |
$function = new Twig_SimpleFunction('eatCandyNow', function () { | |
return eatCandy(); // our php function | |
}); | |
$twig->addFunction($function); |
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
#jtable-create-form, #jtable-edit-form { | |
display: block; | |
width: 550px; | |
-moz-column-gap:40px; | |
-webkit-column-gap:40px; | |
column-gap:40px; | |
-moz-column-count:2; | |
-webkit-column-count:2; | |
column-count:2; | |
} |
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
<script> | |
// ... | |
id_famille: { | |
title: 'Family', | |
list: true, | |
create: true, | |
edit: true, | |
options: { '1': 'Fam_1', '2': 'Fam_2', '3': 'Fam_3' } | |
}, | |
id_liste: { |
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
ALTER TABLE tablename AUTO_INCREMENT = 1 |
OlderNewer