Skip to content

Instantly share code, notes, and snippets.

View martinlindhe's full-sized avatar
😸

Martin Lindhe martinlindhe

😸
View GitHub Profile
-- self-contained script that draws an imgui window and shows "HP / MANA / currently casting spell / target Name" for team
-- use MQ2DanNet to query data
-- primary used on main toon for debugging purposes.
local mq = require("mq")
local log = require("knightlinc/Write")
require("ezmq")
-- needed at least once to get mqoverlay showing
| reads tradeskills.ini and auto banks all stuff you should have
Sub Main
/echo tradeskill-autobank.mac started
/declare MaxInvSlots int outer 10
| XXX TODO abort w error if bank wnd is not opened
-- write current char info to a ini file for later consumption by another tool
--
--
-- raw stats: int str etc, hp mana
-- all item slots and content
-- all bags & bank content (so u can search inventories on resulting webpage)
-- TODO: can we record output from /keys to file?
@martinlindhe
martinlindhe / Alert.vue
Last active May 19, 2022 14:31
jasmine + karma for vue test
<style>
.Alert {
padding: 2em;
}
.Alert-Success {
border: 10px solid green;
}
.Alert-Error {
border: 10px solid red;
}
# WIZ 1.5 pre-quest
[ ] Hail Talwyn Flamecaller in Lavastorms
eq.set_global("wiz_epic_pre","1",5,"F");
[ ] Say "test of intelligence"
e.other:SummonItem(11197); -- Item: Old Parchment
eq.set_global("wiz_test_intel","1",5,"F"); -- Start Test of Intelligence
@martinlindhe
martinlindhe / App.vue
Created December 10, 2015 23:03
vue.js example
<template>
<div>
<nav-bar></nav-bar>
<cookie-info></cookie-info>
<router-view></router-view>
<corporate-footer></corporate-footer>
</div>
<template>
<div v-for="lang in languages">
<language :name="lang.name" :code="lang.code"></language>
{{ $t('nav.about') }}
</div>
</template>
<script>
import Vue from 'vue';
@martinlindhe
martinlindhe / .gitconfig
Last active December 6, 2018 22:53
.gitconfig fat fingers [alias] section qwerty keyboard. ymmv
# alias block from https://gist.github.com/martinlindhe/4c594db58b314d4c780b8fe614e73580
[alias]
a = add
ad = add
adfd = add
addd = add
dd = add
tadd = add
afdd = add
affd = add
# powershell session init
# ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Remove-Item Alias:wget
Remove-Item Alias:curl
del alias:diff -Force # force remove because its read-only
function Prompt {
# make prompt yellow
$promptString = "" + $(Get-Location) + ">"
@martinlindhe
martinlindhe / Behat3Test.php
Last active October 30, 2018 23:39
run Behat 3 tests as a phpunit script (to include behat in code coverage count)
<?php
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Behat\Behat\ApplicationFactory;
class BehatTest extends TestCase
{
/**
* @group Behat