(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| image: docker:19.03 | |
| variables: | |
| REPOSITORY_URL: <AWS_ACCOUNT_ID>.dkr.ecr.<REGION_NAME>.amazonaws.com/<ECR_REPOSITORY_NAME> | |
| REGION: <REGION_NAME> | |
| TASK_DEFINITION_NAME: <TASK_DEFINITION_NAME> | |
| CLUSTER_NAME: <CLUSTER_NAME> | |
| SERVICE_NAME: <SERVICE_NAME> | |
| CPU: <CPU> | |
| MEMORY: <MEMORY> |
| import SwiftUI | |
| fileprivate extension DateFormatter { | |
| static var month: DateFormatter { | |
| let formatter = DateFormatter() | |
| formatter.dateFormat = "MMMM" | |
| return formatter | |
| } | |
| static var monthAndYear: DateFormatter { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| ACTION = build | |
| AD_HOC_CODE_SIGNING_ALLOWED = NO | |
| ALTERNATE_GROUP = staff | |
| ALTERNATE_MODE = u+w,go-w,a+rX | |
| ALTERNATE_OWNER = grantdavis | |
| ALWAYS_SEARCH_USER_PATHS = NO | |
| ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
| APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
| APPLE_INTERNAL_DIR = /AppleInternal | |
| APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
| /*: | |
| This is a concept re-implementation of the @Binding and @State property wrappers from SwiftUI | |
| The only purpose of this code is to implement those wrappers myself | |
| just to understand how they work internally and why they are needed, | |
| ⚠️ This is not supposed to be a reference implementation nor cover all | |
| subtleties of the real Binding and State types. | |
| The only purpose of this playground is to show how re-implementing | |
| them myself has helped me understand the whole thing better |
| -- Hotkey mash | |
| local mash = {"cmd", "alt", "ctrl"} | |
| local mash_move = {"cmd", "ctrl"} | |
| local mash_app = {"shift","ctrl","alt"} | |
| hs.alert("Reloaded Config") | |
| -- instant window resizing | |
| hs.window.animationDuration = 0 |
| public function autocomplete() { | |
| $this->request->params['named']['filter'] = $this->request->data[$this->modelClass]['filter']; | |
| if (!empty($this->request->params['named']['filter']) || $this->request->params['named']['filter'] !== '') { | |
| $this->Prg->commonProcess(); | |
| $this->Paginator->settings = array( | |
| 'conditions' => $this->Location->parseCriteria($this->Prg->parsedParams()), | |
| ); | |
| $this->set('locations', $this->Paginator->paginate()); | |
| } | |
| $this->render('autocomplete', 'ajax'); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |