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
#include<stdio.h>
#include<assert.h>
#include<math.h>
float ax = 4.5f, ay = 5.5f;
float r = 2.0f;
float ox = -3.4f, oy = -5.4f;
int main()
{
&#039;Cause I want to get there
&#039;cause I love you
&quot;ARIA&quot; √dirge of the world.
&quot;ARIGATO&quot; from me to you
&quot;OISHII&quot; TRIP
( )に願いを
( ゚∀゚)o彡゜助けて! リタリン!
(&#039;A`)マンドクセ(&#039;A`)
(BITTER) SWEET STARDOM
(Can&#039;t wait for)After School
bincrop_bzip
https://drive.google.com/file/d/1Xx64sRh9qKnR_CbuuAg528tpnfgEdnk0/view?usp=sharing
bincrop
aplusb
@shyoshyo
shyoshyo / 0.01.sh
Created February 4, 2019 07:09
0.01 transcript
curl 'http://jxgl.cic.tsinghua.edu.cn/jxpg/b/zzzc/v_zzfw_zzdy_dd/dzcjd_pay' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'Origin: http://jxgl.cic.tsinghua.edu.cn' -H 'Upgrade-Insecure-Requests: 1' -H 'Content-Type: application/x-www-form-urlencoded' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Referer: http://jxgl.cic.tsinghua.edu.cn/jxpg/f/zzzc/v_zzfw_zzdy_dd/bksDzcjdzf' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7' -H 'Cookie: JSESSIONIDJXPGNEW=???; thuwebcookie=???' --data 'token=&cjdlxs=01%2C&email=twd2%40163.com&zfy=0.01&czrlb=bks' --compressed
#!/usr/bin/env sh
INFO_USERNAME=...
INFO_PASSWORD=...
email=...
cookies="$(mktemp /tmp/cookie.XXXXXXXX)"
transcript_html="$(mktemp /tmp/transcript_html.XXXXXXXX)"
while true; do
@shyoshyo
shyoshyo / brew.sh
Created January 3, 2019 18:22
GLFW example
# GLFW is a windowing manager for OpenGL. Makes things easier when working with windows, as well as input via keyboard or mouse.
# GLFW is in homebrew/versions so we'll have to tap that to be able to install.
brew tap homebrew/versions
brew install glfw3
# GLEW offers bindings for your OS so that you don't have to call some OS specific OpenGL calls.
brew install glew
env CC=(which gcc) CXX=(which g++) cmake ../blender-2.79b/ -DPYTHON_LIBRARY=$HOME/.local/miniconda3/envs/py35/lib/libpython3.5m.so -DPYTHON_LIBPATH=$HOME/.local/miniconda3/envs/py35/lib/ -DPYTHON_INCLUDE_DIR=$HOME/.local/miniconda3/envs/py35/include/python3.5m/ -DPYTHON_INCLUDE_CONFIG_DIR=$HOME/.local/miniconda3/envs/py35/lib/pkgconfig/ -DWITH_CYCLES=false -DWITH_SYSTEM_GLEW=false
./autogen.sh --prefix=$HOME/.local/ --with-drivers=dri --with-gallium-drivers= --disable-llvm --enable-glut