###General
Git
Linux
Zsh
Tmux
Oh My Zsh
###Editors
Vim
Emacs
Textmate
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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# Zolmeister zsh theme | |
### Segment drawing | |
# A few utility functions to make it easy and re-usable to draw segmented prompts | |
CURRENT_BG='NONE' | |
SEGMENT_SEPARATOR='' | |
# Begin a segment |
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/env python | |
# Looks like the serial number verification for space ships is similar to that | |
# of your robot. Try to find a serial that verifies for this space ship | |
import sys | |
def check_serial(serial): | |
if (not set(serial).issubset(set(map(str,range(10))))): | |
print ("only numbers allowed") | |
return False |
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
msg="1111 1 1011 1011 000 100 1111 10 0 11 111 0 1111 1 010 1 0100 11 0 11 0 11 111 0111 000 000 1001 0111 1 1 1001".split(" ") | |
key='abcdefghijklmnopqrstuvwxyz1234567890' | |
lets='10 0111 0101 011 1 1101 001 1111 11 1000 010 1011 00 01 000 1001 0010 101 111 0 110 1110 100 0110 0100 0011 10000 11000 11100 11110 11111 01111 0111 00011 00001 00000'.split(' ') | |
ans="" | |
for k in msg: | |
ans+=key[lets.index(k)] | |
print ans |
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 itertools import product | |
from copy import copy | |
board = [[None for x in xrange(13)] for y in xrange(13)] | |
for i,x in enumerate(board): | |
for j,y in enumerate(board[0]): | |
if i>=6 or j>=13: | |
break | |
#board[i][j]=1 | |
first = "01211212021202212011102122002201" |
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
<img id='steg' onload="draw()" src='steg.png'> | |
<canvas id="canv" width="800" height="600" style="border:1px solid #d3d3d3;"></canvas> | |
<script src='zappy.js'></script> | |
<script> | |
var c=document.getElementById("canv"); | |
var ctx=c.getContext("2d"); | |
var img=document.getElementById("steg"); | |
function draw(){ | |
ctx.drawImage(img,0,0); |
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/env python | |
"""Show slideshow for images in a given directory (recursively) in cycle. | |
If no directory is specified, it uses the current directory. | |
""" | |
import logging | |
import os | |
import platform | |
import sys | |
from collections import deque |
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
/* The MIT License (MIT) | |
Copyright (c) 2013 Zolmeister | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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
-- | |
-- xmonad example config file. | |
-- | |
-- A template showing all available configuration hooks, | |
-- and how to override the defaults in your own xmonad.hs conf file. | |
-- | |
-- Normally, you'd only override those defaults you care about. | |
-- | |
import XMonad |
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 url(http://fonts.googleapis.com/css?family=Ubuntu+Mono); | |
.cm-s-zolmeister.CodeMirror { | |
background: #272822; color: #f8f8f2; | |
font-family:'Ubuntu Mono', monospace; | |
line-height: 1.2em; | |
} | |
.cm-s-zolmeister div.CodeMirror-selected {background: #49483E !important;} | |
.cm-s-zolmeister .CodeMirror-gutters {background: #272822; border: 1px solid rgba(0,0,0,.25);} | |
.cm-s-zolmeister .CodeMirror-gutter-text {color: #d0d0d0;} | |
.cm-s-zolmeister .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;} |
OlderNewer