Skip to content

Instantly share code, notes, and snippets.

View morishin's full-sized avatar
🦍
ウホホ

Shintaro Morikawa morishin

🦍
ウホホ
View GitHub Profile
package main
import (
"fmt"
"time"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.

listmonster

head

irb(main):005:0> a = [1, 2, 3]
=> [1, 2, 3]
irb(main):007:0> a.first
=> 1
irb(main):008:0> a
@morishin
morishin / v.sh
Last active May 15, 2020 01:34
Open Visual Studio Code command
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
}

🎉🎉🎉 Welcome @rrreeeyyy & @devefox !!! 🎉🎉🎉

  • プロジェクト概要、メンバー
  • フェーズ1概要、Principle、Figma

7/16~19週

ゴール

  • 開発メンバーがプロジェクトの現状を理解する
$ 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,
import * as React from 'react';
import { KeyboardAvoidingView, KeyboardAvoidingViewProps, Platform, View } from 'react-native';
export default class _KeyboardAvoidingView extends React.Component<KeyboardAvoidingViewProps, {}> {
render() {
if (Platform.OS === 'ios') {
return <KeyboardAvoidingView {...this.props} />;
} else {
return <View {...this.props} />;
}