Skip to content

Instantly share code, notes, and snippets.

View giangm9's full-sized avatar
💪
Available online

GiangM9 giangm9

💪
Available online
View GitHub Profile
# MIT LICENSE
# Authored by iFire#6518 and alexfreyre#1663
# This code ONLY apply to a mesh and simulations with ONLY the same vertex number
import bpy
#Converts a MeshCache or Cloth modifiers to ShapeKeys
frame = bpy.context.scene.frame_start
for frame in range(bpy.context.scene.frame_end + 1):
bpy.context.scene.frame_current = frame
git log --reverse --date=short --pretty=format:"%ad - %s%d" --date=short --date-order --author="$(git config user.name)" --branches --since="last month"
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active July 1, 2024 11:25
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@983
983 / frag.glsl
Created November 14, 2015 09:39
hsv rgb conversion glsl shader
// because http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl is often down
vec3 rgb2hsv(vec3 c)
{
vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));
vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));
float d = q.x - min(q.w, q.y);
float e = 1.0e-10;
@martynjarvis
martynjarvis / dnsapi.dll.md
Last active November 5, 2022 03:20
Fix dnsapi.dll error when running EVE online with Wine

Problem

Launcher would correctly load. However, the game would not launch from the launcher.

The following line was seen in output

err:module:import_dll Library DNSAPI.dll

Solution

@spearwolf
spearwolf / .eslintrc
Last active January 26, 2021 16:06
vim-autoformat configuration for using eslint to reformat javascript with vim
{
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true,
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
@luanvuhlu
luanvuhlu / ReadMoney.java
Last active March 27, 2024 08:54
Read money from number to Vietnam Dong text by Java and Javascript
private String readGroup(String group){
String[] readDigit = {" Không", " Một", " Hai", " Ba", " Bốn", " Năm", " Sáu", " Bảy", " Tám", " Chín" };
String temp = "";
if (group == "000") return "";
//read number hundreds
temp = readDigit[Integer.parseInt(group.substring(0,1))] + " Trăm";
//read number tens
if (group.substring(1,2).equals("0"))
if (group.substring(2,3).equals("0")) return temp;
else
@radist2s
radist2s / canvasMatte.html
Last active April 23, 2024 16:31
Simple Canvas cliping with anti aliasing by alpha channel of mask image or canvas shape.
<canvas id="show" width="300" height="300"></canvas>
@xaethos
xaethos / lolcat.rb
Created June 22, 2012 05:43
adb logcat with color and filter by package/process name
#!/usr/bin/env ruby
require 'colorize'
require 'optparse'
class LOLCat
def initialize options = {}
@tagspecs = options[:tagspecs] || []
@whitelist = options[:processes] || []
@processes = Hash.new
end
@johnfredcee
johnfredcee / bvh_read.py
Created March 9, 2012 16:57
bvh file parser (tested w Python2.6)
import re
bvh_file = "Example1.bvh"
def identifier(scanner, token): return "IDENT", token
def operator(scanner, token): return "OPERATOR", token
def digit(scanner, token): return "DIGIT", token
def open_brace(scanner, token): return "OPEN_BRACE", token
def close_brace(scanner, token): return "CLOSE_BRACE", token