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
// | |
// Date+TimeOfDay.swift | |
// Created by: Jader Feijo | |
// | |
import Foundation | |
extension Date { | |
enum TimeOfDay { | |
case morning |
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
// | |
// String+Dates.swift | |
// Created by Jader Feijo on 14/10/2016. | |
// | |
import Foundation | |
extension String { | |
func asDate(withFormat format: String) -> Date? { | |
let formatter = DateFormatter() |
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
// | |
// String+MD5.swift | |
// Created by: Jader Feijo | |
// | |
import Foundation | |
extension String { | |
var md5: String { | |
var digest = [UInt8](repeating: 0, count: Int(CC_MD5_DIGEST_LENGTH)) |
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
// | |
// String+EmailValidation.swift | |
// Created by: Jader Feijo | |
// | |
import Foundation | |
extension String { | |
var isValidEmail: Bool { | |
do { |
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
#!/usr/bin/env bash | |
diff Podfile.lock Pods/Manifest.lock > /dev/null | |
if [[ $? != 0 ]]; then | |
echo "*** Podfile changed ***" | |
pod install | |
fi | |
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
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'ostruct' | |
require 'plist' | |
require 'pp' | |
class Archive | |
ARCHIVES_ROOT = File.join(File.expand_path('~'), "Library/Developer/Xcode/Archives") |
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
#!/usr/bin/ruby | |
require 'json' | |
require 'plist' | |
def archive_build(solution, project, configuration) | |
return system("/Applications/Xamarin\\ Studio.app/Contents/MacOS/mdtool -v archive -c:\"#{configuration}|iPhone\" -p:\"#{project}\" \"#{solution}\""); | |
end | |
def export_archive(export_options, archive_path, project_name) |
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
let g:python_host_prog = '/Users/jaderfeijo/.pyenv/versions/neovim2/bin/python' | |
let g:python3_host_prog = '/Users/jaderfeijo/.pyenv/versions/neovim3/bin/python' | |
call plug#begin('~/.vim/plugged') | |
Plug 'https://github.com/keith/swift.vim.git' | |
Plug 'https://github.com/scrooloose/syntastic.git' | |
Plug 'https://github.com/mitsuse/autocomplete-swift.git' | |
Plug 'https://github.com/wincent/command-t.git' | |
Plug 'https://github.com/shime/vim-livedown.git' |
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
ssh $1@$2 "osascript -e 'tell application \"Terminal\" to activate' -e 'tell application \"Terminal\" to do script \"nc -l 1234\"' >> /dev/null" | |
sleep 3 | |
telnet $2 1234 |
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 | |
git tag -d $1 & git push $2 :refs/tags/$1 |