Skip to content

Instantly share code, notes, and snippets.

@melodyloveless
melodyloveless / 01_.md
Last active December 15, 2018 18:16
Live Code NYC x Live Code PHLY - Workshop - 12/15/18

Sonic Pi - Workshop - Live Code NYC x Live Code PHLY 2018

Authors

Melody Loveless
Website: melodyloveless.com
Instagram: @melodycodes

Materials

  • Computer
  • Sonic Pi
@aleksandrs-ledovskis
aleksandrs-ledovskis / README.md
Last active November 11, 2023 01:06
Lock Spotify version (macOS)
  1. Create new Automator application with Run Shell script action (exact steps below).

    1. Open Automator.app (e.g. from Spotlight)
    2. Select File → New in menu
    3. Select "Application", click "Choose"
    4. With "Actions" toggle selected, type "Run Shell Script" in filter box, double click on filtered item
  2. Put contents from lock_spotify_version.sh into script's body (exact steps below).

  3. In opened right-hand item select /bin/sh as "Shell" type and copy contents of Gist's "lock_spotify_version.sh" below/in text area

// Delete webhooks created by Real Artists Ship
// Author: Robbie Trencheny
// License: MIT
// Run npm install github first
// Must set GITHUB_TOKEN environment variable
var GitHubApi = require("github");
var github = new GitHubApi();
@alekseykulikov
alekseykulikov / index.md
Last active April 14, 2024 00:32
Principles we use to write CSS for modern browsers

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 7668 lines of CSS (and just 2 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@derhuerst
derhuerst / _.md
Last active April 9, 2024 11:06
List of HAFAS API Endpoints

How to set your Acer C720 Chromebook to boot to Ubuntu by default.

  1. Place your closed laptop on a soft surface, upside down.
  2. Use a sharp knife to cut a hole in the warranty sticker (YES THIS WILL VOID THE WARRANTY).
  3. Remove the 13 screws with a small phillips head screwdriver (PH1 size works well). Be careful, the screws are very small and will strip easily if you use the wrong size screwdriver.
  4. Remove the bottom of the laptop by pulling up on it near the hinges. It takes a bit of pressure to remove, but if you lift it from the back (near the hinges) the same way you would open a laptop screen, the hooks won't break (even though they will make a loud snapping sound).
  5. Remove the BIOS write-protect screw. It is labeled as #7 in this image
  6. With the bottom off, turn over the laptop and open the screen.
  7. Plug the laptop in (it must b
@kyledrake
kyledrake / ferengi-plan.txt
Last active April 6, 2024 00:30
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {

Keybase proof

I hereby claim:

  • I am gchetrick on github.
  • I am gchetrick (https://keybase.io/gchetrick) on keybase.
  • I have a public key whose fingerprint is 94C0 2976 883C 30CC 8B2B DF67 8752 5A47 D64F B201

To claim this, I am signing this object:

require 'rspec'
require './horserace.rb'
describe Horse do
let(:horse) {Horse.new}
it 'should exist' do
horse.should_not eq(nil)
end