Skip to content

Instantly share code, notes, and snippets.

View crutchcorn's full-sized avatar
📒
Writing like whoa

Corbin Crutchley crutchcorn

📒
Writing like whoa
View GitHub Profile
@dale3h
dale3h / MessageForwarding_StreamlabsSystem.py
Created August 17, 2018 22:46
Streamlabs Message Forwarding [Twitch <-> Discord] (Author: Castorr91)
#!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
"""Forward messages from twitch chat to discord chat or the other way around"""
#---------------------------------------
# Libraries and references
#---------------------------------------
import codecs
import json
import os
@brianarn
brianarn / objectPromiseAll.js
Created May 29, 2018 21:56
like `Promise.all` but for plain non-iterable objects
// Based on inspiration from some conversation in WeAllJS
// See wealljs.org for more info on the community!
// This is assuming a plain JS object which is why it's not using for-of, since
// plain objects aren't iterable
function objectPromiseAll(baseObject) {
return Promise.all(Object.values(baseObject)).then((resolvedValues) => {
const resolvedObject = {};
Object.keys(baseObject).forEach((key, index) => {
@passcod
passcod / javascript.json
Created February 24, 2018 04:32
Source (Balsamiq) of the JavaScript Map
{
"mockup": {
"controls": {
"control": [
{
"ID": "1",
"typeID": "Arrow",
"zOrder": "1",
"w": "36",
"h": "109",

Just some notes and references for myself.

  • In bash, you can access your C:\ drive via /mnt/c/
  • ~ = C:\Users\MLM\AppData\Local\lxss\home\mlm and is different from your Windows user directory C:\Users\MLM

How to google things

@danielhickman
danielhickman / Bug-Reporter-for-GitHub.md
Created January 6, 2016 04:12
JavScript Bug Reporter for GitHub Repos

JavaScript:

(function() {
	"use strict";
	// Set me!
	githubURL = "https://github.com/username/repo";
	title = "[Bug Report]: Blah Blah Blah";


	var errors = [];
@danielhickman
danielhickman / Simple-GitHub-Webhook-Deployment.md
Last active August 29, 2015 14:28
How to Create a Simple GitHub Webhook Deployment

Dependencies:

  • #linuxmasterrace
  • git
  • php
  • apache

Commands to run before:

cd /var/www/example.com/
git clone https://github.com/username/reponame.git