ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
This file contains hidden or 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 pygame | |
import random | |
from Queue import Queue, deque | |
from pygame.color import Color | |
d = 20 | |
WIDTH = 15 | |
HEIGHT = 10 | |
LEFT, RIGHT, UP, DOWN = -1, 1, -WIDTH, WIDTH |
This file contains hidden or 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 random | |
opmv = {'O': 'X', 'X': 'O'} | |
def print_grid(grid): | |
print '\n' + '\n'.join(' '.join(line) for line in zip(*[iter(grid)]*3)) | |
def possible(grid): | |
return [i for i in xrange(9) if grid[i] == '_'] |
This file contains hidden or 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
''' Priority queue implemented by heap. | |
Some codes are copied from the official library heapq. | |
Priority changes for queue item is possible and fast. ''' | |
class PQ: | |
def __init__(self): | |
self.heap = [] | |
self.priority = {} | |
self.position = {} |
This file contains hidden or 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
# Example usage | |
# $ python dft.py | gnuplot | |
# 9 | |
# 0 0 | |
# 1 1 | |
# 2 2 | |
# 0 2 | |
# 1 1 | |
# -1 1 | |
# 0 2 |
This file contains hidden or 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
set DARKGREEN 2b6003 | |
set LIGHTGREEN b7da2d | |
set DARKBLUE 2f6f93 | |
set LIGHTBLUE 87d6fc | |
set SPARATOR \u2b80 | |
set SPARATOR_THIN \u2b81 | |
function fish_prompt | |
# first line | |
set_color -o $DARKGREEN -b $LIGHTGREEN |
This file contains hidden or 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 | |
import socket | |
rawSocket = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0x0003)) | |
rawSocket.bind(("mon0", 0x0003)) | |
ap_list = set() | |
while True : | |
pkt = rawSocket.recvfrom(2048)[0] | |
if pkt[26] == "\x80" : | |
if pkt[36:42] not in ap_list and ord(pkt[63]) > 0: | |
ap_list.add(pkt[36:42]) |
This file contains hidden or 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 | |
from scapy.all import * | |
ap_list = [] | |
def PacketHandler(pkt) : | |
if pkt.haslayer(Dot11) : | |
if pkt.type == 0 and pkt.subtype == 8 : |
This file contains hidden or 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
# coding: utf-8 | |
from __future__ import unicode_literals | |
import re | |
import sys | |
import requests | |
import HTMLParser | |
cookie_t = '' | |
uid = '' | |
filename = '' |