ミームにおける突然変異のようなもの
ジョン・マッカーシーは竹内関数を記憶違いで[2] z を返すように変更し、これがTak関数として広まった。...
しかしチャーチの文章を出版するとき、当時の印刷技術ではハット付きの文字が印刷できなかった (!) ので、 ^x.2x+1
| javascript:(function(){var u='https://ajax.googleapis.com/ajax/libs/',d=document,s=d.createElement('script'),s2=s.cloneNode();s.src=u+'jquery/1.7.2/jquery.min.js';s2.src=u+'jqueryui/1.8.18/jquery-ui.min.js';d.head.appendChild(s);d.head.appendChild(s2)})(); |
| #include <stdio.h> | |
| int fib(int n) { | |
| if (n <= 1) { | |
| return n; | |
| } | |
| return fib(n - 1) + fib(n - 2); | |
| } | |
| int main(){ |
| #<?php eval('echo "PHP Code\n";'); __halt_compiler(); ?> | |
| print ((("b" + "0" == 0) and eval('"Perl Code\n"')) or (0 and "Ruby Code\n" or "Python Code")); | |
| __DATA__ = 1 | |
| """"" | |
| __END__ | |
| ===== This is comment of all. ===== |
| import random | |
| class Female(object): pass | |
| class Male(object): pass | |
| def get_sex(): | |
| return [Female, Male][random.randint(0, 1)] | |
| class Animal(object): |
| #/*<?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__ |
| var a = 0; | |
| def f() = { | |
| if (false) { | |
| var a = 456; | |
| } | |
| println(a); | |
| } | |
| def f2() = { |
ミームにおける突然変異のようなもの
ジョン・マッカーシーは竹内関数を記憶違いで[2] z を返すように変更し、これがTak関数として広まった。...
しかしチャーチの文章を出版するとき、当時の印刷技術ではハット付きの文字が印刷できなかった (!) ので、 ^x.2x+1
| var f = function(){ | |
| console.log('a') | |
| }; | |
| f.foo = function(){ | |
| console.log('b'); | |
| }; | |
| f.foo.bar = function(){ | |
| console.log('c'); | |
| }; | |
| f.foo.baz = function(){ |
| // 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) { |
| import new | |
| class ProtoObj(object): | |
| def __init__(self, prototype={}): | |
| self.prototype = prototype | |
| self.__super_prototype = {} | |
| def clone(self): | |
| Obj = new.classobj('ProtoObjClone', (ProtoObj, ), {}) |