This file contains hidden or 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
var Constructor = function() { | |
this.promise = myPromiseLib(); | |
this.onEventCallback = function(e) { | |
return this.promise.resolve(e.name); | |
}.bind(this); | |
return this; | |
} | |
var item = new Constructor(); | |
item.promise.then(function(result) { |
This file contains hidden or 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 foo(a,b,c,d,e) { | |
//... | |
} | |
// place a | |
foo(1,2,3,undefined,5); | |
// place b | |
foo(1,2,3,4); |
This file contains hidden or 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 search(needle, haystack, limit) { | |
//... | |
} | |
// Some modules later | |
// Doh' wrong | |
// search('3.1415926', 1, '.'); | |
// Damn it, which order was it again? | |
// search('3.1415926', '.' , 1); |
This file contains hidden or 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
var Image = React.Image; | |
var View = React.View; | |
var Component = React.Component; | |
var Text = React.Text; |
This file contains hidden or 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
@mixin safe-hover { | |
@at-root #{selector-append("html.no-touch", &, ":hover")} { | |
@content; | |
} | |
} |
This file contains hidden or 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
\documentclass[12pt, a4paper]{article} | |
\usepackage{url,graphicx,tabularx,array,geometry} | |
\usepackage[utf8]{inputenc} | |
\usepackage[ngerman]{babel} | |
\usepackage{fancyhdr} | |
\pagestyle{fancy} | |
\usepackage{amsmath} | |
\usepackage{amsfonts} | |
\usepackage{amssymb} |
This file contains hidden or 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 rows = document.querySelectorAll('tr'); | |
var row, note, module, ects, sumects = 0, summe = 0, divisor = 0; | |
var base = ["Inf-Math-A", "Inf-Prog", "Inf-DigiSys", "Inf-DSys", "Inf-EinfPP", "Inf-ADS", "Inf-OAR", "Inf-Math-B", "Inf-PP"]; | |
for(var i = 0, len = rows.length; i < len; i++){ | |
row = rows[i]; | |
module = row.querySelectorAll('.f1:nth-of-type(2)'); | |
note = row.querySelectorAll('.f1:nth-of-type(3)'); | |
ects = row.querySelectorAll('.f1:nth-of-type(4)'); | |
if (note.length && ects.length){ |
NewerOlder