start new:
tmux
start new with session name:
tmux new -s myname
| project = str(local('gcloud config get-value project')).strip() | |
| read_file(str(local('which capdctl')).rstrip('\n')) | |
| k8s_yaml(local('capdctl platform -capi-image gcr.io/kubernetes1-226021/cluster-api-controller-amd64:dev -bp-image gcr.io/kubernetes1-226021/cluster-api-bootstrap-provider-kubeadm:dev -bp-ref master')) | |
| custom_build( | |
| 'gcr.io/' + project +'/manager', | |
| 'GOOS=linux go build ./cmd/manager && docker build -t $EXPECTED_REF .', | |
| ['.'], | |
| ignore='manager', |
| <?hh // strict | |
| class Node { | |
| private int $value; | |
| public ?Node $left = null; | |
| public ?Node $right = null; | |
| public function __construct(int $value) { | |
| $this->value = $value; | |
| } |
| /* | |
| * Copyright (C) 2008-2013 Stanislaw Findeisen <[email protected]> | |
| * | |
| * This file is part of phphard. | |
| * | |
| * phphard is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * |
| (•_•) | |
| ( •_•)>⌐■-■ | |
| (⌐■_■) |
| <?hh | |
| class Wrapper<Tval as num> { | |
| private Tval $value; | |
| public function __construct(Tval $value) { | |
| $this->value = $value; | |
| } | |
| public function setValue(Tval $value): void { | |
| $this->value = $value; |
| <?hh | |
| class Wrapper<Tval as num> { | |
| private Tval $value; | |
| public function __construct(Tval $value) { | |
| $this->value = $value; | |
| } | |
| public function setValue(Tval $value): void { | |
| $this->value = $value; |
| <?hh // strict | |
| class Caller { | |
| public function set(string $property_name, Foo $object): void { | |
| $object->$property_name = 'poopy'; | |
| } | |
| public function call(string $property_name, Foo $object): string { | |
| return $object->$property_name; | |
| } | |
| } |
| class A | |
| @x = 0 | |
| def self.give_list | |
| { | |
| 'blah' => :x | |
| } | |
| end | |
| def self.run_it(obj) |
| /* base view template */ | |
| var ViewTemplate = Backbone.View.extend({ | |
| // containing element | |
| el: $('body'), | |
| // events | |
| events: {}, | |
| // initialize |