Skip to content

Instantly share code, notes, and snippets.

View clive819's full-sized avatar
👨‍🎓

Clive clive819

👨‍🎓
View GitHub Profile
@clive819
clive819 / CATCH_Keras_RL.md
Created March 25, 2018 17:22 — forked from EderSantana/CATCH_Keras_RL.md
Keras plays catch - a single file Reinforcement Learning example
@clive819
clive819 / re-sign-ios-app.md
Created March 16, 2017 10:05 — forked from chaitanyagupta/re-sign-ios-app.md
How to re-sign an iOS app with another developer account

To re-sign an iOS app with another developer account, ensure that the following are in place first.

  1. Distribution certificate of the other developer account
  2. A provisioning profile from the other developer account

Note that the Apple requires bundle IDs to be globally unique, even across accounts. So a bundle ID i.e. CFBundleIdentifier from one account can't be used in a different account, even though the team id/prefix would be different.

Ensure that the new distribution certificate is in your keychain and the new provisioning profile on your disk.

  1. Unzip the .ipa. This will usually unzip to Payload/.app/
@clive819
clive819 / midterm_easy.asm
Last active December 3, 2016 16:39
A: odd B: even C: even
port4 EQU 0E8h
shift7LED EQU 0FEh
dispBuf EQU 40h
keyBuf1 EQU 44h
keyBuf2 EQU 45h
keyCode EQU 46h
keyCheck EQU 47h
debCounter EQU 48h
debTimes EQU 60
CLEAR BIT 05h
port4 EQU 0E8h
shift7LED EQU 0FEh
dispBuf EQU 40h
keyBuf1 EQU 44h
keyBuf2 EQU 45h
keyCode EQU 46h
decBuf0 EQU 50h
t0Buf EQU 49h
t0Count EQU 10
decBuf1 EQU 4Ch
port4 EQU 0E8h
shift7LED EQU 0FEh
dispBuf EQU 40h
keyBuf1 EQU 44h
keyBuf2 EQU 45h
keyCode EQU 46h
decBuf EQU 50h
toBuf EQU 49h
toCount EQU 10
port4 EQU 0E8h ;#define port4 0E8h
shift7LED EQU 0FEh ;#define shift7LED 0FEh
dispBuf EQU 40h ;#define dispBuf 40h
keyBuf1 EQU 44h ;#define keyBuf1 44h
keyBuf2 EQU 45h ;#define keyBuf2 45h
keyCode EQU 46h ;#define keyCode 46h
keyCheck EQU 47h ;#define keyCheck 47h
debCounter EQU 48h ;#define debCounter 48h
debTimes EQU 60 ;#define debTimes 60
keybuf1 EQU 44h
keybuf2 EQU 45h
keycode EQU 46h
port4 EQU 0E8h
shift7LED EQU 0FEh
dispBuf EQU 40h
ORG 0000h
MOV a, #0FFh
MOV port4, a
#include <stdlib.h>
#include <stdio.h>
struct NODE{
int data;
struct NODE *link;
};
struct STACK{
int count;
struct NODE *top;
};
ORG 0000h
MOV 40h,#0
MOV 41h,#6
MOV 42h,#4
MOV 43h,#1
MOV DPTR, #Led_table
back:
MOV R0,#40h
MOV 0E0h,#0FEh
/*public static void main(String args[]){
SVM svm = SVM.create();
HOGDescriptor hog = new HOGDescriptor(new Size(64, 128), new Size(16, 16), new Size(8, 8), new Size(8, 8), 9);
Mat vector = new Mat();
Mat label = new Mat();
int dim = 0;
for (int i=0; i<100; i++){
Mat img = Imgcodecs.imread("/Users/Clive/Desktop/trainHOG-master/pos/"+i+".png");
MatOfFloat factor = new MatOfFloat();
MatOfPoint locations =new MatOfPoint();