This file contains 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
abstract class CacheTable<TKey, TValue> | |
{ | |
public void Expire() | |
{ | |
m_table = null; | |
} | |
abstract public IDictionary<TKey, TValue> CreateTable(); | |
public TValue Lookup(TKey key) |
This file contains 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
.spam.tweet {background: #ddd;} | |
#form_preferences .debug {display: block;} | |
.prafbe.debug {display: inline; margin-right: 1ex;} | |
.prafbe.button {float: right;} | |
.tweet {clear: both;} | |
.tweet:hover {background-color: #ffe;} |
This file contains 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
Foo(1, | |
2, | |
3); | |
Foo( | |
1, | |
2, | |
3 | |
); |
This file contains 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
using System; | |
using System.Collections; | |
using System.Web.UI.WebControls; | |
using System.Web; | |
using System.Linq; | |
using System.Collections.Generic; |
This file contains 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
(use srfi-19) | |
(use util.match) | |
(define (read-file path) | |
(define (calculate-key object) | |
(match-let ([(_ _ id _ ...) object]) | |
id)) | |
(let1 d (make-hash-table 'eqv?) | |
(call-with-input-file | |
path |
This file contains 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
if(location.href.indexOf('file')==0){var a=document.title,b='setInterval(function(){var c=arguments.callee,a=new XMLHttpRequest;a.open("GET","'+prompt('Trigger file',location.href)+'",true);a.onload=function(){c.a&&a.responseText!=c.a&&window.doc.location.reload(true);c.a=a.responseText};a.send(null)},1E3);';document.write('<script type="text/javascript">'+b+'<\/script><frameset><frame name="doc" src="'+location.href+'"></frame></frameset>');document.close();document.title=a}else alert('This is not a local file.'); |
This file contains 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
find foo bar baz -path '*blahblah*' -type f >whitelist |
This file contains 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
" Assumption: This script is executed by gVim. | |
function! s:css_property_from(vim_attribute) | |
if a:vim_attribute ==# 'bold' || a:vim_attribute ==# 'standout' | |
return 'font-weight: bolder;' | |
elseif a:vim_attribute ==# 'underline' | |
return 'text-decoration: underline;' | |
elseif a:vim_attribute ==# 'undercurl' | |
return 'border-bottom: thin dashed;' |
This file contains 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
n = 10000 | |
html_from_tweet_s: 1.023 | |
html_from_tweet_x: 2.725 | |
html_from_tweet_q: 13.479 |
This file contains 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
# %s/#.*//|%join|s/\s\+/:/g | |
# i1 i2 | |
40 load 96 96 resize | |
dup 48 48 resize | |
# i1 i2 | i2/00 i2/01 i2/10 i2/11 | |
-1 get 0 0 48 48 extend | |
-1 get 0 48 48 0 extend | |
-1 get 48 0 0 48 extend |