Skip to content

Instantly share code, notes, and snippets.

View LeonBlade's full-sized avatar
🌙

James Stine LeonBlade

🌙
View GitHub Profile
'use strict';
// UCU - The Unending Coil Of Bahamut (Ultimate)
// localization:
// de: partial timeline, partial triggers
// fr: partial timeline, partial triggers
// ja: partial timeline, partial triggers
[{
zoneRegex: /The Unending Coil Of Bahamut \(Ultimate\)/,
timelineFile: 'unending_coil_ultimate.txt',
@LeonBlade
LeonBlade / ucob-nael-divebombs.js
Last active January 19, 2020 04:16
Cactbot Trigger for UCoB Nael Divebombs
/*
This trigger relies on the unending_coil_ultimate.js triggers to be used.
Those triggers give us access to data.naelMarks which are literally waymark
positions that seemingly never actually get used (until now).
The coords array is for the cardinal and intercardinal directions that each
divebomb placement area can be. This means that two waymarks can and will
overlap. It's possible to nudge C if desired to make it more obvious, but
it hasn't been a major issue for my group. You can even nudge it up in the
Y coordinate if you want as waymarks can float by doing this.
@LeonBlade
LeonBlade / export_fbx_bin.py
Created June 9, 2018 12:25
A modified version of the FBX binary export script for FFXV mods.
# ##### 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
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Root>
<DX9>
<StructureAddress>11B2FA0</StructureAddress>
<ZoomCurrent>108</ZoomCurrent>
<ZoomMax>110</ZoomMax>
<FovCurrent>114</FovCurrent>
<FovMax>11C</FovMax>
</DX9>
<DX11>
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(255,0,128,0.5)',
// ==UserScript==
// @name FFXIV Hunts Path Finder Autocomplete
// @namespace http://github.com/LeonBlade
// @version 1.1
// @description Add a search box using datalist
// @author James Stine (LeonBlade)
// @grant none
// @match http://www.ffxivhuntspath.co.uk/
// @run-at document-end
// @include http://www.ffxivhuntspath.co.uk/
// ==UserScript==
// @name FFXIV Subreddit Theme Fix
// @namespace http://github.com/LeonBlade
// @version 0.2
// @description Fix the FFXIV subreddit theme with annoying overflow elements
// @author James Stine (LeonBlade)
// @grant none
// @match /^https?://www\.reddit\.com\/r\/ffxiv$/
// @run-at document-end
// @include /^https?://www\.reddit\.com\/r\/ffxiv$/
@LeonBlade
LeonBlade / gist:1981421
Created March 5, 2012 21:55
PHP for getting browser info
<?php
// get browser data from useragent string for tracking
function _getBrowserInfo() {
// grab the useragent
$ua = $_SERVER['HTTP_USER_AGENT'];
// list of browsers we want to match
$browsers = array(
"firefox",
"msie",
@LeonBlade
LeonBlade / dabblet.css
Created January 16, 2012 02:33 — forked from andriynoble/dabblet.css
Register
/* Register */
* {
padding: 0;
margin: 0;
}
body {
background-color: whiteSmoke;
font-family: Tahoma;
}
div#betaregister {
@LeonBlade
LeonBlade / compress.sh
Created October 11, 2011 12:00
Compresses Source Files of Whitespace
#!/bin/sh
for i in $@
do
cat $i | tr '\n' ' ' | sed 's/[[:blank:]]//g' > $i
done