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
<head> | |
<title>Your Trail</title> | |
</head> | |
<body> | |
<h1>Your Trail</h1> | |
<?php | |
echo "<br />"; | |
echo '<h1>Directions:</h1>'; | |
echo '<h2>Start: '.$origin.'</h2>'; | |
foreach ($directions->route as $route) |
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
* @property CI_DB_active_record $db | |
* @property CI_DB_forge $dbforge | |
* @property CI_Benchmark $benchmark | |
* @property CI_Calendar $calendar | |
* @property CI_Cart $cart | |
* @property CI_Config $config | |
* @property CI_Controller $controller | |
* @property CI_Email $email | |
* @property CI_Encrypt $encrypt | |
* @property CI_Exceptions $exceptions |
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
<link rel="alternate" href="https://tensewatch.com" hreflang="en-us" /> | |
<link rel="alternate" href="https://tensewatch.ca" hreflang="en-ca" /> | |
<link rel="alternate" href="https://www.tensewatch.de" hreflang="de-de" /> | |
<link rel="alternate" href="https://tensewatch.com" hreflang="en" /> |
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
# FIRST, REPLACE UTF-8 characters. | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28098, "'"); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28099, "'"); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE2809C, '"'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE2809D, '"'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28093, '-'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28094, '--'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE280A6, '...'); | |
# NEXT, REPLACE their Windows-1252 equivalents. | |
UPDATE `t` SET `c` = REPLACE(`c`, CHAR(145), "'"); |
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
# SnipMate is required to use snippets | |
# Download SnipMate: http://www.vim.org/scripts/script.php?script_id=2540 | |
# Put this file in ~/.vim/snippets/ then restart vim | |
# This snippet file includes many useful snippets for CodeIgniter. Please feel free to fork and contribute! | |
snippet php | |
<?php | |
${1} | |
?> | |
snippet ec | |
echo "${1:string}"${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
document.addEventListener('DOMContentLoaded', init, false) | |
var videoId = document.getElementById('video') | |
//var videoTitle = videoId.getAttribute('data-description') | |
var videoTitle = '宝宝身边有怪物' | |
function init () { | |
videoId.addEventListener('ended', videoEnd, false) | |
videoId.addEventListener('timeupdate', videoTimeUpdate, false) | |
videoId.addEventListener('play', videoPlay, 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
package controllers | |
import play.api.Play.current | |
import play.api.libs.oauth.{RequestToken, ServiceInfo, ConsumerKey, OAuth} | |
import play.api.mvc.{RequestHeader, Action, Controller} | |
import play.api.Play | |
object Twitter extends Controller { | |
val cfg = Play.application.configuration |
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
$('#school .typeahead').typeahead({ | |
name: 'schools', | |
prefetch: { | |
url: '/schoolsforstate/'+ state | |
filter: (data)-> | |
$.each data, ()-> | |
datumAdd = { | |
value: this.school_name | |
id: this.id | |
tokens:[ |
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
echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay |
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
db.default.logStatements=true | |
//Add that to the application.conf, and comment out the Logger lines (~50 - ~60). Restart the play app, and you are now logging with gas! |
NewerOlder