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
#!/usr/bin/python2 | |
print((lambda i:"SyntaxError"if i[0]=='/'and i.count('!')-1 else(r if(globals().__setitem__('r',0)or globals().__setitem__('x',i[1:-1][::-1])or len([(lambda:globals().__setitem__('r',r*3+{'/':0,'|':1,'.':2}[x[0]])or globals().__setitem__('x',x[1:]))()for n in range(len(i)-2)]))else 0))((lambda a:''.join(filter(lambda x:x in['/','|','.','!'],a)))((lambda i:i[1]if i[1:]else raw_input('> '))(__import__('sys').argv)))) |
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
(lambda inp:(lambda inp:inp if len(inp)%2 else inp)((lambda inp:hex(int(''.join([(lambda x:((bin(ord(x)-65)[2:].rjust(6,'0')if x.isupper()else bin(ord(x)-71)[2:].rjust(6,'0'))if ord(x)>64 else(bin(ord(x)+4)[2:].rjust(6,'0')if x.isdigit()else(''if ord(x)>50 else('0'if x=='+'else'1').rjust(6,'1')))))(x)for x in inp]),2))[2:].rstrip('0'))(inp)).decode("hex")) |
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 PIL import Image | |
from sys import argv | |
# 1 0 | |
# 2 3 | |
rawimg = Image.open('img.jpg') | |
rawimg = rawimg.crop((0,0,32,32)) |
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
globals().__setitem__('e',lambda x,y:globals().__setitem__(x,y))or e('tw',__import__('tweepy'))or e('o',tw.OAuthHandler(*['cus_tok','cus_sec']))or o.set_access_token(*['acc_tok','acc_sec')or tw.API(o).update_status('a - a - test - test - ') |
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
#!/usr/bin/python2 | |
globals().__setitem__('c',lambda x,y:globals().__setitem__(x,y))or c('os',__import__('os'))or c('PATH',os.path.expanduser('~/Picture/wallpaper/'))or c('f',lambda c,fl,x:f(c,fl,fl)if x is None else(fl[0]if x==[]else((fl[0]if len(x)==1 else x[1])if x[0]in c else f(c,fl,x[1:]))))or c('nextwall',f(open(__import__('os').path.expanduser('~/.fehbg')).read(),sorted(os.listdir(PATH)),None))or __import__('subprocess').call(["feh","--bg-fill","{file}".format(file=PATH+nextwall)]) |
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
#!/bin/zsh | |
CMDNAME=`basename $0` | |
usage(){ | |
echo "Usage: $CMDNAME [-v] file" | |
exit 1 | |
} | |
pdf_view=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
import sys | |
import os.path | |
import mimetypes | |
import binascii | |
def encode(filename, data): | |
mime = mimetypes.guess_type(filename)[0] | |
encoded = binascii.b2a_base64(data) | |
return "data:{mime};base64,{enc}".format(mime=mime,enc=encoded) |
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
$(function () { | |
function scrollTo(a) { | |
return function (e) { | |
var t={"top":0}[a] | |
if (typeof t=="undefined"){ | |
t = $($(this).attr("href")).offset().top - document.getElementById('nav').clientHeight; | |
} | |
$('html, body').animate({scrollTop: t}, 500); | |
delete t; | |
e.preventDefault(); |
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
var resized,wid,hei;//global | |
resized=true | |
$(window).resize(function(){ | |
wid = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; | |
hei = window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight; | |
resized = true; | |
}) | |
function render(){ |
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
int HEXNUM = 32; | |
int HEXC = 5; | |
int r=576/12; | |
Hex[] hexarr = new Hex[HEXNUM]; | |
void setup(){ | |
size(1024, 576); | |
frameRate(50); |
OlderNewer