Skip to content

Instantly share code, notes, and snippets.

View yize's full-sized avatar
🏄‍♂️
surfing the internet

九神 yize

🏄‍♂️
surfing the internet
View GitHub Profile
@yize
yize / README.md
Created March 22, 2014 07:42 — forked from necolas/README.md

NOTE I now use the conventions detailed in the SUIT framework

Template Components

Used to provide structural templates.

Pattern

t-template-name
@yize
yize / tiny_raytracer_full.js
Created November 20, 2013 01:41
This is very cool. Interestingly it was generated by Google's Closure compiler. The author has the full source with excellent comments on his site. link: http://www.gabrielgambetta.com/tiny_raytracer.html
// Tiny Raytracer (C) Gabriel Gambetta 2013
// ----------------------------------------
//
// Configuration and scene
//
// Size of the canvas. w is also reused as a "big constant" / "+infinity"
var w = 600;
// Sphere: radius, [cx, cy, cz], R, G, B, specular exponent, reflectiveness
// R, G, B in [0, 9], reflectiveness in [0..9].
@yize
yize / glog
Last active April 15, 2022 10:15
Beauty & useful git log
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@yize
yize / git-m.sh
Created September 17, 2013 05:21
change git log commiter user info(user.name & user.email) use : sh git-m.sh
#!/bin/bash
#----changed the git history author info---
#---see http://baike.corp.taobao.com/index.php/Git-m --
bldgrn='\e[1;32m' # Green
bldylw='\e[1;33m' # Yellow
txtrst='\e[0m' # Text Reset
function warning (){
echo -n -e "${bldylw}WARNING:"
echo -n -e "${txtrst}"
echo $1
@yize
yize / cb.php
Created September 4, 2013 05:50
combo.php
<?php
/**
* cb.php
* 只处理\?\?.+的情况
* 部署在项目根目录中
* author: 拔赤 - [email protected]
*/
@yize
yize / Install Package Control for Sublime Text 3
Last active December 21, 2015 06:09
Install Package Control for Sublime Text 3
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone git://github.com/wbond/sublime_package_control.git Package\ Control
cd Package\ Control
git checkout python3
# restart Sublime Text 3 and you should have Package Control working