Skip to content

Instantly share code, notes, and snippets.

@lucasvinbr
lucasvinbr / ToEmmyLuaHook.lua
Last active December 28, 2022 19:27
Urho3d tolua++ hook that generates a .lua file that can be used as a library in sumneko's lua plugin for vscode ( https://github.com/sumneko/lua-language-server )
--
-- Copyright (c) 2008-2020 the Urho3D project.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
@lucasvinbr
lucasvinbr / urhoproj-setup-symlinks.lua
Created August 8, 2022 04:49
Set up folder junctions (hard symlinks) for easier use of the base urho3d editor with other projects' assets
@lucasvinbr
lucasvinbr / export-sheets-as-csv.gs
Last active July 15, 2022 21:03 — forked from marcellusmontilla/export-named-sheet-as-csv.gs
Google apps script to export all sheets as csv files
/*
* script to export data of all sheets as csv files
* files are stored in a Google Drive folder
* files named according to the name of the sheets
* original author: Michael Derazon (https://gist.github.com/mderazon/9655893)
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var csvMenuEntries = [{name: "Save as CSV", functionName: "saveAsCSV"}];
@lucasvinbr
lucasvinbr / image_set_scale.py
Created December 18, 2018 02:28
Blender: Set Image Scale
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@lucasvinbr
lucasvinbr / remapMaterialsByImage.py
Created November 16, 2018 22:11
Blender: Remap Materials Based on Main Texture Image
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the