This file contains 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 Observation | |
@Observable | |
final class ObservableDictionary<Key: Hashable, Value> { | |
@ObservationIgnored fileprivate var backingDictionary: Dictionary<Key, Value> = [:] | |
public subscript(key: Key) -> Value? { | |
get { | |
let keyPath = \ObservableDictionary<Key, Value>.backingDictionary[key] | |
access(keyPath: keyPath) |
This file contains 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
( function() { | |
/** | |
* A helper function to visualize DOMRect or set of DOMRect instances. | |
* | |
* Subsequent calls will remove previously marked elements. | |
* | |
* Debug a element currently focused in your devtools inspector. | |
* window.markRect( $0.getBoundingClientRect() ); | |
* // Debug a selection. | |
* window.markRect( document.getSelection().getRangeAt( 0 ).getClientRects() ); |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDO2VOFP8l4mmyi04MwHOYyswr0dweS2GEbRslQnqsw5dY1Xfs+oWszevPeGJ6KRsCnd/ir7P+yrEOLK7GeybMqHMoIL0Ue6A+u8f+GtsfEGaH9TyWaNTmaXsmE45UY7m1Sz14rp5uITW7AYkP4b1aH5UWQmXloSWsCJDcQsViX4wKr9xqazZ8ThRy7uMTKnCD1sWRtPUGSV9PQ+Wj7Vh6BJO140JPyxp9NAIwt1G5zxWAJblcYicAzxiNcq76H46N3P59C1v1dUmsVNJRMdtGq2pfr4jY80JpUx86Scy9V10dy18zjwQBYRTtJwvqZ0xjfXtn+AeR+I7Or1Tvb0ev1 [email protected] |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4aiQfU9mpfjB6hDC1+JXmNHCOfg8r2stRZY3xodGp9+W6IIfxDZ5Yz2Nx1DgEvTNCpJSnBpwoyOJ0/zsdVt0H3SLfwPewPGZFoZdTQn9JRmS/vFLYVChtfDbkw33XqyV3H9tT53bQG5K6O3+vbwfOjIXkDi4E/qoEgvOR5UG6Ey6KPLVb7w/6AePGQe+cL1CAip0i/kEwkyh0U3BrPtuV5WoUeCgJx9ihkmYEu9ecCie50N7Q48gWp8D72ivOyv9AVFsFyjEJDBgvVS5R2Muag/LIrylEsQY9o1ow5wFMztaACPGSoc0+8NM9FsW9HUImwl5M94WRzr3FHBAcnU3h [email protected] |
This file contains 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
#!/bin/bash | |
# Put your files in origin folder | |
cd `dirname $0` | |
mkdir -p watermarked/origin | |
find origin -type d > watermarked/.dirs.txt | |
pushd watermarked |
This file contains 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
{ | |
"name": "awesomeblockchainapp", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"react": "^16.2.0", | |
"react-dom": "^16.2.0", | |
"react-scripts": "1.1.1" | |
}, | |
"scripts": { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
@font-face { | |
font-family: "Fira Code Patched"; | |
font-style: normal; | |
font-weight: 200; | |
src: url('https://cdn.rawgit.com/ryanoasis/nerd-fonts/1.2.0/patched-fonts/FiraCode/Light/complete/Fura%20Code%20Light%20Nerd%20Font%20Complete.otf') format('opentype'); | |
} | |
@font-face { | |
font-family: "Fira Code Patched"; | |
font-style: normal; | |
font-weight: 400; |
This file contains 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
myModifierMode = hs.hotkey.modal.new() | |
function binderToMods(from,to,mods,toMods) | |
local function f () | |
myModifierMode.triggered = true | |
hs.eventtap.keyStroke(toMods, to, 1000) | |
end | |
myModifierMode:bind(mods, from, f, nil, f ) | |
end |
This file contains 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
declare module "react-native-fbsdk" { | |
import * as React from 'react' | |
export interface LoginResult { | |
isCancelled: boolean, | |
grantedPermissions?: Array<string>, | |
declinedPermissions?: Array<string>, | |
} | |
export type DefaultAudience = 'friends' | 'everyone' | 'only_me'; |
NewerOlder