ミームにおける突然変異のようなもの
ジョン・マッカーシーは竹内関数を記憶違いで[2] z を返すように変更し、これがTak関数として広まった。...
しかしチャーチの文章を出版するとき、当時の印刷技術ではハット付きの文字が印刷できなかった (!) ので、 ^x.2x+1
| from functools import wraps | |
| import logging | |
| logging.basicConfig(level=logging.DEBUG) | |
| logger = logging.getLogger(__name__) | |
| # http://stackoverflow.com/questions/9166400/convert-rgba-png-to-rgb-with-pil | |
| # http://stackoverflow.com/questions/11484204/python-invert-image-with-transparent-background-pil-gimp | |
| import argparse | |
| import StringIO | |
| import Image | |
| import ImageOps | |
| class Command(object): |
| <?php | |
| // http://php.net/manual/en/migration54.new-features.php | |
| // http://php.net/manual/en/closure.bindto.php | |
| class Sample { | |
| public static function getArray() { | |
| return [0b100, 0b101, 0b111]; | |
| } |
| import new | |
| class ProtoObj(object): | |
| def __init__(self, prototype={}): | |
| self.prototype = prototype | |
| self.__super_prototype = {} | |
| def clone(self): | |
| Obj = new.classobj('ProtoObjClone', (ProtoObj, ), {}) |
| // javascript:(function(js,d,s){d=document,s=function(src,sc,date){sc=d.createElement('script');sc.setAttribute('src',src);d.body.appendChild(sc);};date=(new Date()).getTime();s(js+'?'+date);})('//raw.github.com/gist/3319875/quote.js'); | |
| (function(){ | |
| var d = document, | |
| t = d.getElementById('_____blockQuote'); | |
| if (!t) { | |
| t = d.createElement('textarea'); | |
| t.setAttribute('id', '_____blockQuote'); | |
| d.body.appendChild(t); | |
| } | |
| with (t.style) { |
| var f = function(){ | |
| console.log('a') | |
| }; | |
| f.foo = function(){ | |
| console.log('b'); | |
| }; | |
| f.foo.bar = function(){ | |
| console.log('c'); | |
| }; | |
| f.foo.baz = function(){ |
ミームにおける突然変異のようなもの
ジョン・マッカーシーは竹内関数を記憶違いで[2] z を返すように変更し、これがTak関数として広まった。...
しかしチャーチの文章を出版するとき、当時の印刷技術ではハット付きの文字が印刷できなかった (!) ので、 ^x.2x+1
| var a = 0; | |
| def f() = { | |
| if (false) { | |
| var a = 456; | |
| } | |
| println(a); | |
| } | |
| def f2() = { |
| #/*<?php echo "PHP Code\n"; __halt_compiler();?> */ | |
| #include <stdio.h> /* | |
| print (("b" + "0" == 0 and "Perl Code\n") or (0 and "Ruby Code\n" or "Python Code")); | |
| __DATA__ = 1 | |
| """"" | |
| __END__ |
| import random | |
| class Female(object): pass | |
| class Male(object): pass | |
| def get_sex(): | |
| return [Female, Male][random.randint(0, 1)] | |
| class Animal(object): |