Skip to content

Instantly share code, notes, and snippets.

View Osmiogrzesznik's full-sized avatar

SourceCowD Osmiogrzesznik

View GitHub Profile
from xml.sax.handler import property_declaration_handler
import mathutils
import bpy_extras
import bpy
from lottie import NVector
import lottie
import os
import sys
import math
from dataclasses import dataclass
@Osmiogrzesznik
Osmiogrzesznik / diyandroiddebugconsole.js
Created November 8, 2021 16:14
Quick Dirty D.I.Y. android console for debugging
if ((/android/gi).test(navigator.appVersion)) {
console = {
"_log": [],
"log": function (...params) {
let arr = params.map(x => JSON.stringify(x))
this._log.push("LOG:" + arr.join(" "));
},
"warn": function (...params) {
let arr = params.map(x => JSON.stringify(x))
this._log.push("WARN:" + arr.join(" "));
var COMPONENT_IDS = 0;
function component(width, height, color, x, y, type) {
this.type = type;
this.id = COMPONENT_IDS++;
this.CollidingWithColletion = {};
this.score = 0;
this.width = width;
this.height = height;
this.speedX = 0;
@Osmiogrzesznik
Osmiogrzesznik / pandoc.css
Created April 27, 2020 08:19 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
cat /proc/cpuinfo && pinout && cat /etc/os-release && uname -a # && python3 --version && deepspeech --version
@Osmiogrzesznik
Osmiogrzesznik / snipsSuperTTS.sh
Created April 4, 2020 21:09 — forked from DanBmh/snipsSuperTTS.sh
One TTS to rule them all
#! /usr/bin/env bash
# By Psycho and Others
# Shell script to handle different TTS and online / offline connectivity
# This bash script can be set as a custom TTS for snips but also called directly from your skills
# a great way to give more than one personality to your assistant
# Original script: https://gist.github.com/Psychokiller1888/cf10af3220b5cd6d9c92c709c6af92c2
# This script: https://gist.github.com/DanBmh/1cf91324f1eb1ddf109937fc3bd6b577
function saveText(text, filename) {
var a = document.createElement('a');
a.setAttribute('href', 'data:text/plain;charset=utf-u,' + encodeURIComponent(text));
a.setAttribute('download', filename);
a.click();
}
@Osmiogrzesznik
Osmiogrzesznik / pandoc to readme
Last active April 27, 2020 08:20
pandoc for creating github md from docx
pandoc --extract-media=. -f docx -t gfm -o README.md inp.docx
@Osmiogrzesznik
Osmiogrzesznik / insertMultiFileWCap.vba
Last active February 18, 2020 20:55
opens dialog, all selected files are inserted with captions containing chapter indices - filename as the caption content
Sub InsertMultipleImages()
Dim fd As FileDialog
Dim oTbl As Table
Dim oILS As InlineShape
Dim oRng As Range
Dim rngHead As Range
Dim vrtSelectedItem As Variant