Skip to content

Instantly share code, notes, and snippets.

View michaelforrest's full-sized avatar

Michael Forrest michaelforrest

View GitHub Profile
@michaelforrest
michaelforrest / App.js
Created August 21, 2024 10:31
Dashboard front end code reference (bring your own data)
import moment from 'moment';
import {Component, Fragment} from 'react'
import 'react-circular-progressbar/dist/styles.css';
import './App.scss';
import { fetchDataFromCoda, loadFromCache } from './codaFetcher';
import {Sparklines, SparklinesBars, SparklinesLine, SparklinesNormalBand, SparklinesReferenceLine} from 'react-sparklines'
import pluralize from 'pluralize';
import numeral from 'numeral'
import {AiFillFacebook, AiFillYoutube} from 'react-icons/ai'
import {ImTwitch} from 'react-icons/im'
import UIKit
import AVKit
import AVFoundation
import AssetsLibrary
func synchronized(_ object: AnyObject, block: () -> Void) {
objc_sync_enter(object)
block()
objc_sync_exit(object)
}
Expand all Close all
Why isn’t a caesarean offered to every woman?
The majority of women in the UK give birth vaginally, recover well and have healthy babies.
Most women who have a planned caesarean birth will also recover well and have healthy babies. However, there are risks for both you and your baby if you have a planned caesarean birth and it may take longer to recover after your baby is born. Having a caesarean birth is a major operation with risks that should be compared with your risks of a planned vaginal birth.
Your healthcare professional will not usually recommend a caesarean birth unless there are specific issues complicating your pregnancy. However, there are many factors that can influence how you feel about the way you give birth. The risks of caesarean and vaginal births will also depend on your individual circumstances. Your personal feelings, concerns, interpretation of risks and opinions are all important and will be respected when you speak with your healthcare professional about your b
@michaelforrest
michaelforrest / Rakefile
Created October 10, 2021 09:37
Free up space on your Zoom recorder
desc "compress it all"
task :compress do
Dir["./FOLDER01/*"].each do |dir|
Dir.chdir(dir) do
files = Dir["*.WAV"]
puts files
if Dir["processed"].empty? && Dir[".processed"].empty?
if files.include?("MASTER.WAV") || files.include?("MASTER-SOX.WAV")
puts "We got a MASTER.WAV"
else
@michaelforrest
michaelforrest / GridsSequencer.jsx
Created November 24, 2020 13:35
Sequencer for Mutable Instruments Grids. Demo here: https://goodtohear.co.uk/tools/grids-sequencer
const {useState, useEffect} = React
const STEPS_PER_SEQUENCE = 32
const INSTRUMENTS = [{
name: "Kick",
sound: new Audio("/audio/kick.wav")
},
{
name: "Snare",
sound: new Audio("/audio/snare.wav")
},
const int triggerDuration = 20; // how long the pulses last in ms
float bpm = 120.0; // change this value byr rotating the tempo encoder
int startTime = millis(); // can be reset to millis() if a reset button is pressed
// set up your pins here
#define everyBeatPin 3
#define everyFourBeatsPin 4
#define quarterBeatPin 5
[20:17:51] tobbe1104: is this your mating call?
[20:18:16] tobbe1104: doesn't sound good at all
[20:18:24] tobbe1104: play some real music instead
[20:18:55] tobbe1104: dude, i came to this channel and thought you played music, im really disappointed.
[20:19:04] tobbe1104: you will not get a follow from me sire
[20:19:39] tobbe1104: we can hear that it's not your thing
[20:19:54] tobbe1104: it doesnt sound good at all man
[20:20:21] tobbe1104: you sound like a sad donkey calling for ebola
[20:20:55] tobbe1104: need some base?!?!
[20:21:01] tobbe1104: you need reality man

#iOS Testing

###Matrix

Tool | CLI? |Coffee?|Mocks?|Unit?|VC?|BDD?|Visual Regressions? ------------| Xcode |almost | × | ✓ | ✓ | ✓ | ?* | × Specta |almost | × | ✓ | ✓ | ✓ | × | ×

@michaelforrest
michaelforrest / log.txt
Created June 25, 2013 20:52
Problematic bubblewrap crash
☺ rake debug=1 master af071f9 ⚡
(in /Users/michaelforrest/workspaces/motion/habits)
Mode: development
Mode: release
Build ./build/iPhoneSimulator-5.0-Development
Build vendor/ReorderingTableViewController
Build vendor/Pods
Link ./build/iPhoneSimulator-5.0-Development/Habits.app/Habits
ld: warning: ObjC object file (/Users/michaelforrest/workspaces/motion/habits/vendor/ReorderingTableViewController/build-iPhoneSimulator/libReorderingTableViewController.a(ATSDragToReorderTableViewController.m.o)) was compiled for iOS Simulator, but linking for MacOSX
ld: warning: (/Library/RubyMotion/data/ios/5.0/iPhoneSimulator/libmacruby-static.a(NSArray.o)) was compiled for MacOSX, but previous ObjC object files compiled for iOS Simulator
http://hastrk1.com/serve?action=click&publisher_id=19112&site_id=18480&offer_id=250410