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
" =====================================================================
" Initialize: {{{1
set nocp
filetype plugin indent on
set runtimepath^=~/.vim/bundle/ctrlp.vim
syntax on
set wildignore+=*/tmp/*,*/log/*,*/pg_dumps/*,*.so,*.swp,*.zip,*.png,*.jpg,*/public/*,*/chef/*,*/vendor/*,*/node_modules/* " MacOSX/Linux
EmberJS/TodoMVC/Adding200Items/Sync : 1702.346000005491 ms
EmberJS/TodoMVC/Adding200Items/Async : 25.54499999678228 ms
EmberJS/TodoMVC/CompletingAllItems/Sync : 7.547000001068227 ms
EmberJS/TodoMVC/CompletingAllItems/Async : 283.12500000174623 ms
EmberJS/TodoMVC/DeletingItems/Sync : 1343.2750000065425 ms
EmberJS/TodoMVC/DeletingItems/Async : 11.830000003101304 ms
EmberJS/TodoMVC : 3373.6680000147317 ms
React/TodoMVC/Adding200Items/Sync : 874.4910000095842 ms
Delivered-To: reply+6e6e943ffdf89039b9abf4d3f35e320d@discourse.org
Received: by 10.76.68.164 with SMTP id x4csp9950oat;
Wed, 20 Nov 2013 09:37:45 -0800 (PST)
X-Received: by 10.236.77.231 with SMTP id d67mr1031178yhe.113.1384969065068;
Wed, 20 Nov 2013 09:37:45 -0800 (PST)
Return-Path: <robin.ward@gmail.com>
Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [2607:f8b0:4001:c03::236])
by mx.google.com with ESMTPS id d49si17069878yhn.5.2013.11.20.09.37.44
for <reply+6e6e943ffdf89039b9abf4d3f35e320d@discourse.org>