Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Vince Speelman VinSpee

🏠
Working from home
Block or report user

Report or block VinSpee

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 machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
const inputActions = {
CHANGE: "input/change",
FOCUS: "input/focus",
BLUR: "input/blur"
};
const valid = "editing.dirty.valid";
const inputMachine = Machine(
{
View machine.js
const USER_HAS_AGREED_TO_WELCOME = false;
const USER_IS_LOGGED_IN = false;
const conversationMachine = Machine({
id: 'welcomeSequence',
initial: 'idle',
context: {
hasVisitedPrior: null,
user: null,
conversationSlug: null,
@VinSpee
VinSpee / userscript.js
Created Jun 4, 2019
Open links in BlueJeans
View userscript.js
// ==UserScript==
// @name BlueJeans Open In App
// @namespace https://vinspee.me
// @version 0.1
// @license MIT
// @description Open BlueJeans meetings in the app
// @author Vince Speelman <v@vinspee.me>
// @match *://*.bluejeans.com/*
// @grant window.close
// @require https://cdn.rawgit.com/agnoster/base32-js/91f43b82f19f467ade1270aa4b0e579b201d7efd/dist/base32.min.js
View gatsby-output.sh
~/Projects
❯ npx gatsby new blahblah
info Creating new site from git: git://github.com/gatsbyjs/gatsby-starter-default.git
Cloning into 'blahblah'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 1321 (delta 6), reused 14 (delta 6), pack-reused 1307
Receiving objects: 100% (1321/1321), 3.68 MiB | 2.72 MiB/s, done.
View README.md
@VinSpee
VinSpee / open-in-bj.js
Created Jun 8, 2018
open in bluejeans app
View open-in-bj.js
// ==UserScript==
// @name BlueJeans Open In App
// @namespace https://vinspee.me
// @version 0.1
// @license MIT
// @description Open BlueJeans meetings in the app
// @author Vince Speelman <v@vinspee.me>
// @match *://bluejeans.com/*
// @grant window.close
// @require https://cdn.rawgit.com/agnoster/base32-js/91f43b82f19f467ade1270aa4b0e579b201d7efd/dist/base32.min.js
View example.jsx
export class MyComponent extends React.Component {
componentWillMount() {
const styleid = 'MyComponentStyles'
if (document.head.querySelector(`#${styleid}`) !== null) {
const styles = document.createElement('style');
styles.id = styleid;
styles.append('[foo]{ color: blue; }');
document.head.appendChild(styles);
}
}
You can’t perform that action at this time.