Skip to content

Instantly share code, notes, and snippets.

View supermoos's full-sized avatar

Lasse Moos supermoos

View GitHub Profile
@supermoos
supermoos / main.ts
Last active April 1, 2019 22:58
TypeScript jQuery document ready
///<reference path="./typings/jquery/jquery.d.ts"/>
'use strict';
class Main {
constructor() {
jQuery(document).ready(() => {
console.log('Hello from app/scripts/ts/Main.ts');
});
}
}
@supermoos
supermoos / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
/**
* Created by Lasse on 01/09/15.
*/
class CookieOptOut {
disableStr:string;
alreadyAccepted:string;
message:string;
optOutOfAnalytics:boolean;
constructor(message:string = 'Websitet anvender cookies til at huske dine indstillinger og statistik.', optOutOfAnalytics:boolean = false) {
this.message = message;