Skip to content

Instantly share code, notes, and snippets.

@bladeFury
bladeFury / no_source_push.gradle
Created November 30, 2014 14:19
no source push gradle
/*
* Copyright 2013 Chris Banes
*
* 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
@bladeFury
bladeFury / push.gradle
Last active August 29, 2015 14:10
maven push gradle file
/*
* Copyright 2013 Chris Banes
*
* 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
@bladeFury
bladeFury / RoundClipDrawable.java
Last active June 24, 2019 14:26
a round clip drawable which can be used by progressbar
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Path;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.os.Build;
@bladeFury
bladeFury / BTihCalculator.java
Last active December 25, 2015 12:19
A Simple class that calculates the BTih of a torrent file.
/*
* created by zhangge(uniqguang@gmail.com)
*/
import java.io.ByteArrayOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.security.NoSuchAlgorithmException;
@bladeFury
bladeFury / RSS.py
Created May 29, 2012 05:45 — forked from mnot/RSS.py
RSS.py: work with RSS channels as data structures
#!/usr/bin/env python
"""
RSS.py
Classes for working with RSS channels as arbitrary data structures.
Requires Python 2.2 or newer and PyXML 0.7.1 or newer.
ChannelBase - Base class for RSS Channels.
CollectionChannel - RSS Channel modeled as a URI-per-entry