Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

James Turnbull jamtur01

💭
I may be slow to respond.
View GitHub Profile
View warrior_spellmenu.lua
local ConROC_Warrior, ids = ...;
local lastFrame = 0;
local lastDebuff = 0;
local lastRage = 0;
local lastStun = 0;
local plvl = UnitLevel('player');
local defaults = {
View warlock_spellmenu.lua
local ConROC_Warlock, ids = ...;
local lastFrame = 0;
local lastDemon = 0;
local lastCurse = 0;
local lastDebuff = 0;
local lastSpell = 0;
local lastOption = 0;
local plvl = UnitLevel('player');
View buttons.lua
ConROC.Spells = {};
ConROC.Keybinds = {};
ConROC.DefSpells = {};
ConROC.Flags = {};
ConROC.SpellsGlowing = {};
ConROC.WindowsGlowing = {};
ConROC.DefGlowing = {};
ConROC.DefWindowsGlowing = {};
ConROC.DamageFramePool = {};
ConROC.DamageFrames = {};
View gist:48eaf19146dc97482008eeb01f43a4d9
Bordertown (Finnish)
Trapped (icelandic)
The Bureau (French)
Deutschland 83
Giri/Haji
Vera
Wallander
Young Wallenberg
Collateral
Detective Montalbano
View gist:31b845b549a8dfe9f725e3cf1f97bcac
ot@5b32dfb7a25f:/var/lib/apt/lists# cat repositories.timber.io_public_vector-nightly_deb_ubuntu_dists_xenial_main_binary-amd64_Packages
Package: vector
Version: 0.11.0
Architecture: amd64
Homepage: https://vector.dev
Priority: optional
Standards-Version: 3.9.4
Maintainer: Vector Contributors <vector@timber.io>
Installed-Size: 116805
Depends:
@jamtur01
jamtur01 / code.fish
Created Jan 27, 2021
Fish shell function to launch Visual Studio Code - Insiders
View code.fish
function code --wraps='/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/bin/code' --description 'alias code /Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/bin/code'
/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/Resources/app/bin/code $argv;
end
View gist:043c13fabdf9721ecad3da2395bd2b85
✖ make package-deb-x86_64 (2) (1h 17m 48s 786ms) ┃
cross build \
--release \
--target x86_64-unknown-linux-gnu \
--no-default-features \
--features target-x86_64-unknown-linux-gnu
Compiling vector v0.11.0 (/project)
error: could not compile `vector`.
Caused by:
@jamtur01
jamtur01 / ExportKindle.js
Last active Jun 19, 2020 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
View ExportKindle.js
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,ISBN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
View gist:de505c16720a8f1f13d1e910069ff04e
`d8t0eaqyfpMIxsf8wc51eKzbvZKaDpLIztsNwkUjj4xQQBlvTnvXoHYEr2nP2VOFsfLggvQXjrgijKHQuAWcdNQCqjOtrcvhtsDojzHeqlvczXsulNspKQYtHSmPY6OQstuvQMQs1KPImDWJOII7sOUmQRRKnsvvTvQQWMvLY2PIQ(Su6RuvrtJQQCCs03OsEMeQrtfA8sGtsaEUkxtvY5jOoejugfvu53envt7ewnH8ZclsqN1NdotnH1r7eAFuznCeYNGfIqcWhHENFBwQaHvtOcxGJslH264siWr2YhOO3T84uFZbec5Xgb8oHvrifgJv6hS9AK6J2jSAANWQj03mhKHiT0Jb8mATYLhEgAPr2xEaXz8uQeH1rOVzoidrAPhd4zOLTw5YdpdT0i7lpG4mEQCryftOVzo4yLlwB4mYWYhdBGX2YWpJmC52fEgpLQWZqVuvjm)rOVzo4yLlwB4meXf0CWHBK9LhqCgw(yydm2wg(zKHl3VWZqVuvjSxe6BMdow5I1godrCbnhC4gzF5beNHLpg2aJTLHFgz8YDDfEgk2l31vesqP0tWM(gGqvvvveYbw4IyvEoM2jGqiG98)sBGgPMqiw5I1qZOsOTYduymwjTtaHCGfERLVJ2jSAc9HX2YaR5EHZqKw64y7flYjECsmH1rOVzo4yLlwB4mYWYhdBGX2YWV4mYOQKB8mE666WZqVuvjSIj03JHbGXiugIuKhdWyBzaxl5cAo4etaH2AzfgJvs7ewnH(M5GJvUyTHZ4P6bpd9svLac5t2xEasGeqyD0oHvtOVzoidrAPhd4z0ALlp8m0sJSV8aIZ4PujcRJqFZCqgI0spgWZqlBTYLhEgAPr2xEaXz8u5IWkMqFpggagJqzisrEmaJTLbCTKlO5GtmH5pc9nZbhRCXAdNXt1dEg6LQkH9IqFZCWXkxS2WzKHLpg2aJTLHFgz4YTl8m8TShNH8TmkSvQf25kA0cLrNIJNXtxxhEgpLQWZqVuvjShc9nZbhRCXAdN
@jamtur01
jamtur01 / block_personal_appts
Created Oct 10, 2019 — forked from ttrahan/block_personal_appts
Google Apps Script to automatically create, edit and delete events on work calendar for personal calendar events. Instructions on how to set up can be found at https://medium.com/@willroman/auto-block-time-on-your-work-google-calendar-for-your-personal-events-2a752ae91dab
View block_personal_appts
function sync() {
var id="XXXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time
var secondaryCal=CalendarApp.getCalendarById(id);
var secondaryEvents=secondaryCal.getEvents(today,enddate);