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
| (defun new-working-buffer () | |
| (interactive) | |
| (find-file (concat | |
| (format-time-string "~/%Y-%m%d-%H%M%S.") | |
| system-name))) |
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
| # -*- coding: utf-8 -*- | |
| path = File.expand_path File.join File.dirname(__FILE__), '..', 'lib' | |
| $LOAD_PATH.unshift path unless $LOAD_PATH.include? path |
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
| // clang -Wall -x objective-c -std=c99 -fobjc-arc -framework Foundation -o a.out a.m | |
| #import <objc/objc.h> | |
| #import <objc/objc-runtime.h> | |
| #import <CoreFoundation/CoreFoundation.h> | |
| #import <Foundation/Foundation.h> | |
| void foo(int a) | |
| { | |
| switch (a) | |
| { |
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
| // semicolonless Java | |
| public class A | |
| { | |
| public static void main(String[] args) { | |
| return\u003b | |
| } | |
| } |
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
| # coding: utf-8 | |
| def fact(n); (n==1)? 1: n*fact(n-1); end; | |
| class Fixnum; def !(); fact(self); end; end | |
| print 3.!.!.! |
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) |
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
| 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
| // 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
| .PHONY: yocifico great again | |
| yocifico: | |
| @echo 人生 | |
| great: | |
| @echo どうでも | |
| again: | |
| @echo 飯田橋 |