-
Install
colordiffusing Homebrew:brew install colordiff -
Add function to your
~/.bash_profile:
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
| import { defer, interval, Observable } from 'rxjs'; | |
| import { finalize, takeUntil } from 'rxjs/operators'; | |
| import * as vscode from 'vscode'; | |
| /** | |
| * Gets an observable that emits once and completes when vscode starts shutting down | |
| * @param context vscode context to add the shutdown disposable to | |
| */ | |
| function addShutdownObserver({subscriptions}: vscode.ExtensionContext): Observable<void> { | |
| return new Observable((s) => { |
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
| apiVersion: apps/v1 | |
| kind: StatefulSet | |
| metadata: | |
| name: repro | |
| spec: | |
| serviceName: "repro" | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: repro |
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
| PORTB = $6000 | |
| PORTA = $6001 | |
| DDRB = $6002 | |
| DDRA = $6003 | |
| PCR = $600C | |
| ; LCD pins | |
| E = %10000000 | |
| RW = %01000000 | |
| RS = %00100000 |
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
| with ...: | |
| for ...: | |
| if ...: | |
| try: | |
| variable = assignment | |
| # The fact that I can do this angers me | |
| print(variable) | |
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
| #define withHexCode hex colorWithRed:(hex >> 32) green:((hex & 0x00FF00) >> 16) blue:(hex & 0x00000FF) | |
| [UIColor withHexCode(0xeccecc)]; | |
| [UIColor withHexCode(0xeccecc) alpha:1.0]; |
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
| <link rel="import" href="../components/polymer/polymer.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
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
| <link rel="import" href="../topeka-elements/category-icons.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; |
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
| import Foundation | |
| // Simple Regex wrapper for simplicity | |
| struct Regex { | |
| let pattern: String | |
| let options: NSRegularExpressionOptions! | |
| private var matcher: NSRegularExpression { | |
| return NSRegularExpression(pattern: self.pattern, options: self.options, error: nil) | |
| } |
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
| /** | |
| * Loads the default users timeline into the timeline view | |
| */ | |
| - (void)loadTimeline | |
| { | |
| // Get first Twitter account on device | |
| ACAccountStore *store = [ACAccountStore new]; | |
| ACAccountType *typeTwitter = [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter]; | |
| // Request access to account information |
NewerOlder