Skip to content

Instantly share code, notes, and snippets.

@gaearon
gaearon / modern_js.md
Last active February 12, 2025 21:09
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@keijiro
keijiro / 00_blot9.md
Last active November 6, 2024 22:32
KodeLife fragment shader sketch

gif

@davidgardenier
davidgardenier / parallel_bash_from_python.py
Created September 18, 2017 12:55
Run parallel bash scripts from python
import subprocess
template = 'python script.py {} {} {} {}'
args = [[1, 2, 3, 4], [5, 6, 7, 8]]
# Run commands in parallel
processes = []
for arg in args:
@paltman
paltman / jira-migration.py
Created May 3, 2017 11:06
JIRA to ZenHub Migration Script
"""
1. Create a new repo and setup your pipeline to match JIRA
2. Edit the constants to suit your needs
3. Run `source jira.env`
4. Run `python jira-migration.py`
"""
import os
import requests
@RobSpectre
RobSpectre / app.py
Last active September 5, 2015 21:13
Example Twitter alert checker using Twilio
from twilio.rest import TwilioRestClient
import simplejson as json
from time import sleep
class SocialAlarm(object):
def __init__(self):
self.counter = 1
@PurpleBooth
PurpleBooth / README-Template.md
Last active February 26, 2025 19:40
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@bzerangue
bzerangue / _verify-repair-permissions-disk.md
Last active February 13, 2025 21:14
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active March 1, 2025 00:22
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@jonlabelle
jonlabelle / television_resolution_standards.md
Last active January 16, 2025 13:33
Digital and analog television standards resolution reference.

Television Standards

Digital and analog television standards resolution reference.

Digital TV Standards

Standard Resolution (dots × lines) DAR (H:V) Pixels
PixelVision 120 × 90 4:3 10,800