Skip to content

Instantly share code, notes, and snippets.

The Jared Wilcurt TheJaredWilcurt

Block or report user

Report or block TheJaredWilcurt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example.js
export const mutations = {
/**
* Sets the snackbar values in state
* @param {object} state The state of the Vuex store
* @param {object} payload Settings for snackbar, including message and color
*/
setSnack: function (state, payload) {
const allowedColors = [
'error',
'success',
@TheJaredWilcurt
TheJaredWilcurt / v-for.md
Created Feb 3, 2019
v-for keys best practice
View v-for.md

If you just list the index number then the keys are not unique:

<template>
  <!-- keys will be 0, 1, 2... -->
  <div v-for="(row, rowIndex) in rows" :key="rowIndex">
    <!-- keys will be 0, 1, 2... -->
    <div v-for="(cell, cellIndex) in row.cells" :key="cellIndex">
    </div>
  </div>
</template>
View emotracker hud commands.js
// Commands come from the "codes" value in the items.json file. No clue which ones do and don't work.
// bow
!hud bow
// silver arrows
!hud silverarrows
!hud silvers
// bow and silver arrows
!hud bowandarrows
// Bombs
View eric.js
var csv = require('csv');
var ejs = require('ejs');
var fs = require('fs');
var assert = require('assert');
var path = require('path');
//ejs will be using {{ and }} for escapements
ejs.open ='{{';
ejs.close ='}}';
View data.json
{"v":"4.5.9","fr":30,"ip":0,"op":300,"w":300,"h":300,"ddd":0,"assets":[],"layers":[{"ddd":0,"ind":0,"ty":3,"nm":"Null 1","ks":{"o":{"a":0,"k":0},"r":{"a":0,"k":0},"p":{"a":0,"k":[150,150,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[216,216,100]}},"ao":0,"ip":0,"op":600,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":1,"ty":4,"nm":"big eye","parent":5,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[80.791,59.111,0]},"a":{"a":0,"k":[3.625,9.084,0]},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":105,"s":[100,100,100],"e":[100,5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":108,"s":[100,5,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"
View data.json
{"v":"4.5.9","fr":30,"ip":0,"op":300,"w":1360,"h":768,"ddd":0,"assets":[],"layers":[{"ddd":0,"ind":0,"ty":3,"nm":"Null 1","ks":{"o":{"a":0,"k":0},"r":{"a":0,"k":0},"p":{"a":0,"k":[281,384,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[216,216,100]}},"ao":0,"ip":0,"op":600,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":1,"ty":4,"nm":"big eye","parent":5,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[80.791,59.111,0]},"a":{"a":0,"k":[3.625,9.084,0]},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":105,"s":[100,100,100],"e":[100,5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":108,"s":[100,5,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],
@TheJaredWilcurt
TheJaredWilcurt / remove_crw.cmd
Created Mar 10, 2017 — forked from xvitaly/remove_crw.cmd
Remove telemetry updates for Windows 7 and 8.1
View remove_crw.cmd
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)
View build.js
// Building Scout-App for Windows
// Prerequisites: Must have Node, NPM, and Bower installed globally.
// Variables and Functions
var start = Date.now() + '';
var fs = require('fs-extra');
var execSync = require('child_process').execSync;
var build = '../scout-app-build/win32/Scout-App/';
var bowerJSON = fs.readJsonSync('bower.json');
View file.js
var _marked = [createIterator].map(regeneratorRuntime.mark);
var array = [1, 2, 3];
function createIterator(arr) {
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item;
return regeneratorRuntime.wrap(function createIterator$(_context) {
while (1) {
switch (_context.prev = _context.next) {
View sample.js
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
//### Process All CMD Definitions
//
//>This loops through all `<def>`'s and processes the value of
// them to create the correct key value pairs on the UGUI Args
// Object.
function patternMatchingDefinitionEngine() {
//A regular expression that matches `((x))` and captures `x`
var re = /\(\((.*?)\)\)/gi;
You can’t perform that action at this time.