Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block cysin

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
import numpy as np
import sys,os
import argparse
caffe_root = '/root/work/caffe/'
sys.path.insert(0, caffe_root + 'python')
os.environ['GLOG_minloglevel'] = '3'
import caffe
#import google.protobuf as pb
import google.protobuf.text_format
import pprint as pp
cysin / m.diff
Created Sep 3, 2018
a patch to force stop app for android systems
View m.diff
project frameworks/base/
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml
index 070634b..3e359b4 100644
--- a/packages/SystemUI/AndroidManifest.xml
+++ b/packages/SystemUI/AndroidManifest.xml
@@ -90,6 +90,8 @@
<uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" />
<uses-permission android:name="android.permission.START_TASKS_FROM_RECENTS" />
<uses-permission android:name="android.permission.GET_INTENT_SENDER_INTENT" />
cysin /
Created Feb 2, 2016
A k-selection example in python
import heapq
import random
import time
def createArray():
array = range( 10 * 1000 * 1000 )
random.shuffle( array )
return array
You can’t perform that action at this time.