Skip to content

Instantly share code, notes, and snippets.

@syxc
syxc / xor.py
Created July 9, 2015 09:52
simpleXor
#!/usr/bin/env python
# encoding: utf-8
"""
xor.py
"""
import base64
def simpleXor(source, key):
retval = ''

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@syxc
syxc / docker.md
Created September 19, 2014 08:07
一些关于 Docker 的资料
package com.yourpackagename;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;
@syxc
syxc / github.css
Last active August 29, 2015 14:05 — forked from theconektd/github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 16px;
line-height: 1.6;
padding: 10px;
background-color: white;
}
body > *:first-child {
margin-top: 0 !important;
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@syxc
syxc / CommonMacro.h
Last active April 14, 2017 09:09 — forked from ondev/gist:6714742
常用的 iOS 开发宏
//
// CommonMacro.h
//
//
// Created by Haven on 26/9/13.
// Copyright (c) 2013 LF. All rights reserved.
//
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <CoreTelephony/CTCarrier.h>
@syxc
syxc / app.js
Created October 14, 2013 11:47 — forked from clarle/app.js
// Module dependencies
var express = require('express'),
mysql = require('mysql');
// Application initialization
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
"""
tornado_static is a module for displaying static resources in a Tornado web
application.
It can take care of merging, compressing and giving URLs ideal renamings
suitable for aggressive HTTP caching.
(c) [email protected]
"""