javascript:
を先頭に付けてブックマークに登録- 140文字以上入力
- さっき登録したブックマークをクリック
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
function compareTo(calls: (() => number)[]): number { | |
for (let call of calls) { | |
let i = call(); | |
if (i!==0) { | |
return i; | |
} | |
} | |
return 0; | |
} |
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
//スロットを短く省略 | |
<rx><hr>.+?((Win!! [0-9]+ pts\.)?\(LA: [0-9\.]+\, [0-9\.]+\, [0-9\.]+\)) <br> <font color="blue">$1</font> msg | |
//2017年エイプリルフールの特殊文字を短く省略 | |
<rx><hr>Evaluation: (.*) <br><font color="red">$1</font> msg | |
//httpsから始まる2ch.netのリンクをhttpからに書き換え | |
<rx>https://(([\w/:%#\$&\?\(\)~\.=\+\-]+\.)2ch.net(/[\w/:%#\$&\?\(\)~\.=\+\-]+))? http://$1 msg | |
//itestのスレのリンクを通常のread.cgiのリンクに置き換え | |
<rx>https?://itest\.2ch\.net/([a-z0-9]+)/test/read\.cgi/([a-z0-9]+)/([0-9]+)/? http://$1.2ch.net/test/read.cgi/$2/$3/ msg |
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
body{ | |
font-size:var(--font-size,16px); | |
} |
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
document.addEventListener('click',e=>{ | |
e.target.parentNode.removeChild(e.target) | |
}, false); |
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
extern crate clap; | |
extern crate egg_mode; | |
extern crate futures; | |
extern crate tokio_core; | |
use clap::{App, Arg}; | |
use tokio_core::reactor::Core; | |
fn main() { | |
let app = App::new("time-tweet") |
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
const fs = require("fs"); | |
const mkdirp = require('mkdirp'); | |
const path = require('path'); | |
function isExistFile(file) { | |
try { | |
fs.statSync(file); | |
return true | |
} catch (err) { | |
if (err.code === 'ENOENT') return false |
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
main :: IO () | |
main = print $ bit2int "11111111" 0 | |
bit2int :: [Char] -> Int -> Int | |
bit2int [] x = x | |
bit2int ('0':ss) x = bit2int ss x | |
bit2int ('1':ss) x = bit2int ss x + 2 ^ length ss | |
bit2int _ _ = undefined |
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
#include <stdio.h> | |
int pow(int x, int p) | |
{ | |
int r = 1; | |
for (int i = 0; i < p; i++) | |
{ | |
r *= x; | |
} | |
return r; |
OlderNewer