This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
function moveAssetImages | |
{ | |
usage="usage: moveAssetImages /path/to/folderOfImages /path/to/Images.xcassets" | |
sourceDir=$1 | |
assetsDir=$2 | |
if [ $# != 2 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vinyl vs CD vs digital audio | |
I thought I’d provide some feedback on this discusion. | |
At one point in my career, I thought I was going to be a music producer, and I’ve spent about 20 years writing, recording and producing music. Writing mostly electronic music played by DJs, and given the timeframe we’re talking about, I actually started mixing (as in the audio engineer definition) while vinyl accounted for close to 100% of sales, so everything we did ended up being mastered for vinyl. | |
As part of this process, we’d send every single release off to be mastered for vinyl, and receive an acetate (a one off copy), a test pressing (initial pressings using the vinyl master), or the final release pressing and be able to compare it to not only a 16bit/44.1khz master of the exact same recording, but we were also often able to compare directly to a 24bit/44.1khz master and 24bit/44.1khz pre-mastered version of the exact same song. And all typically on studio nearfield masters and really nice headphones. | |
Keep in mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A loading spinner with 6 dots. | |
// By @marcedwards from @bjango. | |
// | |
// Pretty messy and hacked together, but it works. ¯\_(ツ)_/¯ | |
// Created using Processing 3.3.7. | |
float scaler = 0.24 * 4; // Scale the entire design. | |
float scalerb = 4; // Scale the entire design more. | |
int frame = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A counter that displays seconds and 100ths of a second. | |
// By @marcedwards from @bjango. | |
// | |
// You’ll need to use Tools › Create Font to convert a font file to a Processing .vlw file. | |
// Created using Processing 3.3.7. | |
PFont font; | |
float time = 0; | |
void draw() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A loading spinner. | |
// By @marcedwards from @bjango. | |
void setup() { | |
size(300, 300, P2D); | |
frameRate(30); | |
smooth(8); | |
noFill(); | |
stroke(255); | |
strokeWeight(6); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A colourful loading spinner. | |
// By @marcedwards from @bjango. | |
void setup() { | |
size(512, 512, P2D); | |
frameRate(30); | |
smooth(8); | |
noFill(); | |
strokeWeight(10); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An attempt at recreating the intro to MKBHD’s awesome videos. | |
// MKBHD’s videos can be seen here: https://www.youtube.com/marquesbrownlee | |
// A GIF of the result can be seen here: https://i.imgur.com/EAfI0uJ.gif | |
// | |
// Code by @marcedwards from @bjango. | |
float n1 = 0; | |
float n2 = 0; | |
float ease = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OLED black smearing test for Processing 3.4. | |
// Black smearing = changing pixels to and from pure black is slower than changing to and from other colours. | |
// | |
// Code by @marcedwards from @bjango. | |
void setup() { | |
size(360, 360, P2D); | |
frameRate(60); | |
smooth(8); | |
noStroke(); |
OlderNewer