- Add a new Target of kind Aggregate, name it OCLint
- Under Builde Phases, add a new Run Script Phase
- Paste the script
- Select target OCLint
- Build the target (press ⌘+B)
| import 'package:test/test.dart'; | |
| import 'package:intl/intl.dart'; | |
| import 'package:timezone/timezone.dart'; | |
| import 'package:timezone/data/latest.dart'; | |
| // A DateTime in dart contains the TimezoneOffset from UTC/GMT | |
| // This was modified to ommit the `:` so we actually have implemented the Z | |
| // Timezone formatter in dart. | |
| // | |
| // See: https://github.com/dart-lang/intl/issues/19 for more details. | 
| #import "ViewController.h" | |
| #import <CoreImage/CoreImage.h> | |
| #import <AVFoundation/AVFoundation.h> | |
| @interface ViewController () { | |
| } | |
| @property (strong, nonatomic) CIContext *coreImageContext; | |
| @property (strong, nonatomic) AVCaptureSession *cameraSession; | 
| #!/bin/bash | |
| # Script to disable the iOS Simulator app from showing the "Do you want the application xxxx to accept incoming network connections?" pop-up every time the app is run | |
| echo "> Enter password to temporarily shut firewall off" | |
| sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off | |
| echo "> Add Xcode as a firewall exception" | |
| /usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Xcode.app/Contents/MacOS/Xcode | 
| mr Marathi | |
| bs Bosnian | |
| ee_TG Ewe (Togo) | |
| ms Malay | |
| kam_KE Kamba (Kenya) | |
| mt Maltese | |
| ha Hausa | |
| es_HN Spanish (Honduras) | |
| ml_IN Malayalam (India) | |
| ro_MD Romanian (Moldova) | 
Extension:
import Foundation
import UIKit
extension UIColor {
    convenience init(hexString: String) {
        let hex = hexString.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
        var int = UInt32()
 Scanner(string: hex).scanHexInt32(&int)| // MARK: - Swizzling | |
| extension UIFont { | |
| class var defaultFontFamily: String { return "Georgia" } | |
| override public class func initialize() | |
| { | |
| if self == UIFont.self { | |
| swizzleSystemFont() | |
| } | |
| } | 
| #!/bin/zsh | |
| # pyenv install for CentOS 6.5 x86_64 | |
| yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel | |
| git clone git://github.com/yyuu/pyenv.git ~/.pyenv | |
| export PATH="$HOME/.pyenv/bin:$PATH" | |
| eval "$(pyenv init -)" | 
| export LANG="en_US.UTF-8" | |
| export LC_CTYPE="en_US.UTF-8" | |
| cd / | |
| # app deps | |
| yum install git -y | |
| # erlang deps | 
| defmodule EmailValidator do | |
| # ensure that the email looks valid | |
| def validate_email(email) when is_binary(email) do | |
| case Regex.run(~r/^[A-Za-z0-9._%+-+']+@[A-Za-z0-9.-]+\.[A-Za-z]+$/, email) do | |
| nil -> | |
| {:error, "Invalid email"} | |
| [email] -> | |
| try do | |
| Regex.run(~r/(\w+)@([\w.]+)/, email) |> validate_email |