I hereby claim:
- I am morishin on github.
- I am morishin (https://keybase.io/morishin) on keybase.
- I have a public key ASA4nFsuIYjGBqzlDil1562qvKAuLh1HROjxNFdqDPY9eAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. |
function v() { | |
setopt +o nomatch # suppress zsh message | |
if [ -z $1 ]; then | |
DIR="." | |
else | |
DIR=$1 | |
fi | |
WORKSPACE=`find $DIR -maxdepth 1 -name *.code-workspace 2>/dev/null` | |
if [ $? -eq 0 ] && [ -n "$WORKSPACE" ]; then | |
DIR=$WORKSPACE |
struct FNV1A { | |
static let FNVOffsetBasis: UInt = 14695981039346656037 | |
static let FNVPrime: UInt = 1099511628211 | |
static func digest(of source: String) -> UInt { | |
var hash = FNVOffsetBasis | |
for byte in [UInt8](source.utf8) { | |
hash ^= UInt(byte) | |
hash &*= FNVPrime | |
} |
$ docker run --rm theyahya/sherlock morishin | |
."""-. | |
/ \ | |
____ _ _ _ | _..--'-. | |
/ ___|| |__ ___ _ __| | ___ ___| |__ >.`__.-""\;"` | |
\___ \| '_ \ / _ \ '__| |/ _ \ / __| |/ / / /( ^\ | |
___) | | | | __/ | | | (_) | (__| < '-`) =|-. | |
|____/|_| |_|\___|_| |_|\___/ \___|_|\_\ /`--.'--' \ .-. | |
.'`-._ `.\ | J / | |
/ `--.| \__/ |
import UIKit | |
import PlaygroundSupport | |
let stackView = UIStackView() | |
stackView.distribution = .equalSpacing | |
stackView.alignment = .center | |
stackView.translatesAutoresizingMaskIntoConstraints = false | |
let bg = UIView(frame: CGRect(x: 0, y: 0, width: 500, height: 500)) | |
bg.backgroundColor = .lightGray |
protocol Pokemon { | |
associatedtype PokemonType | |
var name: String { get } | |
var type: PokemonType { get } | |
} | |
struct Electric { | |
// something | |
} |
import { AsyncStorage } from 'react-native'; | |
export default class GenericAsyncStorage { | |
static async getItem<T>(key: string, callback?: (error?: Error, result?: T) => void): Promise<T> { | |
const item = await AsyncStorage.getItem(key); | |
return JSON.parse(item); | |
} | |
static async setItem<T>( | |
key: string, |