Skip to content

Instantly share code, notes, and snippets.

View jsatk's full-sized avatar
💀

Jesse Atkinson jsatk

💀
View GitHub Profile
@merlinmann
merlinmann / wisdom.md
Last active April 17, 2024 21:52
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.

@begriffs
begriffs / Makefile
Last active July 3, 2019 02:36
Installing binaries as needed
VPATH=/usr/local/bin
BINARIES=ruby node
all : ${BINARIES}
echo "Deps are installed"
${BINARIES} :
asdf plugin-add $@

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.

@noromanba
noromanba / twitch-irc-with-weechat.mkd
Last active January 24, 2024 01:17
How to join Twitch IRC w/ WeeChat
@staringispolite
staringispolite / asciiputsonglasses
Last active May 27, 2024 09:28
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■
@trey
trey / git-commit-author-rewrite.md
Last active July 3, 2024 15:56
Change the email address for a git commit.

Change the email address for a git commit.

$ git commit --amend --author="Author Name <email@address.com>"

or

$ git commit --amend --reset-author
@primitivehuman
primitivehuman / CSS Named Color to HEX
Last active December 20, 2015 13:29
Sublime Text 2 : Reg Replace - Convert all named css colors to hex values
//////////////////////////////////////////////////////////////
// This uses the Reg Replace plugin in Sublime Text 2 to find
// all named CSS color values and replace them
// with their equivalent hex value.
//
// Install the Reg Replace plugin
// using the Package Control Plugin
// http://wbond.net/sublime_packages/package_control
//
// Github RegReplace plugin page :
@ttscoff
ttscoff / itunesicon.rb
Last active January 13, 2022 10:07
Retrieve a 512 x 512px icon for an iOS app
#!/usr/bin/ruby
# encoding: utf-8
#
# Updated 2017-10-25:
# - Defaults to large size (512)
# - If ImageMagick is installed:
# - rounds the corners (copped from @bradjasper, https://github.com/bradjasper/Download-iTunes-Icon/blob/master/itunesicon.rb)
# - replace original with rounded version, converting to png if necessary
#
# Retrieve an iOS app icon at the highest available resolution
# JS Lint
# Reference: http://blog.simplytestable.com/installing-jslint-for-command-line-use-on-ubuntu/
function jslint {
filename=${1##*/} # Name of file.
dir="/Users/Jesse/Desktop/" # Directory where you want your lint files output. Must be full path. No ~.
path="$dir$filename-lint.js"
/usr/local/bin/node /usr/share/node-jslint/node_modules/jslint/bin/jslint.js "$1" > "$path"
}
// [Sieve of Eratosthenes](http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes)
var getPrimes = function (max) {
"use strict";
var sieve = [],
primes = [];
for (var i = 2; i <= max; i += 1) {
if (!sieve[i]) {
primes.push(i);