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
<snippet> | |
<content><![CDATA[ | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
]]></content> | |
<tabTrigger>script:jq</tabTrigger> | |
<scope>text.html</scope> | |
</snippet> |
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
$("#parentId").children().each(function(n, i) { | |
console.log(this.id); // to get the id of the element | |
console.log($(this).data('name')); // to access data elements - jQuery style | |
}); |
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
<bookmarks> | |
<group name="root"> | |
<group name="Romania"> | |
<bookmark name="Europa FM" url="http://www.europafm.ro/&files/live.m3u"/> | |
<bookmark name="Kiss FM" url="http://80.86.106.136/listen.pls"/> | |
<bookmark name="Magic FM" url="http://80.86.106.35:9000/listen.pls"/> | |
<bookmark name="ProFM" url="http://stream.profm.ro:8012/profm.mp3.m3u"/> | |
<bookmark name="ProFM Oldies" url="http://stream.profm.ro:8222/oldies.mp3.m3u"/> | |
<bookmark name="ProFM Classic" url="http://stream.profm.ro:8082/clasic.mp3.m3u"/> | |
<bookmark name="ProFM Jazz" url="http://stream.profm.ro:8212/jazz.mp3.m3u"/> |
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
sudo apt-add-repository ppa:relan/exfat | |
sudo apt-get update | |
sudo apt-get install fuse-exfat |
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); | |
} | |
}); | |
}); |
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
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
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
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
<script> | |
// ... | |
id_famille: { | |
title: 'Family', | |
list: true, | |
create: true, | |
edit: true, | |
options: { '1': 'Fam_1', '2': 'Fam_2', '3': 'Fam_3' } | |
}, | |
id_liste: { |