Skip to content

Instantly share code, notes, and snippets.

View QaDeS's full-sized avatar

Michael Klaus QaDeS

  • Freiburg, germany
View GitHub Profile
@QaDeS
QaDeS / mixamo_importer.gd
Last active July 2, 2023 04:30
PoC: Just set the Dir to a folder of exported Mixamo FBX and have Characters and Animations imported automatically. Feedback welcome!
@tool
extends Node3D
@export_dir var dir :
set(value):
perform_import(value)
@export var bone_map : BoneMap
@export var create_Animation_tree : bool = false
@export var hip : String = "Hips"
@export var loops = [
@QaDeS
QaDeS / aws
Last active October 23, 2020 10:53
Grok patterns to parse AWS access logs
IAMUSERID %{NUMBER:iam_user_id}
IAMUSERNAME [a-zA-Z0-9._-]+
IAMUSER arn:aws:iam::%{IAMUSERID}:user/%{IAMUSERNAME:iam_user_name}
S3TYPE (?:OBJECT)
S3OP [a-zA-z]+
S3SOAPOPERATION (?:SOAP\.%{S3OP})
S3RESTOPERATION (?:REST\.%{S3OP}\.%{S3TYPE})
S3WEBSITEOPERATION (?:WEBSITE\.%{S3OP}\.%{S3TYPE})
S3OPERATION (?:%{S3SOAPOPERATION}|%{S3RESTOPERATION}|%{S3WEBSITEOPERATION})
@QaDeS
QaDeS / hide_address_bar.js.coffee
Created March 5, 2013 09:57
Reliably hides the address bar on mobile browsers.
hideAddressBar = ->
inScroll = false
fun = ->
return true if inScroll
inScroll = true
de = document.documentElement
h = window.outerHeight/window.devicePixelRatio
if de.scrollHeight < h
de.style.height = h + 'px'
window.scrollTo 0, 1
@QaDeS
QaDeS / base105.rb
Created May 11, 2011 21:46
Base105 Encoding using all ASCII printable characters
module Base105
EncChars = (' '..'~').to_a.flatten
DecChars = begin
dec = []
EncChars.each_with_index{ |c, i| dec[c.ord] = i }
dec
end
def self.encode(i)
result = ''