const List = () => {
return useQuery(gql`items(variant: "recent")` { min: 10 })
.map(({ id: idPromise }) => <Item id={idPromise} />)
}
const Item = ({ id: idPromise }) => {
const data = useQuery(gql`node(id: $id)`, { id: idPromise })
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
| owner= | |
| repo= | |
| gh api repos/{owner}/{repo}/environments\?per_page=100 | | |
| jq '.environments[] | select(.name | (contains("production") or contains("preview")) | not) | .node_id' | | |
| xargs -n1 -I% sh -c " | |
| gh api graphql -F query=' | |
| mutation { | |
| deleteEnvironment(input: { id: \"%\"}) { | |
| clientMutationId |
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
| declare global { | |
| interface Window { | |
| __openSourceHandlers: { | |
| teardown: () => unknown | |
| } | null | |
| } | |
| } | |
| if (process.env.NODE_ENV === "development") { | |
| ;(function () { |
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
| module TempleRailsAnnotate | |
| def call(template, source = nil) | |
| opts = {}.update(self.class.options).update(file: template.identifier) | |
| result = '' | |
| if ActionView::Base.annotate_rendered_view_with_filenames && template.format == :html | |
| whatpartial = "(file://#{template.identifier})" | |
| result << "@output_buffer.safe_concat('<!-- BEGIN #{template.short_identifier}#{whatpartial} -->');" | |
| end | |
| result << self.class.compile((source || template.source), opts) | |
| if ActionView::Base.annotate_rendered_view_with_filenames && template.format == :html |
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
| /// <reference types="requestidlecallback-polyfill" /> | |
| import React, { createElement, useEffect, useState } from "react" | |
| if (typeof window !== "undefined") { | |
| require("requestidlecallback-polyfill") | |
| } | |
| const components = { | |
| Test: () => { | |
| return <div>Hello!</div> |
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
| # Generated by debtap | |
| # Maintainer: Katsuma | |
| # Contributor: Katsuma | |
| pkgname=screen-desktop-bin | |
| pkgver=1.0.33 | |
| pkgrel=1 | |
| pkgdesc="Low latency videoconferencing & screen sharing with multiplayer drawing & control. Screen is a multiplayer screen sharing app that lets you work together like you’re in the same room." | |
| arch=('x86_64') | |
| url="https://screen.so" | |
| license=('') |
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
| *://*.stackovernet.com/* | |
| *://code.i-harness.com/* | |
| *://*.voidcc.com/* | |
| *://*.tutorialmore.com/* | |
| *://qastack.*/* | |
| *://askjapan.me/* | |
| *://www.codetd.com/* | |
| *://www.it-swarm.dev/* | |
| *://stackoverrun.com/* | |
| *://www.it-swarm-ja.tech/* |
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
| function onOpen() { | |
| var ui = SpreadsheetApp.getUi(); | |
| var menu = ui.createMenu('Nicehash'); | |
| menu.addItem('データを取得', 'myFunction'); | |
| menu.addToUi(); | |
| } | |
| function myFunction() { | |
| var doc = SpreadsheetApp.getActiveSpreadsheet(); |
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
| package main | |
| import ( | |
| "fmt" | |
| "strconv" | |
| ) | |
| var models = map[uint8]string{ | |
| 0x11: "Mini", | |
| 0x12: "Giant", |
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
| #!/bin/sh | |
| set -ex | |
| SSH_HOST=$1 | |
| MODEL_NAME=$2 | |
| OUTPUT_FILE="result_$MODEL_NAME.txt" | |
| REMOTE_CMD="tail -n +1 /config/* /usr/bin/compile_time" | |
| if [ -n "$PASSWORD" ]; then |