I hereby claim:
- I am AveVlad on github.
- I am vld (https://keybase.io/vld) on keybase.
- I have a public key whose fingerprint is 4E31 484B 8B71 105E 9294 95B1 643D CA5E D5FF 11BD
To claim this, I am signing this object:
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
int main() | |
{ | |
freopen("apbtest.in", "r", stdin); | |
freopen("apbtest.out", "w", stdout); |
#include <iostream> | |
#include <string> | |
unsigned getDecimal(char val) | |
{ | |
switch (val) { | |
case 'I': return 1; | |
case 'V': return 5; | |
case 'X': return 10; | |
case 'L': return 50; |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
#ifdef _DEBUG | |
freopen("input.txt", "r",stdin); | |
freopen("output.txt", "w",stdout); | |
#endif |
var dbg = false; | |
var obj = { | |
I: 1, | |
V: 5, | |
X: 10, | |
L: 50, | |
C: 100, | |
D: 500, | |
M: 1000 | |
}; |
import reactivemongo.bson.{BSONHandler, BSONDateTime, Macros} | |
import org.joda.time.format.ISODateTimeFormat | |
import org.joda.time.{DateTime, DateTimeZone} | |
package object myApp { | |
DateTimeZone.setDefault(DateTimeZone.UTC) | |
implicit object BSONDateTimeHandler extends BSONHandler[BSONDateTime, DateTime] { | |
val fmt = ISODateTimeFormat.dateTime() | |
def read(time: BSONDateTime) = new DateTime(time.value) |
private def query( ): Future[ List[ JsObject ] ] = { | |
val group: Group = Group( BSONString( "$order.year" ) )( ("total", SumField( "value" )) ) | |
val pipeline: Seq[ PipelineOperator ] = Seq( group ) | |
val command: Future[ Stream[ BSONDocument ] ] = db.command( Aggregate( "opportunities", pipeline ) ) | |
command map { | |
c => | |
c.toList map { | |
d => | |
toJSON( d ).asInstanceOf[ JsObject ] | |
} |
[].slice.call(document.querySelectorAll('[class]')).map(function (node) { | |
return node.className | |
}).sort(function (a, b) { | |
return b.length - a.length | |
}).slice(0, 50).map(function (elem) { | |
console.log(elem); | |
return elem; | |
}); |
I hereby claim:
To claim this, I am signing this object:
debug_google_events(); |
var $window = $(window); | |
$window.on('scroll', function() { | |
var scrollTop = $window.scrollTop(); | |
console.log(scrollTop); | |
}); |