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
<?php | |
// found it here : | |
// http://stackoverflow.com/questions/13128854/php-datetime-class-change-first-day-of-the-week-to-monday | |
class EuroDateTime extends DateTime { | |
// Override "modify()" | |
public function modify($string) { | |
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 |
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
USE information_schema; | |
SELECT * FROM KEY_COLUMN_USAGE | |
WHERE | |
REFERENCED_TABLE_NAME = 'YOUR_TABLE_NAME' | |
AND | |
REFERENCED_COLUMN_NAME = 'YOUR_FIELD'; |
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
UPDATE TABLE1 | |
INNER JOIN TABLE2 ON (TABLE1.field = TABLE2.field) | |
SET TABLE1.fieldToChange = TABLE2.fieldNewValue |
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 | |
$connect = new PDO( | |
"mysql:host=$host;dbname=$db", | |
$user, | |
$pass, | |
array( | |
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8" | |
) | |
); |
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
$(document).ready(function() { | |
$("#chkdwn2").click(function() { | |
if ($(this).is(":checked")) { | |
$("#dropdown").prop("disabled", true); | |
} else { | |
$("#dropdown").prop("disabled", false); | |
} | |
}); | |
}); |
OlderNewer