Skip to content

Instantly share code, notes, and snippets.

View jpwilliams's full-sized avatar
🟪
Building Inngest

Jack Williams jpwilliams

🟪
Building Inngest
View GitHub Profile
@jpwilliams
jpwilliams / git-branch-merging.md
Last active August 3, 2017 13:12
Guide for pulling from->to git branches

Pulling the same branch

If you're pulling the same branch from origin (origin/develop -> develop):

git checkout develop
git fetch origin
git pull --no-commit --log --rebase origin develop

@zkat
zkat / index.js
Last active March 26, 2025 08:06
npx is cool
#!/usr/bin/env node
console.log('yay gist')

Crugo WebRTC - Phase 1

For phase 1, only 2 users can video / audio chat at the same time in Crugo. This will eventually be developed to allow multiple user video / audio chat.

Brief Description - UX / UI

User A goes to the direct tag of User B and presses the call button. User A is presenting with a calling UI. User B received that call and is shown the being called UI. User B Then presses answer. At this stage both User A and User B are taken into the video chat UI. WebRTC does its thing and the call is initialised.

How it Works

Requesting a call

@nmcc
nmcc / CONSOLAS.md
Last active February 14, 2025 01:19
Install Consolas font on Mac

Download and install the font

  1. Download the Consolas font from http://www.fontpalace.com/font-details/Consolas/
  2. Open Finder and navigate to Downloads directory
  3. Double click the Consolas.ttf file
  4. A dialog box appears displaying the details about the font
  5. Click Install font button

Using Consolas font on IntelliJ IDEA:

  1. Open IDEA Preferences Window (Press Command + ,)
  2. Editor > Colors & Fonts > Font
@jpwilliams
jpwilliams / semver-prerelease.md
Created January 8, 2017 18:43
A good description of how to use Semver for major pre-release versions

TLDR

I have not seen prelease versions utilized pre-1.0.0. It seems fairly pointless since the public API is not finalized yet. They become useful after 1.0.0 is released.

So when are prelease versions useful?

From semver.org:

Version 1.0.0 defines the public API. The way in which the version number is incremented after this release is dependent on this public API and how it changes.

@jpwilliams
jpwilliams / EMPLOYER.md
Last active April 16, 2018 14:43
Versioned and revised ideas for how to run a good tech company.

EMPLOYER.md

Versioned and revised ideas for how to run a good tech company.

Edits can just be plain edited. Redactions must be turned into strikethrough and a comment added stating why the text/point is being removed.

Contents

@ursuad
ursuad / kafka-cheat-sheet.md
Last active March 12, 2025 10:08
Quick command reference for Apache Kafka

Kafka Topics

List existing topics

bin/kafka-topics.sh --zookeeper localhost:2181 --list

Describe a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic

Purge a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000

... wait a minute ...

import React, { Component } from 'react'
import Firebase from 'firebase'
import ReactFireMixin from 'reactfire'
import reactMixin from 'react-mixin'
const ref = new Firebase('https://<APPNAME>.firebaseio.com/users')
class UsersList extends Component {
constructor (props, context) {
super(props, context)
@mhevery
mhevery / Zone.md
Last active March 30, 2022 11:54
TC39 Zone Proposal

Zone Motivation

Make writing asynchronous code easier by having a consistent way of propagating "context" across related asynchronous operations. Have the "context" be responsible for async-local-storage, allowing the execution before and after hooks, and "context"-local error handling. Finally make sure that the "context"s are composable.

This feature needs to be part of the platform so that library and framework authors can relay on a common well know API, otherwise adoption will be limited.

@diorahman
diorahman / node-addon-linux64-rust.md
Last active March 23, 2018 19:21
Build and run rust-based node-addon (neon) on Linux

Neon on Linux

  • Install rust by executing this: $ curl -sSf https://static.rust-lang.org/rustup.sh | sh
  • Install node (v4.2.*), e.g. $ nvm install 4
  • Install neon: $ npm install -g neon-cli
  • Patch the templates/binding.gyp.hbs of the neon-cli using a patch from here: https://github.com/dherman/neon-cli/pull/6/commits
  • Take the advice to edit the ../<(static_lib) into <(PRODUCT_DIR)/../../<(static_lib)
  • Create a new neon project: $ neon new hello
  • $ cd hello
  • Edit the Cargo.toml deps to fetch the latest neon from git: