Skip to content

Instantly share code, notes, and snippets.

View twilson63's full-sized avatar

Tom Wilson twilson63

View GitHub Profile
@twilson63
twilson63 / README.md
Last active February 9, 2024 19:59 — forked from ropats16/ao-effect-bot.lua
Arena Debugging

Arena Game

Create a new game process

.load arena.lua

.load ao-effect.lua

.load-blueprint token
import Arweave from "arweave";
import { JWKInterface } from "arweave/node/lib/wallet";
import { LoggerFactory, WarpNodeFactory } from "warp-contracts";
import fs from "fs";
import path from "path";
import ArLocal from "arlocal";
(async () => {
const arlocal = new ArLocal(8080);
await arlocal.start();
const arweave = Arweave.init({
@twilson63
twilson63 / slack-coc.md
Last active October 1, 2021 17:27 — forked from annalee/sample-slack-coc.md
hyper-chat code of conduct

hyper-chat Code of Conduct

Welcome!

hyper-chat slack workspace is for the hyper community, the hyper community is about improving as developers to provide great products and services with anti-fragile developer tools and serivces.

The current admins are:

  • @twilson63
set ts=2
set sts=2
set et
set sw=2
call plug#begin()
Plug 'jonsmithers/vim-html-template-literals'
Plug 'pangloss/vim-javascript'
@twilson63
twilson63 / db2.js
Last active February 15, 2022 02:17
p2p Database workshop initial server code
const { Client } = require('hyperspace')
const Hyperbee = require('hyperbee')
const client = new Client()
const store = client.corestore()
const core = store.get('ee26ef1982c9f3bb3ce49adc46cbc55467ecb88779a629234af702da9965758e')
const db = new Hyperbee(core, {
keyEncoding: 'utf-8',
valueEncoding: 'json'
})
@twilson63
twilson63 / README.md
Last active May 11, 2021 16:54
API Starter Resources
@twilson63
twilson63 / README.md
Created April 29, 2019 15:53
Setup for Frontend Tests - tape - puppeteer - rollup

Testing Front End code

Testing front end code using rollup, tape-modern, and puppeteer.

These are just some notes for me to write down so that I have a good cheatsheet to set this up in the future.

Using rollup to build front end code is the way to go, it is small and provides tree shaking and the plugins are easy to manage. Using rollup to build a test bundle and using puppeteer to run the test bundle will create a chromium head browser and give you similar results as if you are running it in the browser.

Getting started

@twilson63
twilson63 / settings.json
Created March 28, 2019 16:35
My VS Code settings.json
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.tabSize": 2,
"editor.cursorStyle": "underline-thin",
"editor.hover.delay": 1000,
"editor.lightbulb.enabled": false,
"editor.matchBrackets": false,
"editor.renderLineHighlight": "none",
"editor.formatOnSave": true,
@twilson63
twilson63 / .vimrc
Created March 7, 2019 20:16
my vimrc file
call plug#begin('~/.vim/plugged')
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'drewtempelmeyer/palenight.vim'
Plug 'jxnblk/vim-mdx-js'
call plug#end()
@twilson63
twilson63 / README.md
Last active January 17, 2019 15:54
Sharing files with dat

Sharing Files with dat

The datproject is a p2p protocol that enables users to exchange information without having to use a centralized platform, as long as you have an internet connection, you can use the dat protocol.

In this post, we will walk through sharing files using the dat cli.

How to install the dat cli

First you will need NodeJS, you can download and install node from https://nodejs.org