- Rename
git-pr-diff.rb
togit-pr-diff
. - Move
git-pr-diff
intoPATH
ed folder.
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 { Ai } from "@cloudflare/ai"; | |
import { LoaderFunctionArgs } from "@remix-run/cloudflare"; | |
export async function loader({ request, context }: LoaderFunctionArgs) { | |
const url = new URL(request.url); | |
const query = url.searchParams.get("query"); | |
if (!query) { | |
return new Response('Please provide a query parameter', { | |
status: 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
import React from 'react'; | |
function Hoge(props) { | |
const [count, setCount] = React.useState(0); | |
const [loading, setLoading] = React.useState(false); | |
const [error, setError] = React.useState(null); | |
const [onceLoaded, setOnceLoaded] = React.useState(false); | |
// 初回読み込み | |
React.useEffect(() => { |
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
#! /usr/bin/ruby | |
# The MIT License (MIT) | |
# Copyright (c) 2020 Yukiya Nakagawa <[email protected]> | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWI |
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 React from 'react'; | |
import { StyleProp, TextStyle, StyleSheet } from 'react-native'; | |
import { Headline as PaperHeadline } from 'react-native-paper'; | |
export const Headline = (props: { | |
style?: StyleProp<TextStyle>; | |
children: string; | |
}) => | |
React.cloneElement( | |
<PaperHeadline style={StyleSheet.flatten([styles.headline, props.style])}> |
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
export function publicFunction() { | |
} | |
function complexPrivateFunctionA() { | |
} | |
function complexPrivateFunctionB() { | |
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 React from 'react'; | |
import { View, Text } from 'react-native'; | |
import { WebView } from 'react-native-webview'; | |
const HybridComponent: React.FC = () => ( | |
<View> | |
<Text>Rendering as native text with TextView/UIView</Text> | |
<WebView> | |
<View> | |
<Text>Rendering as DOM tree with WebView/WkWebView</Text> |
「うちのお客さんがね、Webサービス作りたいゆーんやけど」
「そうなんや」
「ユーザーへの届け方を忘れたらしいねん」
「ユーザーへの届け方を忘れるってどうなってんねん」
「いろいろ聞くんやけどな、全然わからへんねん」
#2d2d2d
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 React from 'react'; | |
export default class ClassComponent extends React.Component { | |
componentDidMount() { | |
if (this.ref) { | |
const event = new CustomEvent('initializedWithClassComponent', { detail: this.ref }); | |
window.dispatchEvent(event); | |
} | |
} |
NewerOlder