Skip to content

Instantly share code, notes, and snippets.

View iyunbo's full-sized avatar
📊
Deep Learnist

Yunbo WANG iyunbo

📊
Deep Learnist
View GitHub Profile
@iyunbo
iyunbo / build_bpy_ubuntu.sh
Last active June 16, 2023 01:44
Build blender as python module (bpy) for Ubuntu
# install building tools and dependencies
sudo apt-get update
sudo apt-get --assume-yes install xpra build-essential git subversion cmake libx11-dev libxxf86vm-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libglew-dev
# create working directory
mkdir ~/blender-git
# get the source code
cd ~/blender-git
git clone https://git.blender.org/blender.git --single-branch --depth 1
# install libraries
mkdir ~/blender-git/lib
@iyunbo
iyunbo / many2many.sql
Last active September 19, 2019 20:18
Clickhouse many to many example
DROP TABLE schedule;
CREATE TABLE schedule
(
aggregateId UInt16,
scheduleId UInt16,
cashflow Float32,
perimeter Array(String)
)
ENGINE = TinyLog;
@iyunbo
iyunbo / Calisthenics.md
Last active June 10, 2018 20:16 — forked from bobuss/Calisthenics.md
The 9 Rules of Object Calisthenics

Object Calisthenics outlines 9 basic rules to apply when performing the exercise:

  • One level of indentation per method.
  • Don't use the ELSE keyword.
  • Wrap all primitives and Strings in classes.
  • First class collections.
  • One dot per line.
  • Don't abbreviate.
  • Keep all classes less than 150 lines.
  • No classes with more than 5 instance variables.
@iyunbo
iyunbo / git_branch_story.sh
Last active December 17, 2015 11:49
Git most used commands
# I am assigned a issue, let me create a new branch and switch to it for working on issue 53
git checkout -b iss53
# Switch back to production because something goes wrong
git checkout master
# Create a hotfix branch to fix the stuff
git checkout -b hotfix
# After fixed, I go back to master again and merge the hotfix
@iyunbo
iyunbo / check_oracle_env.sh
Last active December 17, 2015 05:08
getting started your Oracle environment
echo $ORACLE_HOME
echo $ORACLE_SID