Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Matthew Burfield Matthew-Burfield

🏠
Working from home
View GitHub Profile
View webpack.test.stats2
{
"hash": "7aea43f473a03e1315e6",
"version": "5.23.0",
"time": 3059,
"builtAt": 1613763466730,
"publicPath": "auto",
"outputPath": "/home/matthew/Development/webpack/dist",
"assetsByChunkName": {
"index": ["index.bundle.js"],
"another": ["another.bundle.js"]
View webpack.test.stats
{
"hash": "ebac517150268511e705",
"version": "5.23.0",
"time": 2114,
"builtAt": 1613762996053,
"publicPath": "auto",
"outputPath": "/home/matthew/Development/webpack/dist",
"assetsByChunkName": {
"index": ["index.bundle.js"],
"another": ["another.bundle.js"]
View custom_theme_template.vim
" Vim colorscheme template file
" Author: Matthew Burfield <burfie@hotmail.com>
" Maintainer: Matthew Burfield <burfie@hotmail.com>
" Notes: To check the meaning of the highlight groups, :help 'highlight'
" --------------------------------
" set background=dark
" - or ---------------------------
" set background=light
" --------------------------------
@Matthew-Burfield
Matthew-Burfield / flags.html
Created Jun 10, 2017
force directed graph flags
View flags.html
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Show National Contiguity With A Force Directed Graph</title>
<link rel="stylesheet" href="flags.css">
<style>
@Matthew-Burfield
Matthew-Burfield / imgur.js
Created Apr 25, 2017 — forked from cecilemuller/imgur.js
Search images using the Imgur API
View imgur.js
'use strict';
/* global XMLHttpRequest */
/* global process.env.API_IMGUR */
const querystring = require('querystring');
/**
* Fetches a page of results from the Imgur API.
*
* @param {String} options.q Query
View magikcraft.io.Burfield.Spells.generateDungeon.js
const magik = magikcraft.io;
const material = org.bukkit.Material;
const player = magik.getSender();
function generateDungeon() {
const X = "X";
const array = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,X,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,X,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,X,X,0,0,0,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
View Spells-clightning.js
const magik = magikcraft.io;
function clightning(num = 10, time = 1000) {
magik.doNTimes(
castLightning,
num,
() => writeMessage(num),
time,
);
}
View Spells-clightning.js
const magik = magikcraft.io;
function clightning(num = 1, time = 100) {
magik.doNTimes(magik.shakti(), num, () => {
magik.dixit('Chain Lightning Is Finished');
}, time);
}
View Spells-polarbear.js
const magik = magikcraft.io;
function polarbear() {
const player = magik.getSender();
const loc = player.getEyeLocation()
.toVector()
.add(player.getLocation().getDirection().multiply(10))
.toLocation(player.getWorld(), player.getLocation().getYaw(), player.getLocation().getPitch());
const polarbear = org.bukkit.entity.PolarBear;
player.getWorld().spawn(loc, polarbear.class);