-
Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.
-
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
-
Connect PS3 controller to Mac with USB cable.
-
Enable Bluetooth.
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
| // | |
| // A 30-minute hack to recreate the "iBeer" effect using SpriteKit, SwiftUI, and metaballs. | |
| // The effect is created by having hundreds of physics-enabled balls in a SpriteKit scene, | |
| // all drawing nothing. These balls are then read back out by SwiftUI in a TimelineView, and | |
| // drawn using blur and alpha threshold filters to make them appear to be a liquid. | |
| // The SpriteKit scene then has its gravity changed dynamically using the accelerometer, | |
| // meaning that the "liquid" splashes around as you tilt your phone. | |
| // | |
| // Created by Paul Hudson | |
| // https://www.hackingwithswift.com/license |
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
| # Compute first twelve Fibonacci numbers and put in array, then print | |
| .data | |
| fibs: .word 0 : 12 # "array" of 12 words to contain fib values | |
| size: .word 12 # size of "array" | |
| .text | |
| la $t0, fibs # load address of array | |
| la $t5, size # load address of size variable | |
| lw $t5, 0($t5) # load array size | |
| li $t2, 1 # 1 is first and second Fib. number | |
| add.d $f0, $f2, $f4 |