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
asdasdsad! |
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
<?php | |
// WTF spotted in production code | |
class Page { | |
var $history_yes = true; | |
/* ... */ | |
function history_yes($no = true) { |
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
[help] | |
autocorrect = 1 | |
[color] | |
ui = true | |
branch = true | |
diff = true | |
grep = true | |
interactive = true | |
pager = true | |
status = true |
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
<?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>[email protected]</email> | |
</author> | |
<entry> | |
<category term='filter'></category> |
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
# ------------------------------------------------------------------ | |
# 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 ===' |
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
_.-;:q=._ | |
.' j=""^k;:\. | |
; .F ";`Y | |
,;.J_ ;'j | |
,-;"^7F : .F _________________ | |
,-'-_<. ;gj. _.,---""'' .' | |
; _,._`\. : `T"5, ; | |
: `?8w7 `J ,-'" -^q. ` ; |
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
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 |
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
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 |