Skip to content

Instantly share code, notes, and snippets.

View attilam's full-sized avatar

Attila Malarik attilam

View GitHub Profile
; AutoHotkey script to get Accented characters
; character codes from https://unicodelookup.com/
; and https://www.fileformat.info/info/unicode/char/search.htm
#SingleInstance, force
#Hotstring * ? ; Expand immediately everywhere
; á
@attilam
attilam / mail.google.com.css
Created October 19, 2018 13:36
My Stylus CSS tweaks
.th td {
padding: 8px 6px;
font-weight: bold;
}
.ts {
color: #006;
}
@attilam
attilam / CreateLegacyAnimationClip.cs
Created December 6, 2018 19:37
Create Legacy AnimationClips using the Asset Menu in Unity
using System.IO;
using UnityEditor;
using UnityEngine;
public class CreateLegacyAnimationClip {
[MenuItem("Assets/Create/Animation (Legacy)", false, 402)]
public static void CreateIt()
{
AnimationClip clip = new AnimationClip();
const Parser = require('fast-xml-parser')
const he = require('he')
const createCsvWriter = require('csv-writer').createObjectCsvWriter
const fs = require('fs')
const xmlFile = fs.readFileSync('../../../Downloads/folkets_sv_en_public.xml', 'utf-8')
const options = {
attributeNamePrefix: '@_',
attrNodeName: false, // default is 'false'
let spn = document.getElementsByTagName('span')
let t, i, b
let res = ''
for(let s of spn) {
let a = 0
let cn = s.childNodes
while(a < cn.length) {
let node = cn[a]
switch(node.nodeName) {
@attilam
attilam / rs_mat.py
Last active June 5, 2023 06:44
Houdini Shelf Tool to enable the albedo texture of Quixel Bridge RedShift materials in the OGL viewport
for node in hou.selectedNodes():
if (node.type().name() != "redshift_vopnet"): continue
ptg = node.parmTemplateGroup()
folder = ptg.findFolder("RS Mat")
if (folder): continue
node.layoutChildren()
@attilam
attilam / midi-beats.py
Created September 6, 2024 19:23
Four on the Floor
# install: `pip install mido python-rtmidi`
import mido
counter = 0
step = 1
beat = 1
bar = 1
viz = "+---+---+---+---"
@attilam
attilam / kanata.kbd
Created November 19, 2024 21:37
My kanata config with homerow mod / navigation / programming layers
(defcfg
process-unmapped-keys yes
)
(defsrc
q w e r t y u i o p
a s d f g h j k l ;
spc `
)
(defvar