Skip to content

Instantly share code, notes, and snippets.

View TehShrike's full-sized avatar
🕺
Groovy.

Josh Duff TehShrike

🕺
Groovy.
View GitHub Profile

Stream of consciousness:

  • I'm not sure whether or not changing a hex would reset its level (looks like it does)
  • I'm still not sure what all is different about the blue (armored?) units. I can push them, but not hit them with normal (non-upgraded) weapons?
  • ooooh my goodness I just realized that I can click on the current tile to stay there and not have to move in front of an enemy unit yesssssssssss
  • wait, does the dark-background upgrade effect affect the tile I'm clicking on, or the one that I'm standing on (the one that levelled up)?
  • ok, looks like armor does mean "can only be killed by pushing off the map, or specifically upgraded weapons"

Thoughts after playing for 30 minutes: Please release this game for iPad I will pay whatever

@TehShrike
TehShrike / .gitconfig
Created July 7, 2016 15:36 — forked from saibotsivad/.gitconfig
Mac .profile settings for bash
[color]
sh = auto
ui = auto
pager = true
[user]
name = User Name
email = [email protected]
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[core]
@TehShrike
TehShrike / one-to-many-zip.js
Last active February 24, 2017 20:38
One-to-many zip
const parent = [
{ name: 'cool dad', coolness: 3 },
{ name: 'cool cat', coolness: 7 }
]
const children = [
{ name: 'bobby', coolness: 1 },
{ name: 'billy', coolness: 3 },
{ name: 'bubba', coolness: 5 },
{ name: 'benji', coolness: 6 }
@TehShrike
TehShrike / new-city-catechism.md
Last active July 15, 2017 17:00
New City Catechism

From New City Catechism website

Both adult (A) and child (C) answers.

  1. What is our only hope in life and death?
    • A: That we are not our own but belong, body and soul, both in life and death, to God and to our Savior Jesus Christ.
    • C: That we are not our own but belong to God.
  2. What is God?
    • A: God is the creator and sustainer of everyone and everything. He is eternal, infinite, and unchangeable in his power and perfection, goodness and glory, wisdom, justice, and truth. Nothing happens except through him and by his will.
    • C: God is the creator of everyone and everything.
@TehShrike
TehShrike / covenant-vows.md
Created August 9, 2017 21:33
Covenant Vows
  1. Do you believe the Bible, consisting of the Old and New Testaments, to be the inspired and inerrant Word of God, and its doctrine of salvation through faith in Jesus Christ to be the perfect and only true way for a man to be saved? Do you?
  2. Do you confess that because of your sinfulness, you abhor and humble yourself before God, and that you trust for salvation, not in yourself, but in the Lord Jesus Christ alone? Do you?
  3. Do you acknowledge Jesus Christ as your sovereign Lord, and do you promise, in reliance on the grace of God, to serve Him with all that is in you, to forsake the world, to mortify the deeds of the flesh, and to lead a godly life? Do you?
  4. Will you be a faithful member of this congregation, share in its worship and ministry through your prayers and gifts as you are able, offer your study and service, and so fulfill your calling to be a disciple of Jesus Christ? Will you?
  5. Will you devote yourself to the church’s teaching and fellowship, to the breaking of bread and the pra
@TehShrike
TehShrike / pure-state.js
Created November 2, 2017 15:21
PureState
let captured_deps = []
let capturing_deps = false
function refresh(node){
const depended_values = []
for (let i = 0; i < node.dependencies.length; ++i) {
depended_values.push(node.dependencies[i].value)
}
node.value = node.compute.apply(null, depended_values)
@TehShrike
TehShrike / ExampleComponent.html
Last active December 12, 2017 19:45
Mount Svelte components into elements on the page
<div class="root">
<div ref:mount class="contents"></div>
</div>
<script>
import forEach from './for-each.js'
export default {
oncreate() {
const children = this.get('children')
@TehShrike
TehShrike / q.sh
Created February 2, 2018 19:44
Get daily totals out of Toggl
# gotta remove spaces from the column names in the csv first
q -d , -H "SELECT Startdate, SUM(ROUND((((STRFTIME('%H', Endtime) * 60) + STRFTIME('%M', Endtime)) - ((STRFTIME('%H', Starttime) * 60) + STRFTIME('%M', Starttime)) * 1.0) / 60, 2)) FROM Toggl_time_entries_2018-01-16_to_2018-01-31.csv GROUP BY Startdate"
@TehShrike
TehShrike / .eslint-fixable.js
Last active February 7, 2019 23:39
Fixable eslint config
const never = [ 'warn', 'never' ]
const always = [ 'warn', 'always' ]
const asNeeded = [ 'error', 'as-needed' ]
module.exports = {
plugins: [
'html',
],
parserOptions: {
ecmaVersion: 8,
@TehShrike
TehShrike / chunk-while.js
Last active September 12, 2018 20:48
chunkWhile
const chunkWhile = (iterable, condition) => [...chunkGenerator(iterable, condition)]
function* chunkGenerator(iterable, condition) {
let currentChunk = []
for (const element of iterable) {
currentChunk.push(element)
if (!condition(element)) {
yield currentChunk
currentChunk = []
}