This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /proc/cpuinfo && pinout && cat /etc/os-release && uname -a # && python3 --version && deepspeech --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pandoc --extract-media=. -f docx -t gfm -o README.md inp.docx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(" ")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To allow script to be executed on double click | |
# https://stackoverflow.com/a/30644946/1366368 | |
# To sign script | |
# https://adamtheautomator.com/how-to-sign-powershell-script/ | |
# To automatically elevate script to admin privs, I used this code fromn https://superuser.com/a/532109/222708 | |
param([switch]$Elevated) | |
function Test-Admin { | |
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent()) |
OlderNewer