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> | |
main(int t,char _,char *a) | |
{ | |
return!0<t?t<3?main(-79,-13,a+main(-87,1-_,main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t== 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_,t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\ n'wk nw'iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/") :t<-50?_==*a?putchar(a[31]):main(-65,_,a+1):main((*a == '/')+t,_,a+1 ):0<t?main ( 2, 2 , "%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc \i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1); | |
} |
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
#define X | |
#define XX | |
#define XXX | |
#define XXXX | |
#define XXXXX | |
#define XXXXXX | |
#define XXXXXXX | |
#define orfa for | |
#define XXXXXXXXX | |
#define archa char |
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
import Data.List | |
langs = [Haskell, Perl, Python, Ruby, C, Java] | |
data Languages = Haskell | Ruby | Perl | C | Python | Java | |
sequenceFromString Haskell s = "map toEnum[" ++ (intercalate "," $ | |
map (\c -> show (fromEnum c)) s) ++ "]" | |
sequenceFromString Perl s = (intercalate "," $ | |
map (\c -> "chr(" ++ show (fromEnum c) ++ ")") s) |
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
# ruby | |
l=92.chr;eval s="s=s.dump[r=1..-2].gsub(/("+l*4+"){4,}(?!\")/){|t|'\"+l*%d+\"'%(t | |
.size/2)};5.times{s=s.dump[r]};puts\"# python\\nprint(\\\"# perl\\\\nprint(\\\\\\ | |
\"# lua"+l*4+"nprint("+l*7+"\"(* ocaml *)"+l*8+"nprint_endline"+l*15+"\"-- haskel | |
l"+l*16+"nimport Data.List;import Data.Bits;import Data.Char;main=putStrLn("+l*31 | |
+"\"/* C */"+l*32+"n#include<stdio.h>"+l*32+"nint main(void){char*s[501]={"+l*31+ | |
"\"++intercalate"+l*31+"\","+l*31+"\"(c(tail(init(show("+l*31+"\"/* Java */"+l*32 | |
+"npublic class QuineRelay{public static void main(String[]a){String[]s={"+l*31+" | |
\"++intercalate"+l*31+"\","+l*31+"\"(c("+l*31+"\"brainfuck"+l*64+"n++++++++[>++++ | |
<-]+++++++++>>++++++++++"+l*31+"\"++(concat(snd(mapAccumL h 2("+l*31+"\"110"+l*31 |
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
(ns cljblog.db | |
(:refer-clojure :exclude [compile distinct drop take sort conj! disj!]) | |
(:use clojureql.core)) | |
(def *db* | |
{:classname "com.mysql.jdbc.Driver" | |
:subprotocol "mysql" | |
:user "root" | |
:password "" | |
:auto-commit true |
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
class ComputedField(TextField): | |
def __init__(self, *args, **kwargs): | |
kwargs['editable'] = False | |
kwargs['blank'] = True | |
if 'computation' not in kwargs: | |
raise AttributeError("ComputedField *REQUIRES* computation parameter") | |
self.computation = kwargs.pop('computation') | |
if not callable(self.computation): | |
raise AttributeError("ComputedField computation parameter *MUST* be callable") | |
super(ComputedField, self).__init__(*args, **kwargs) |
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
from django.db.models import TextField, ForeignKey | |
from django.db.models.signals import m2m_changed, post_save, class_prepared | |
class ComputedField(TextField): | |
def __init__(self, *args, **kwargs): | |
assert 'computation' in kwargs | |
assert callable(kwargs['computation']) | |
kwargs['editable'] = False | |
kwargs['blank'] = True | |
self.computation = kwargs.pop('computation') |
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
(ns example.core | |
(:import clojure.lang.ILookup)) | |
(deftype MyType [a b] | |
ILookup | |
(valAt [this key] | |
(cond | |
(= key :a) a | |
(= key :b) (+ b 100500) | |
:else nil) |
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
module Views where | |
import Control.Monad | |
import Happstack.Server (ServerPart, Response, ok, toResponse, dir) | |
import Text.Blaze ((!)) | |
import qualified Text.Blaze.Html5 as H | |
import qualified Text.Blaze.Html5.Attributes as A | |
routes = msum [ dir "smth" $ notok | |
, index |
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
Pq.loginController = SC.ObjectController.create({ | |
userName: null, | |
password: null | |
}); |
OlderNewer