I hereby claim:
- I am cem2ran on github.
- I am cem2ran (https://keybase.io/cem2ran) on keybase.
- I have a public key whose fingerprint is 9D5C F0AF 85B1 F58D 5D3F 5B34 0B5E 30A7 DA01 F730
To claim this, I am signing this object:
/* | |
* Given a Date, Month and Year | |
* Return DAY_OF_WEEK. | |
* | |
* @param {Number} [D] Date in the following format: d | |
* @param {Number} [M] Month in the following format: m | |
* @param {Number} [Y] Year in the following format: yyyy | |
* @param {Boolean} [J=false] Defaults to the Gregorian calendar, when J is omitted or set to false. When set to true, the Day Of Week in the Julian calendar is returned. | |
* @return {String} The Day of Week, UPPERCASED. | |
*/ |
var lines = document.getElementsByClassName('DataSelect'); | |
var gradeCalc = { | |
grades: [], | |
average: -1, | |
weightedSum: 0, | |
ectsSum: 0 | |
}; | |
for(var i = 0; i < lines.length; i++){ | |
var children = lines[i].children; | |
var grade = {}; |
I hereby claim:
To claim this, I am signing this object:
const combine = (...arrays) | |
=> [].concat(...arrays); | |
const compact = arr | |
=> arr.filter(el => el); | |
const contains = (() => Array.prototype.includes | |
? (arr, value) => arr.includes(value) | |
: (arr, value) => arr.some(el => el === value) | |
)(); |
const qsort = ([first, ...rest]) => | |
first === undefined | |
? [] | |
: [ | |
...qsort([for (x of rest) if (x < first) x]), | |
first, | |
...qsort([for (x of rest) if (x >= first) x]) | |
] |
function* fibonacci() { | |
let a = 0, b = 1; | |
while(a < Infinity) { | |
yield a; | |
[a, b] = [b, a + b]; | |
} | |
} | |
for(let value of fibonacci()) { |
const range = ({start=0, end=1})=> [...Array(end - start + 1)].map((_, i) => start + i); | |
const fizzbuzz = (num=100) => [for (x of range({end: num})) (!(x%3)?"Fizz":'')+(!(x%5)?'Buzz':'')] | |
console.log(fizzbuzz(30)) |
package com.firebase.client; | |
import com.firebase.client.core.view.Event; | |
import rx.Observable; | |
import rx.Subscriber; | |
import rx.functions.Action0; | |
import rx.functions.Func1; | |
import rx.subscriptions.Subscriptions; |