This file contains hidden or 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 find_race(name) | |
| name = name:lower() | |
| for i,v in ipairs(df.global.world.raws.creatures.all) do | |
| if v.creature_id:lower() == name:lower() then | |
| return i | |
| end | |
| end | |
| end |
This file contains hidden or 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
| CREATE SCHEMA liberated; | |
| CREATE OR REPLACE FUNCTION public.liberate() | |
| RETURNS boolean | |
| LANGUAGE plv8 | |
| AS $function$ | |
| var tables = plv8.execute( | |
| "select relname FROM pg_catalog.pg_class" | |
| + " c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace" |
This file contains hidden or 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
| /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch" |