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
<!-- | |
document.json file content = | |
[ | |
{ | |
"text" : "Video Button", | |
"type" : "video", | |
"link" : "http://google.com", | |
"script" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vestibulum dictum tortor, a tempor justo ultrices vel. Sed posuere mollis augue eget mattis. Nam sit amet elit eu tortor placerat posuere. Proin velit nunc, consectetur eu pharetra eu, posuere ut leo. Aliquam condimentum rutrum libero, non bibendum nisl condimentum eget. Proin et nulla at nibh pellentesque adipiscing. Maecenas dignissim pellentesque lorem, eu feugiat metus pellentesque nec. Sed pellentesque mi vitae tellus fermentum facilisis ac ut nunc. Nulla elementum condimentum quam, vel dignissim metus semper eget. Vestibulum non massa ipsum, ut pellentesque metus. Aenean non libero libero. Integer lobortis, mi vel cursus porta, lorem sapien porta sapien, sit amet dapibus augue enim a ligula. Ut vitae sem quam." | |
}, |
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 | |
// define the directory location | |
$dir = 'directoryname'; | |
// open the directory | |
if ($handle = opendir($dir)) { | |
while (false !== ($entry = readdir($handle))) { | |
// ignore invisible files | |
if ($entry != '.' && $entry != '..' && $entry != '.DS_Store') { | |
// build a list of the contents of the directory |
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 alertFallback = true; | |
if (typeof console === "undefined" || typeof console.log === "undefined") { | |
console = {}; | |
if (alertFallback) { | |
console.log = function(msg) { | |
alert(msg); | |
}; | |
} | |
else { | |
console.log = function() {}; |
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
// Settings | |
// Option 1: Chrome Dev Tools | |
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Chrome (SL).tmTheme", |
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 | |
require "includes/class.phpmailer.php"; // https://github.com/Synchro/PHPMailer | |
if (isset($_POST["submit"])) { | |
$mail = new PHPMailer; | |
$mail->From = "[email protected]"; // Email address the message will be sent from | |
$mail->FromName = "My Website Contact Form"; // Name associated with email address being sent from | |
$mail->AddAddress("[email protected]"); // Email address that will receive the message | |
$mail->WordWrap = 50; |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
*.sass-cache |
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
<snippet> | |
<content><![CDATA[ | |
console.log(${1:log}); | |
]]></content> | |
<tabTrigger>log</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> |
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
// Add 'alert' style fallback for console.log commands (IE8) | |
var alertFallback = true; | |
if (typeof console === "undefined" || typeof console.log === "undefined") { | |
console = {}; | |
if (alertFallback) { | |
console.log = function(msg) { | |
alert(msg); | |
}; | |
} | |
else |
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
r = new webkitSpeechRecognition; | |
r.continuous = true; | |
r.interimResults = true; | |
r.onresult = function(ev) { | |
console.log(ev.results[ev.results.length-1][0].transcript); | |
}; | |
r.start() |
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
# htaccess starter template | |
# v20121004 htaccessbook.com/changelog | |
# Enable mod_rewrite | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
</IfModule> | |
# Enable symbolic links | |
Options +FollowSymLinks |