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
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); |
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.body.contentEditable = 'false'; | |
document.designMode = 'off'; | |
var content = document.documentElement.outerHTML; | |
document.body.innerHTML = "<br><br><br><br><center><button style='width: 50%; font-size: 1.7em; background-color: #3f9fe0; color: #fff' onclick='generate()'>Your HTML</button></center>"; | |
function generate() { | |
document.location = "data:text/json," + escape(content); | |
} |
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.body.contentEditable = 'true'; | |
document.designMode = 'on'; | |
void 0; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Box Shadow</title> | |
<style> | |
.box { | |
height: 150px; | |
width: 300px; | |
margin: 20px; |
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 generateHelper(keyword, property, max) { | |
for (var i = 5; i <= 50; i+=5) { | |
console.log(keyword + i + " {" + property + ": " + i + "px; }"); | |
console.log(keyword + "-" + i + " {" + property + ": -" + i + "px; }"); | |
} | |
} |
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() { | |
var api = "http://fuas.sonymobile.com/fuas/services/updates?clientName=PCC&clientVersion=3.0&lang=en-US&model=<YOUR_MODEL>&devId=<YOUR_IMEI>&tac_mc=<FIRST_8_D IGITS_OF_IMEI>&swId=1272-6084&swVer=14.1.G.1.534&fsVariant=GLOBAL-HSPA&cdfId=1277-2364&cdfVer=R5A&buildVariant=USER&clientCertType=live&updateFormat=delta,image&channel=cable"; | |
var model = prompt("Enter your device model (C6902 or C6903)"); | |
var imei = prompt("Enter your device's IMEI number"); | |
var url = api.replace("<YOUR_MODEL>", model) | |
.replace("<YOUR_IMEI>", imei) | |
.replace("<FIRST_8_D IGITS_OF_IMEI>", imei.substring(0, 8)); | |
window.location = url; | |
}); |
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
public static void enableAppCache(WebView webView) { | |
webView.getSettings().setDomStorageEnabled(true); | |
webView.getSettings().setAppCacheMaxSize(1024*1024*8); // 8mb | |
// Apparemment il y a un bug puisque le path ci-dessous est sensé être le path par défaut | |
// et pourtant, bizarrement, l'AppCache ne fonctionnait pas sans le définir manuellement | |
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache"); | |
webView.getSettings().setAllowFileAccess(true); | |
webView.getSettings().setAppCacheEnabled(true); | |
webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT); |
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
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
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 npm install -g yo grunt-cli bowser generator-angular generator-express generator-heroku generator-chrome-extension generator-cordova |
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 fs.inotify.max_user_watches=1048576 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |