Skip to content

Instantly share code, notes, and snippets.

View rglover's full-sized avatar

Ryan Glover rglover

View GitHub Profile
Smith,
Johnson,
Williams,
Brown,
Jones,
Garcia,
Miller,
Davis,
Rodriguez,
Martinez,
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 10, 2024 20:23
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@cdw
cdw / .pyradio
Last active March 5, 2024 00:04
List of radio streams
# Find lots more stations at http://www.iheard.com
KING: Classical, http://classicalking.streamguys1.com/king-fm-mp3
KING: Evergreen, http://classicalking.streamguys1.com/evergreen-mp3-96k
KEXP, http://live-mp3-128.kexp.org/
KNKX, http://live.wostreaming.net/direct/ppm-knkxfmmp3-ibc1
KNKX: Jazz24, http://live.wostreaming.net/direct/ppm-jazz24mp3-ibc1
KUOW, http://playerservices.streamtheworld.com/pls/KUOWFM_HIGH_MP3.pls
Bluemars, http://streams.echoesofbluemars.org:8000/bluemars.m3u
Cryosleep, http://streams.echoesofbluemars.org:8000/cryosleep.m3u
Voices Within, http://streams.echoesofbluemars.org:8000/voicesfromwithin.m3u
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.socket mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 2048
@Dynalon
Dynalon / jsx-render.tsx
Created January 7, 2016 21:23
Sample JSX to HTMLElement renderer in TypeScript
// Tiny JSX renderer in TypeScript inspired by plain-jxs: https://github.com/callumlocke/plain-jsx
// Babel would allow you to specify the factory function as special inline comment:
/** @jsx JSXrender */
let JSXrender = (tagName: string, attributes?: { [key: string]: any }, ...children: Array<HTMLElement |  string>): HTMLElement => {
if (!tagName || typeof tagName !== 'string')
throw new Error("tagName has to be defined, non-empty string");
@olizilla
olizilla / meteor-dump.sh
Last active May 29, 2016 02:18
Dump a mongo db from a live meteor app to a local dump dir.
#!/bin/bash
# __
# _____ ____ _/ |_ ____ ____ _______
# / \ _/ __ \ \ __\_/ __ \ / _ \ \_ __ \
# | Y Y \\ ___/ | | \ ___/ ( <_> ) | | \/
# |__|_| / \___ > |__| \___ > \____/ |__|
# \/ \/ \/
#
# .___
# __| _/ __ __ _____ ______
@possibilities
possibilities / meteor-async.md
Created August 23, 2012 22:53
Meteor Async Guide

From Meteor's documentation:

In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.

This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.

Basic async

Sometimes we need to run async code in Meteor.methods. For this we create a Future to block until the async code has finished. This pattern can be seen all over Meteor's own codebase:

@nicoleslaw
nicoleslaw / 1_Tiny_Content_Framework.md
Last active January 23, 2024 02:28
Tiny Content Framework

Tiny Content Framework

About the project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Give me feedback on Twitter (@nicoleslaw) or by email (nicole@nicolefenton.com).

Contents