A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
import AVFoundation | |
import UIKit | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
class AudioPlayer { | |
var backgroundAudioFile:AVAudioFile | |
var topAudioFiles: [AVAudioFile] = [] |
#!/usr/bin/env bash | |
VERSION=4.0.1 | |
SCRIPT=`basename "$0"` | |
APPNAME="My App" | |
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
OSX_VERSION=`sw_vers -productVersion` | |
PWD=`pwd` | |
function usage { |
#!/usr/bin/env bash | |
# Licensed by author Alex Birch under CC BY-SA 4.0 | |
# https://creativecommons.org/licenses/by-sa/4.0/ | |
# Example input: | |
# ./make_portable.sh mycoolbinary | |
# where mycoolbinary is a mach-o object file | |
# (for example an executable binary or a .dylib) | |
# |
#!/bin/bash | |
USER=${1:-sebble} | |
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-) | |
PAGES=$((658/100+1)) | |
echo You have $STARS starred repositories. | |
echo |
#!/bin/sh | |
figlist | awk '/fonts/ {f=1;next} /control/ {f=0} f {print}' | while read font; do | |
echo "=== $font ===" | |
echo $font | figlet -f $font | |
done | less |
CREATE OR REPLACE FUNCTION generate_sequential_uuid(p_interval_length int DEFAULT 60) | |
RETURNS uuid | |
LANGUAGE plpgsql | |
AS $$ | |
DECLARE | |
v_i int; | |
v_time bigint; | |
v_bytes int[16] = '{}'; | |
v_hex text[16] = '{}'; | |
BEGIN |
CREATE SEQUENCE country_seq; | |
CREATE TABLE IF NOT EXISTS country ( | |
id int NOT NULL DEFAULT NEXTVAL ('country_seq'), | |
iso char(2) NOT NULL, | |
name varchar(80) NOT NULL, | |
nicename varchar(80) NOT NULL, | |
iso3 char(3) DEFAULT NULL, | |
numcode smallint DEFAULT NULL, | |
phonecode int NOT NULL, |
#!/bin/sh | |
# Requires: audiowaveform (https://github.com/bbc/audiowaveform), metaflac, sox | |
zoom_start=60 | |
zoom_duration=4 | |
zoom_end=$((zoom_start + zoom_duration)) | |
if [ $# -lt 1 ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]; then | |
echo "Generates spectrogram and waveform images from flac files" |
#!/usr/bin/env xcrun --sdk macosx swift | |
import Foundation | |
enum Configuration: String { | |
case debug = "Debug" | |
case release = "Release" | |
} | |
// Get Info.plist path |