{ "did": "did:plc:7bus6cvuv3yc4l4xzhteobqn" }
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
| // first, start with the usage in a react component, very simple and you just get access to state in stateProvider below, | |
| // HOC injects our location-relation props from our state provider | |
| import { WithLocationProps } from "../state/locationState"; | |
| import { withLocation } from "../state/stateProvider"; | |
| interface Props {} | |
| class Location extends React.Component<Props & WithLocationProps> { | |
| render() { |
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
| 0x57e9088cCAe9Ba689c8EDAE30b8925d1E121A0C7 |
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
| /** | |
| `ZebraPrinterStatus` is a list of status responses we handle from the printer or during a connection attempt with the printer. | |
| */ | |
| enum ZebraPrinterStatus { | |
| case Ready | |
| case NotReady([ZebraPrinterError]) | |
| case Unknown | |
| func message() -> String { | |
| switch self { |
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
| protocol TableValuable { | |
| associatedtype TableItem | |
| static func loadingValue() -> TableItem | |
| static func failedValue() -> TableItem | |
| func value() -> TableItem | |
| } | |
| enum TableState<T: TableValuable> { | |
| case Loading | |
| case Failed |
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
| var autopersist: String? { | |
| set { | |
| if let newValue = newValue { | |
| Pantry.pack(newValue, key: "autopersist") | |
| } | |
| } | |
| get { | |
| return Pantry.unpack("autopersist") | |
| } | |
| } |
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
| var Slack = require('cloud/slack.js'); | |
| var slack = new Slack('https://hooks.slack.com/services/INCOMING_SLACK_WEBHOOK_URL'); | |
| return slack.send({text: msg}).then(function(){ | |
| // success | |
| }, function(error){ | |
| // error | |
| }); |
I hereby claim:
- I am nickoneill on github.
- I am nickoneill (https://keybase.io/nickoneill) on keybase.
- I have a public key whose fingerprint is 1461 8A87 015A 2A12 91FF 1BBF 6F16 159E 7BA1 11F2
To claim this, I am signing this object:
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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title></title> | |
| <meta name="description" content=""> |
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
| AVAsset *asset = [AVAsset assetWithURL:self.videoPaths[0]]; | |
| AVAssetExportSession *export = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetPassthrough]; | |
| [export setOutputURL:temp]; | |
| [export setOutputFileType:AVFileTypeMPEG4]; | |
| NSLog(@"export started"); | |
| [export exportAsynchronouslyWithCompletionHandler:^{ | |
| NSLog(@"export done: %d",[export status]); | |
| UIDocumentInteractionController *interactionController = [UIDocumentInteractionController interactionControllerWithURL:temp]; |
NewerOlder