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
| # decode sprite sheets and maps from the game Tyrian | |
| # Game data: https://camanis.net/tyrian/tyrian21.zip | |
| # Source code: https://github.com/opentyrian/opentyrian | |
| import struct | |
| import glob | |
| import math | |
| import os.path | |
| from PIL import Image | |
| import xml.etree.ElementTree as ET |
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
| // ==UserScript== | |
| // @name QuarmDbMap | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @downloadURL https://gist.githubusercontent.com/nickgal/00ee10fbf9be92a324ff1514396d029f/raw/QuarmDbMap.user.js | |
| // @updateURL https://gist.githubusercontent.com/nickgal/00ee10fbf9be92a324ff1514396d029f/raw/QuarmDbMap.user.js | |
| // @description Adds external map links to QuarmDB.com | |
| // @author nickgal | |
| // @match https://quarmdb.com/* | |
| // @match https://www.quarmdb.com/* |
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
| meta: | |
| id: spdat | |
| title: EverQuest 728 SPDat.eff | |
| file-extension: eff | |
| endian: le | |
| seq: | |
| - id: spells | |
| size: 560 | |
| type: spell(_index) | |
| repeat: eos |
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
| require "bundler/inline" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "activerecord", require: "active_record" | |
| gem "activejob", require: "active_job" | |
| gem "sqlite3" | |
| gem "searchkick", git: "https://github.com/ankane/searchkick.git" | |
| 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
| javascript:void%20function(){src=jQuery(%22.fp-item-image-large%20img%22).attr(%22src%22),url=new%20URL(src),urlParams=new%20URLSearchParams(url.search),imageUrl=urlParams.get(%22url%22),originalUrl=imageUrl.replace(%22_large.%22,%22_original.%22),$(%22%3Cdiv%20class=\%22modal%20fp-store-confirm-modal%20fade\%22%20tabindex=\%22-1\%22%3E%20%3Cdiv%20class=\%22modal-dialog\%22%3E%20%3Cdiv%20class=\%22modal-content\%22%3E%20%3Cdiv%20class=\%22modal-header%20fp-heading\%22%3E%20%3Cbutton%20type=\%22button\%22%20class=\%22close\%22%20data-dismiss=\%22modal\%22%3E%3Cspan%20aria-hidden=\%22true\%22%3E%26times;%3C/span%3E%3C/button%3E%20%3Ca%20href=\%22%23\%22%20class=\%22pull-right\%22%20style=\%22margin-right:%2010px;color:%20%23000;opacity:%200.2;\%22%3E%3Ci%20class=\%22glyphicon%20glyphicon-resize-full\%22%3E%3C/i%3E%3C/a%3E%20%3Ch3%20style=\%22margin:%200%2050px%200%200;white-space:%20nowrap;text-overflow:%20ellipsis;overflow:%20hidden;\%22%3E%3Cspan%3E%22+document.title+%22%3C/span%3E%3C/h3%3E%20%3C/div%3E%20%3C |
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
| // ==UserScript== | |
| // @name TAKP Inventory Search | |
| // @namespace http://nickgal.com/ | |
| // @version 0.2 | |
| // @description Search for TAKP character inventories. | |
| // @author You | |
| // @match https://www.takproject.net/forums/account.php | |
| // @grant none | |
| // ==/UserScript== |
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
| # An example of elasticsearch & Tire setup for ActiveRecord associations. | |
| # | |
| # A `Book has_many :chapters` scenario, with mapping and JSON serialization | |
| # for indexing associated models. | |
| # | |
| # Demonstrates three important caveats as of now: | |
| # | |
| # 1. You you have to use `touch: true` in the `belongs_to` declaration, | |
| # to automatically notify the parent model about the update. | |
| # |
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
| #!/bin/sh | |
| # A) Run ./iphone-screenshot | |
| # B) Type in the screenshot filename | |
| # C) Click on the iPhone simulator | |
| OUTPUTDIR=~/Desktop | |
| TEMPFILE=iphone_screenshot_temp.png | |
| echo "output filename:\c" |