Skip to content

Instantly share code, notes, and snippets.

@eviltrout
eviltrout / scene-importer.gd
Last active August 1, 2023 18:49
Godot Import Script to automatically find and create materials
# A Godot Post Import script to automatically build or find materials for things.
# From this video: https://www.youtube.com/watch?v=v23xZHJdtLE
# Not meant as a drop in for your project - you will likely have to modify it to get it to work.
# MIT License.
@tool
extends EditorScenePostImport
func _post_import(scene):
@eviltrout
eviltrout / skellig-export.py
Created August 1, 2023 18:44
Blender Script for Automatically Copying files to a Godot Game Project
# This accompanies my video here: https://www.youtube.com/watch?v=v23xZHJdtLE
# Mainly meant for learning purposes not for something to use unless you really know what
# you're doing. Licensed as MIT.
import bpy
import pathlib
import os
SKELLIG_MESH_DIR = "C:\\YOUR_GAME_PATH\\meshes\\"
ASSET_PATH_SEGMENT = "blender\\"
@eviltrout
eviltrout / cla.md
Last active February 12, 2020 18:49 — forked from xfalcox/cla.md
Discourse Contributor License Agreement

Discourse Contributor License Agreement

The document below clarifies the terms under which You (the copyright owner or legal entity authorized by the copyright owner), may make "The Contributions" (software, bug fixes, configuration changes, documentation, or any other materials) to "The Work" (Discourse/Discourse). This license protects You, "The Company" (Civilized Discourse Construction Kit, Inc.) and licensees; it does not change your rights to use your own contributions for any other purpose.

You and "The Company" (Civilized Discourse Construction Kit, Inc.) agree:

• You grant to "The Company" (Civilized Discourse Construction Kit, Inc.) a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, relicenseable, transferable license under all of Your relevant intellectual property rights, to use, copy, prepare derivative works of, distribute and publicly perform and display "The Contributions" on any licensing terms, including without limitation: (a) open source licenses like the GNU Gener

# frozen_string_literal: true
require 'benchmark/ips'
class Key
def a?
true
end
def b?
### Keybase proof
I hereby claim:
* I am eviltrout on github.
* I am eviltrout (https://keybase.io/eviltrout) on keybase.
* I have a public key whose fingerprint is 0AAD 3ED7 A2F2 84ED 1D51 4F4F 0C8B D124 983D D654
To claim this, I am signing this object:
describe Synchronizer do
class TestSynchorizer < Synchronizer
def initialize(can_sync)
@can_sync = can_sync
@performed = false
end
def can_sync?
@can_sync
#!/bin/sh
# This pre-commit hook will prompt for every file that contains a `console.log`, `debugger`
# or `puts` statement. This should avoid stupidly commiting debugging information :)
exec < /dev/tty
confirm() {
echo "${1:-Are you sure? [y/N]}"
read -r response
git grep "plugin-outlet"
app/assets/javascripts/admin/templates/admin.hbs: {{plugin-outlet "admin-menu" tagName="li"}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{plugin-outlet "evil-trout"}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{#plugin-outlet "hello-world"}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{/plugin-outlet}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6:Ember.HTMLBars._registerHelper('plugin-outlet', function(params, hash, options, env) {
app/assets/javascripts/discourse/templates/components/edit-category-settings.hbs:{{plugin-outlet "category-custom-settings"}}
app/assets/javascripts/discourse/templates/components/topic-category.hbs:{{plugin-outlet "topic-category"}}
app/assets/javascripts/discourse/templates/composer.hbs: {{plugin-outlet "composer-open"}}
app/assets/javascripts/discourse/templates/composer.hbs: {{plugin-outlet "composer-fields"}}
orker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)
jhead worker: `jhead` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)
jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options)
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)
.pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)
jhead worker: `jhead` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)
jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim
require("./reset.scss");
require("./crotchzombie.scss");
$(window).ready(function() {
const $logo = $('#logo');
let played = false;
function playAudio() {