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
@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
@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 = [];
@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",
@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) => {
@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
@WhiteNervosa
WhiteNervosa / W11AnimationsWalkthrough.md
Last active May 7, 2022 18:54
Windows 11 Animations with Theme
class Helpers {
constructor() {
this.addrof_LO = new Array(1048577);
this.buf = new ArrayBuffer(8);
this.f64 = new Float64Array(this.buf);
this.f32 = new Float32Array(this.buf);
this.u32 = new Uint32Array(this.buf);
this.u64 = new BigUint64Array(this.buf);
this.state = {};
@huntie
huntie / metro.config.js
Last active July 10, 2023 01:53
Snippets accompanying my article "A concise guide to configuring React Native with Yarn Workspaces" on Medium
/**
* Metro Bundler configuration
* https://facebook.github.io/metro/docs/en/configuration
*
* eslint-env node, es6
*/
const exclusionList = require('metro-config/src/defaults/exclusionList');
const getWorkspaces = require('get-yarn-workspaces');
const path = require('path');

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

@antfu
antfu / doc-table.md
Last active October 14, 2023 20:09
Doc Table in Markdown

Example

Name

Description