Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block yeshengwu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View save h264 to disk
private Context mContext;
public void setContext(Context context) {
mContext = context;
private BufferedOutputStream outputStream;
private void createfile() {
String path = Environment.getExternalStorageDirectory().getAbsolutePath() + SystemClock.elapsedRealtime() + ".h264";
File file = null;
yeshengwu /
Created Dec 14, 2018 — forked from nakov/
ECDSA with secp256k1 in Java: generate ECC keys, sign, verify
import org.bouncycastle.util.encoders.Hex;
import org.web3j.crypto.*;
import java.math.BigInteger;
public class ECCExample {
public static String compressPubKey(BigInteger pubKey) {
String pubKeyYPrefix = pubKey.testBit(0) ? "03" : "02";
String pubKeyHex = pubKey.toString(16);
String pubKeyX = pubKeyHex.substring(0, 64);
yeshengwu / CircularQueue.h
Created Sep 2, 2016 — forked from werediver/CircularQueue.h
Simple implementation of circular queue in Objective-C (for ARC-enabled environment).
View CircularQueue.h
// CircularQueue.h
// Created on 9/21/13.
#import <Foundation/Foundation.h>
@interface CircularQueue : NSObject <NSFastEnumeration>
yeshengwu / public video test url
Last active Nov 2, 2018
sometimes find public test video url cost times
View public video test url
You can’t perform that action at this time.