Skip to content

Instantly share code, notes, and snippets.

@RobJDavey
RobJDavey / U1F300.txt
Last active January 16, 2018 22:44
OS X Emoji (with names from 10.11.4)
Miscellaneous Symbols and Pictographs
๐ŸŒ€๏ธ = [1F300] CYCLONE
๐ŸŒ๏ธ = [1F301] FOGGY
๐ŸŒ‚๏ธ = [1F302] CLOSED UMBRELLA
๐ŸŒƒ๏ธ = [1F303] NIGHT WITH STARS
๐ŸŒ„๏ธ = [1F304] SUNRISE OVER MOUNTAINS
๐ŸŒ…๏ธ = [1F305] SUNRISE
๐ŸŒ†๏ธ = [1F306] CITYSCAPE AT DUSK
๐ŸŒ‡๏ธ = [1F307] SUNSET OVER BUILDINGS
@protrolium
protrolium / ffmpeg.md
Last active October 10, 2025 18:15
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@ericremoreynolds
ericremoreynolds / bisect_key.py
Last active August 9, 2022 20:44
Key-like functionality recipe for Python's bisect functions
class KeyifyList(object):
def __init__(self, inner, key):
self.inner = inner
self.key = key
def __len__(self):
return len(self.inner)
def __getitem__(self, k):
return self.key(self.inner[k])
@alexland
alexland / fizzbuzz_numpy.py
Last active May 23, 2022 23:56
fizz buzz test in three short lines with NumPy
'''
fizzbuzz refers to a quick test to filter applicants for programmer jobs who don't actually know how to code.
(see eg, http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/)
"pass in a sequence of integers from 1 to 100;
for integers that are multiples of three: print โ€œfizzโ€
for integers that are multiples of five print โ€œbuzzโ€
for integers that are multiples of five AND three print "fizzbuzz"
for remaining integers, print the integer value
'''
@NotSqrt
NotSqrt / settings_test_snippet.py
Last active May 1, 2022 01:34 — forked from nealtodd/settings_test_snippet.py
Another shot at this problem ..
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()
@roachhd
roachhd / README.md
Last active October 22, 2025 15:57
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@staltz
staltz / introrx.md
Last active October 26, 2025 03:06
The introduction to Reactive Programming you've been missing
@dschuetz
dschuetz / make_passbook.py
Created May 31, 2014 03:43
Simple hack to create Passbook .pkpass file
import sys, os.path, hashlib, re
import zipfile
import subprocess
from StringIO import StringIO
from io import BytesIO
#
# Passbook Hack
# David Schuetz
# 30 May 2014
@ungoldman
ungoldman / curl_post_json.md
Last active September 27, 2025 22:22
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

#!/bin/bash
#
# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source: http://www.google.com/linuxrepositories/)