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
| ; https://qiita.com/mattn/items/ae764601862b0073071e | |
| (use gauche.sequence)(fold-with-index(lambda(n a c)(string-append c a(if(< 1 n)"ー" "")))""(shuffle '("ボ" "ジョ" "レ" "ヌ" "ボ"))) |
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
| from itertools import permutations | |
| f = lambda xs: g(xs[0], xs[1] * 10 + xs[2], xs[3], xs[4] * 10 + xs[5], xs[6], xs[7] * 10 + xs[8]) | |
| g = lambda a, b, c, d, e, f: a * d * f + b * c * f + b * d * e == b * d * f | |
| h = lambda xs: tuple(sorted([(xs[0], xs[1] * xs[2]), (xs[3], xs[4] * xs[5]), (xs[6], xs[7] * xs[8])])) | |
| print(set(map(h, filter(lambda xs: f(xs), permutations(range(1, 10)))))) |
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
| *[aria-label="Footer"] { | |
| display: none; | |
| } | |
| header[role="banner"] { | |
| display: none; | |
| } | |
| *[data-testid="sidebarColumn"] { | |
| display: none; | |
| } | |
| body, *[data-testid="primaryColumn"] { |
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
| { | |
| "title": "Terminal", | |
| "rules": [ | |
| { | |
| "description": "make editing easier on terminal applications", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f", |
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
| #! /bin/bash | |
| echo '吉高由里子かわいい' |
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
| .PHONY: yocifico great again | |
| yocifico: | |
| @echo 人生 | |
| great: | |
| @echo どうでも | |
| again: | |
| @echo 飯田橋 |
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
| // original source | |
| (function(host, x) { | |
| if (host === 'ingressmm.com') { | |
| x = Map.getCenter(); | |
| location.href = ['https://www.ingress.com/intel?ll=', x.lat(), ',', x.lng(), '&z=', Map.getZoom()].join(''); | |
| } | |
| else if (host === 'www.ingress.com') { | |
| x = document.cookie.split(';').reduce(function(ps, c) { | |
| if (c.match(/\s*\bingress.intelmap.(\w+)=([-\+\d\.]+)\b\s*/)) { | |
| ps[RegExp.$1] = RegExp.$2; |
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
| import Data.Bits | |
| import System.Random | |
| zundoko :: Int -> (Int, String) | |
| zundoko n = (n, ["ズン", "ドコ"] !! n) | |
| zundokos :: StdGen -> [(Int, String)] | |
| zundokos gen0 = let (n, gen1) = randomR (0, 1) gen0 in | |
| (zundoko n) : (zundokos gen1) |
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
| http://qntm.org/files/hatetris/hatetris.html#梜𤆻𔖼𤆻𤇁𢊻𤅛𥆸𠞻𤂻栌𤂻𤇅䂺𤅋𠆗𢚻𤆀䂺ꉷ𣮻𤆻𡮻𣦻𤆻𤶻𤅻𔗇𢊻𤅵𤇅𤃅郇込𤄛𤚑兌𣠋𡚻𠇇𥆰𤦐𣸫倌𤆰𣻅𔔌𤞰𤞻䂸𣉋䂸䨋𢛄 |
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
| def typeOf(obj: Any) = scala.reflect.runtime.currentMirror.reflect(obj).symbol.typeSignature | |
| def _format(xs :Iterable[Any]) = xs.map(_.toString).toList.distinct.sorted.foreach(println) | |
| def members(obj: Any) = _format(typeOf(obj).declarations) | |
| def classes(obj: Any) = _format(typeOf(obj).baseClasses) |