Skip to content

Instantly share code, notes, and snippets.

scala> class Parent { def f = this }
defined class Parent
scala> class Child extends Parent { def newF = this }
defined class Child
scala> val c = new Child
c: Child = Child@5b966ac7
scala> c.newF
JSON.stringify(JSON.parse('{"int":1,"float1":1.1,"float2":2.0}'))
// '{"int":1,"float1":1.1,"float2":2}'
// ^ not float anymore :(
// even potentially useful npm packages are useless:
require("is-float")(1.0) // false
require("number-is-float")(1.0) // false
require('is-funcs/is-float')(1.0) // false
Number.isInteger(1.0) // true
_.-;:q=._
.' j=""^k;:\.
; .F ";`Y
,;.J_ ;'j
,-;"^7F : .F _________________
,-'-_<. ;gj. _.,---""'' .'
; _,._`\. : `T"5, ;
: `?8w7 `J ,-'" -^q. ` ;
# ------------------------------------------------------------------
# Desigining "trending topics in 24 hours sliding window" with Redis
# ------------------------------------------------------------------
redis-cli del tophashes:2010-12-07-08-00
redis-cli del tophashes:2010-12-07-09-00
redis-cli del tophashes:current
echo '=== 8:00 AM ==='
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>tag:mail.google.com,2008:filters:1380090532064,1381326805935,1381326888861,1381818475759,1382449850959,1382516076390,1382516101309</id>
<updated>2013-10-23T08:56:19Z</updated>
<author>
<name>Lech Jankovski</name>
<email>lech@vinted.com</email>
</author>
<entry>
<category term='filter'></category>
[help]
autocorrect = 1
[color]
ui = true
branch = true
diff = true
grep = true
interactive = true
pager = true
status = true
<?php
// WTF spotted in production code
class Page {
var $history_yes = true;
/* ... */
function history_yes($no = true) {
asdasdsad!