I hereby claim:
- I am diversario on github.
- I am diversario (https://keybase.io/diversario) on keybase.
- I have a public key whose fingerprint is 550E 6997 3442 4812 1ED3 D22D 2764 461E CA81 0541
To claim this, I am signing this object:
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
performSegueWithIdentifier(“mySegueName”, sender: "hello!") | |
} | |
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { | |
if let vc = segue.destinationViewController as? DestVC { | |
vc.dataFromAnotherVC as? String | |
} | |
} |
class destinationVC: UIViewController { | |
var dataFromAnotherVC: String! | |
override func viewWillAppear(animated: Bool) { | |
// can use dataFromAnotherVC here | |
} | |
// rest of the class |
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
let data = tableData[indexPath.row] | |
let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle()) | |
let destVC = storyboard.instantiateViewControllerWithIdentifier("goToHere") as! DestVC | |
destVC.data = data | |
navigationController?.pushViewController(destVC, animated: true) | |
} |
class Shared { | |
static var data: Int! | |
} |
let SCREEN_SCALE = UIScreen.mainScreen().scale | |
private let FAKE_PX_TO_M_RATIO: CGFloat = 80 | |
let IMPULSE = sqrt( | |
UIScreen.mainScreen().bounds.width * | |
SCREEN_SCALE * SCREEN_SCALE / | |
FAKE_PX_TO_M_RATIO | |
) * sqrt(SCREEN_SCALE) * 1.45 |
class MyNode: SKSpriteNode { | |
// init et al | |
deinit { | |
print("MyNode \(name) destroyed.") | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)" | |
PROMPT='%{$fg[blue]%}%n@%m ${ret_status}%{$fg_bold[green]%}%p%{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
import UIKit | |
class ViewController: UIViewController { | |
let tapGestureRecognizer: UITapGestureRecognizer! // make a variable to hold the recognizer | |
@IBOutlet weak var girImage: UIImageView! // add an outlet for your image view | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
yq -Mrj ' .envVars as $e | $e | keys | .[] | "-e \(.)=\($e[.]) "' deployment/values.yaml | |
function envvars() { | |
local selector=$1; shift | |
local files=($@) | |
if [[ -z $files ]]; then | |
files="${selector}" | |
selector=".envVars" | |
fi |