- Python 3
- Pip 3
$ brew install python3
import UIKit | |
@IBDesignable | |
class CustomTextField: UITextField { | |
@IBInspectable var isPasteEnabled: Bool = true | |
@IBInspectable var isSelectEnabled: Bool = true | |
@IBInspectable var isSelectAllEnabled: Bool = true |
import UIKit | |
extension UIView { | |
func backgroundImage(named: String) { | |
let backgroundImage = UIImageView(frame: self.frame) | |
backgroundImage.image = UIImage(named: named) | |
backgroundImage.contentMode = .scaleAspectFill | |
backgroundImage.translatesAutoresizingMaskIntoConstraints = false | |
backgroundImage.center = self.center | |
backgroundImage.autoresizingMask = [.flexibleLeftMargin, .flexibleRightMargin, .flexibleTopMargin, .flexibleBottomMargin] |
// | |
// FacebookManager.swift | |
// | |
// Created by Mathieu White on 2016-02-07. | |
// Copyright © 2016 Mathieu White. All rights reserved. | |
// | |
import UIKit | |
import FBSDKCoreKit | |
import FBSDKLoginKit |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.
The original author seems to be Charles Edge, here's the original content, as pointed out by @percisely.
Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.
After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and s
// | |
// Device.swift | |
// imHome | |
// | |
// Created by Kevin Xu on 2/9/15. Updated on 6/20/15. | |
// Copyright (c) 2015 Alpha Labs, Inc. All rights reserved. | |
// | |
import Foundation |
-------------------- | |
Información | |
-------------------- | |
- Ubuntu 12.04 LTS | |
- Linode | |
- MEM: 4GB | |
- CPU: 4 CORES | |
ACTION | |
AD_HOC_CODE_SIGNING_ALLOWED | |
ALTERNATE_GROUP | |
ALTERNATE_MODE | |
ALTERNATE_OWNER | |
ALWAYS_SEARCH_USER_PATHS | |
ALWAYS_USE_SEPARATE_HEADERMAPS | |
APPLE_INTERNAL_DEVELOPER_DIR | |
APPLE_INTERNAL_DIR | |
APPLE_INTERNAL_DOCUMENTATION_DIR |
Add config/puma.ruby | |
-------------------- | |
cd /home/redmine/redmine | |
sudo -u redmine -H curl --output config/puma.rb https://gist.github.com/thanhhh/5610668/raw/fdfe2a865c3a0afe912c8784c971ea7ca3e64cfd/puma.rb | |
Install Init Script | |
-------------------- | |
Download the init script (will be /etc/init.d/redmine): | |