Skip to content

Instantly share code, notes, and snippets.

View ajagelund's full-sized avatar
💪

Andreas Jagelund ajagelund

💪
View GitHub Profile
@ajagelund
ajagelund / boxstarter-script.txt
Last active June 2, 2020 14:43
setup-win-dev-box
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst IIS-WebServerRole -source windowsfeatures
cinst microsoft-windows-terminal -y
@ajagelund
ajagelund / cookie.js
Created March 20, 2015 09:48
MDN JavaScript cookie framework
@ajagelund
ajagelund / polyfill_storage.js
Last active August 29, 2015 14:17
Polyfill fill for localStorage and sessionStorage
(function(){
try {
window.__ls = {};
window.localStorage.setItem = function (id, val) { return window.__ls[id] = String(val); };
window.localStorage.getItem = function (id) { return window.__ls.hasOwnProperty(id) ? window.__ls[id] : undefined; };
window.localStorage.removeItem = function (id) { return delete window.__ls[id]; };
window.localStorage.clear = function () { return window.__ls = {} };
console.log('localStorage lap of luxury!');
} catch (e) {
console.log('Reset localStorage failed!');
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">