Skip to content

Instantly share code, notes, and snippets.

View bitinn's full-sized avatar
🔜
Personal Project

David Frank bitinn

🔜
Personal Project
View GitHub Profile
@bitinn
bitinn / unlit.shader
Created January 24, 2018 04:05
Amplify Shader Template Example
Shader /*ase_name*/ "AST/Extended Unlit" /*end*/
{
Properties
{
_MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
/*ase_props*/
}
SubShader
@bitinn
bitinn / update.md
Last active January 22, 2018 18:06
Anime Update 2018-01-23

原评价出处:https://bitinn.net/11509/

更新下我首集预览的推荐和保留List——

魔卡少女樱 透明卡篇

三颗星彩色冒险

弃(为什么不好笑)

@bitinn
bitinn / BasicTemplate.mel
Created September 10, 2017 10:04
MEL Template
//
// Script Name: Basic Template
//
// 2017 David Frank / Public Domain
//
/*
Helper procedures
makes maya MEL life easier
@bitinn
bitinn / TestScriptNoLocalVar.mel
Created August 23, 2017 06:13
TestScriptNoLocalVar.mel
// REMEMBER TO SOURCE THIS, NOT RUN IN THE SCRIPT EDITOR DIRECTLY
{
proc string GetTestString () {
return "TEST_STRING_#";
}
proc RunLocal1 () {
print(GetTestString());
}
@bitinn
bitinn / TestScript.mel
Created August 23, 2017 04:18
TestScript.mel
// REMEMBER TO SOURCE THIS, NOT RUN IN THE SCRIPT EDITOR DIRECTLY
{
string $TEST_STRING = "TEST_STRING_#";
proc RunLocal1 () {
print($TEST_STRING);
}
proc RunLocal2 (string $Input) {
print($Input);
@bitinn
bitinn / AMTNormalsLT.mel
Created August 13, 2017 09:23
AMT Normal Tools Lite for Mac
// AMT Normal Tools Lite
//
// Copyright (c) 2017 Adnan Chaumette "fansub"
// http://polycount.com/discussion/183993/maya-free-face-weighted-vertex-normals-tool/
//
// Re-indented and Tested on Mac with Maya LT 2017, by David Frank "bitinn"
// Install guide for mac users:
//
// Put "AMTNormalsLT" folder under this folder
@bitinn
bitinn / .bash_profile
Last active November 22, 2016 17:25
Using kneesocks as bash command
alias npm-proxy='launchctl start com.dev.proxy'
alias npm-direct='launchctl stop com.dev.proxy; npm config delete proxy; npm config delete https-proxy'
@bitinn
bitinn / namebench1.html
Last active March 30, 2016 19:52
namebench test 20160331
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>namebench: 2016-03-31 01:20:47.905848</title>
<style type="text/css">
body {
font-family: Helvetica, Arial, sans-serif;
background-color: #bbb;
background-image: -moz-linear-gradient(0% 100% 90deg, #e5e5e5, #666, #e5e5e5 99%);
@bitinn
bitinn / 0.md
Last active August 29, 2015 14:23
Azure VM A2 vs Linode 1024 (using mongoperf)

Just to showcase the performance difference between a simple local SSD (Linode) and more complex RAID0 (Azure).

TL;DR: always go with SSD.

@bitinn
bitinn / note-on-osx-pingfang.md
Last active November 3, 2022 13:47
A few notes on using OS X 10.11 (El Capitan)'s new Chinese font: PingFang (苹方/萍方).

What's this about?

OS X 10.11, aka El Capitan, comes with a new system font for Chinese users, named PingFang, it includes 6 weights for both Simplified and Traditional Chinese. The same font also appear on iOS 9 as the default UI font, though Apple didn't mention it explicitly.

How to get it?

If you are in Apple Developer Program (costs 99 USD a year), then you can get them now at their developer resource site, otherwise you can wait for their public beta to come out in July or wait for the public release this fall (a free upgrade like previous release).

Or you can get PingFang.ttc from your developer friends, though you are probably violating its font license one way or another, but I am not a lawyer so freedom to you.