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/bash | |
# Update me! | |
COMPUTER_NAME="Airfred" | |
COMPUTER_NETWORK_NAME="Airfred" | |
# Setup script for macOS. | |
# Download. Update variables above. Run `chmod 755 ./macos-setup.sh && ./macos-setup.sh`. | |
# Adapted from: https://gist.github.com/AlexanderSix/c0ac2d87abd205b9a9c9cdb8502c2f4e | |
# Also adapted from: https://gist.github.com/bradp/bea76b16d3325f5c47d4 |
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
import UIKit | |
import Combine | |
// Just Publishers | |
let publisher = Just("Hello, world!") | |
let subscription = publisher.sink { (theString: String) in | |
print(theString) | |
} | |
// Pass through subjects |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
init() { | |
this._super(); | |
this.foo() | |
}, | |
redirectToSomewhere() { | |
// window.location = "blah.com"; |
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
class ViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource { | |
@IBOutlet weak var collectionView: UICollectionView! | |
var text = [ | |
"Some text.", | |
"Some longer text text text text text text text text text text.", | |
"Lots text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text." | |
] |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
fooCount: 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
rows: [ | |
1, | |
2, | |
3, | |
4, |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
testObject: Ember.Object.create({ | |
emberObj: Ember.Object.create({ | |
foo: 'foo', | |
}), | |
nonEmberObj: { |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
}); |
NewerOlder