Skip to content

Instantly share code, notes, and snippets.

View shyoshyo's full-sized avatar
🐟
Fish touching

Kaixiang Lei shyoshyo

🐟
Fish touching
  • ByteDance
  • Shanghai, China
View GitHub Profile
@liaogang
liaogang / sbr.py
Created January 22, 2019 07:20
This is a python script of LLDB to set breakpoint using file address when ASLR is on. I copy from network and changed a little
#!/usr/bin/python
#coding:utf-8
import lldb
import commands
import optparse
import shlex
def get_ASLR(debugger):
@iris-i
iris-i / marquee.js
Created January 8, 2018 13:56
React Marquee Component using HTML Canvas & RequestAnimationFrame
import React from 'react';
import ReactDOM from 'react-dom';
class Marquee extends React.Component {
constructor(props){
super(props);
this.state = {
textwidth: 0,
containerwidth: 0,
//
// main.m
// antidebugging
//
// Created by Vincent Tan on 7/8/15.
// Copyright (c) 2015 Vincent Tan. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
@yrevar
yrevar / imagenet1000_clsidx_to_labels.txt
Last active May 10, 2024 05:27
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@frederickjh
frederickjh / install_fish_shell_locally.sh
Last active November 15, 2019 00:18 — forked from eugenesvk/fish_shell_local_install.sh
Installs Fish Shell without root access
#! /bin/bash
# Bash script for installing Fish Shell on systems without root access
# Fish Shell will be installed in $HOME/local/bin
# It's assumed that wget and a C/C++ compiler are installed
set -e # exit on error
FISH_VER=2.2.0
mkdir -p $HOME/local $HOME/fish_shell_tmp # create our directories
cd $HOME/fish_shell_tmp
@karpathy
karpathy / min-char-rnn.py
Last active May 22, 2024 08:28
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@ncw
ncw / README.txt
Last active February 20, 2024 19:30 — forked from spikebike/client output
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh test@test.com
Run the server in one terminal
go run server.go