I hereby claim:
- I am mzgnr on github.
- I am mzgnr (https://keybase.io/mzgnr) on keybase.
- I have a public key whose fingerprint is BD50 74D5 A9F2 1B89 F778 6628 5FFA C530 685F 1082
To claim this, I am signing this object:
| /// <reference path="./.sst/platform/config.d.ts" /> | |
| import { resolve as pathResolve } from "node:path"; | |
| import { writeFileSync as fsWriteFileSync } from "node:fs"; | |
| import { asset as pulumiAsset, all as pulumiAll } from "@pulumi/pulumi"; | |
| // Specify HCLOUD_TOKEN and CLOUDFLARE_API_TOKEN before running | |
| // Permissions for CLOUDFLARE_API_TOKEN: | |
| // - Account Settings:Read | |
| // - Zone Settings:Edit |
| { | |
| "working_dir": "${project_path:${folder}}", | |
| "shell_cmd": "if pgrep ${project_base_name} &> /dev/null ; then pkill ${project_base_name} ; fi && make && sleep 1 && open ${project_path:${folder}}/bin/${project_base_name}.app", | |
| "file_regex": "^(.*):([0-9]*):[0-9]*:[fatal ]+error: ", | |
| "selector": "source.c++", | |
| "variants": [ | |
| { | |
| "name": "Build & Run (macOS)", | |
| "working_dir": "${project_path:${folder}}", |
I hereby claim:
To claim this, I am signing this object:
| // anwswer to http://stackoverflow.com/questions/41915285/polling-with-rxswift-and-parse-server | |
| func myObs() -> Observable<Int> { | |
| return Observable<Int>.create { observer in | |
| let sig = Observable<Int>.interval(1.0, scheduler: MainScheduler.instance) | |
| let subscription = | |
| sig.subscribe(onNext: { num in | |
| observer.onNext(num) | |
| if num == 10 { |
| - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| static NSString *CellIdentifier = @"Cell"; | |
| UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; | |
| // Configure the cell... | |
| if (!cell) { | |
| cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault | |
| reuseIdentifier:CellIdentifier] autorelease]; | |
| } |
| import UIKit | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var tableView: UITableView! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| // Do any additional setup after loading the view, typically from a nib. | |
| self.tableView.estimatedRowHeight = 44 |
| // References | |
| // https://github.com/damienpontifex/BlogCodeSamples/tree/master/SelfSizingTextViewTableCell | |
| // https://pontifex.azurewebsites.net/self-sizing-uitableviewcell-with-uitextview-in-ios-8/ | |
| // | |
| // In UITableViewController | |
| // tableView.rowHeight = UITableViewAutomaticDimension; | |
| // tableView.estimatedRowHeight = DefaultCellHeight; | |
| // | |
| import UIKit |
| ;; please install web-mode | |
| ;; in your .emacs.d/init.el | |
| (add-to-list 'auto-mode-alist '(".*/react/.*\\.js[x]?\\'" . web-mode)) | |
| (setq web-mode-content-types-alist | |
| '(("jsx" . "/.*/react/.*\\.js[x]?\\'"))) |
| . | |
| ├── actions | |
| ├── stores | |
| ├── views | |
| │ ├── Anonymous | |
| │ │ ├── __tests__ | |
| │ │ ├── views | |
| │ │ │ ├── Home | |
| │ │ │ │ ├── __tests__ | |
| │ │ │ │ └── Handler.js |