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
try: | |
from subprocess import DEVNULL | |
compat_subprocess_get_DEVNULL = lambda: DEVNULL | |
except ImportError: | |
compat_subprocess_get_DEVNULL = lambda: open(os.path.devnull, 'w') |
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 type="text/javascript" src="//www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load('maps', '3', {'other_params': 'sensor=true'}); | |
(function($) { 'use strict'; | |
$(document).ready(function() { | |
var latlng = new google.maps.LatLng(33.59135, 130.408334); | |
var opts = { | |
center: latlng, | |
zoom: 15, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, |
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
(function($) { | |
$(document).ready(function() { | |
// your code | |
}); | |
})(jQuery); |
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
// works with FuelPHP 1.4 | |
return array( | |
'default' => array( | |
'type' => 'pdo', | |
'connection' => array( | |
'dsn' => 'sqlite:/PATH/TO/DATABASE_FILE', | |
'username' => '', | |
'password' => '', | |
), | |
'charset' => NULL, /* http://stackoverflow.com/questions/263056/how-to-change-character-encoding-of-a-pdo-sqlite-connection-in-php */ |