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
Partial error code list | |
from https://apicommunity.wunderground.com/weatherapi/topics/error-code-list | |
missingkey : you must supply a key | |
keynotfound : this key does not exist | |
invalidkey : this key is not valid due to exceeding rate plan | |
invalidfeature : a requested feature is not valid due to exceeding rate plan | |
querynotfound : No cities match your search query | |
plannerwithhistory : Cannot load Travel Planner and History in the same request | |
invalidquery : you must supply a location query |
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
dbus-uuidgen > /var/lib/dbus/machine-id |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
ftpush: { | |
all: { | |
auth: { | |
host: 'ftp.felolabs.com', | |
port: 21, | |
authKey: 'key1' | |
}, |
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 isTouch() { | |
try{ document.createEvent("TouchEvent"); return true; } | |
catch(e){ return 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
function is_touch_device() { | |
return 'ontouchstart' in window // works on most browsers | |
|| 'onmsgesturechange' in window; // works on ie10 | |
}; |
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
=SE(NON(VAL.VUOTO(D2));CONCATENA(RIPETI("0";5-LUNGHEZZA(D2));D2);"") |
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
# hints: https://ellislab.com/codeigniter/user-guide/general/urls.html | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# installed on subfolder? uncomment the following | |
# RewriteBase /ci/ | |
RewriteBase / | |
# no direct access for /system folder | |
RewriteCond %{REQUEST_URI} ^system.* | |
RewriteRule ^(.*)$ /index.php?/$1 [L] | |
# no direct access for /application folder |
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
=SE(CONTA.SE($L$2:$M$9999;L2)>1;"DUP";"") |
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
schtasks /create /tn "Namespace\Scheduled Task" /tr "php -f C:\xampp\htdocs\index.php" /sc weekly /d MON /st 20:15 |
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
while (notDone()) { | |
if (isPathLeft()) { | |
turnLeft(); | |
if (isPathForward()) { | |
moveForward(); | |
} else { | |
turnLeft(); | |
turnLeft(); | |
} | |
} else { |
OlderNewer