This file contains hidden or 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/bash | |
# ============================================== | |
# Zelda64Recompiled macOS Build & Run Script | |
# ============================================== | |
# | |
# Prerequisites: | |
# 1. Install pkgx: curl -fsS https://pkgx.sh | sh | |
# 2. Install Xcode from the Mac App Store | |
# |
This file contains hidden or 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
- async function add(tracks: Track | Track[], insertBeforeId?: string): Promise<void> { | |
+ async function add(tracks: Track | Track[], insertBeforeIndex?: number): Promise<void> { | |
- async function remove(tracks: string | string[]): Promise<void> { | |
+ async function remove(tracks: number | number[]): Promise<void> { | |
- async function skip(trackId: string): Promise<void> { | |
+ function skip(trackIndex: number): Promise<void> { | |
- async function updateMetadataForTrack(trackId: string, metadata: TrackMetadataBase): Promise<void> { |
This file contains hidden or 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
useTrackPlayerEvents( | |
[ | |
Event.PlaybackQueueEnded, | |
Event.PlaybackTrackChanged, | |
Event.RemotePlay, | |
Event.RemotePause, | |
], | |
async event => { | |
if ( | |
event.type === Event.PlaybackTrackChanged && |
This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Buildkite stack v3.3.1", | |
"Parameters": { | |
"KeyName": { | |
"Description": "SSH keypair used to access the buildkite instances", | |
"Type": "AWS::EC2::KeyPair::KeyName", | |
"MinLength": 1 | |
}, | |
"BuildkiteAgentRelease": { |
This file contains hidden or 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/bash | |
# install java 8 | |
yum update -y | |
yum install -y java-1.8.0-openjdk | |
yum remove -y java-1.7.0-openjdk |
This file contains hidden or 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
int ones(int n) | |
{ | |
// base case | |
if (n < 2) | |
return n; | |
// recursive case | |
return n % 2 + ones(n/2); | |
} |