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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Find Text from JSON</title> | |
</head> | |
<body> | |
<h1>Find Text from JSON</h1> |
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 "./App.css"; | |
import LoginBox from "./components/LoginBox"; | |
import { | |
createTheme, | |
CssBaseline, | |
ThemeProvider, | |
useMediaQuery, | |
} from "@mui/material"; | |
import { deepPurple, indigo } from "@mui/material/colors"; |
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
fn main() { | |
println!( | |
"{}", | |
(["なで", "しこ"]) | |
.iter() | |
.flat_map(|&s| std::iter::repeat(s).take(2)) | |
.collect::<String>(), | |
); | |
} |
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
package main | |
import ( | |
"context" | |
"database/sql" | |
"fmt" | |
"log" | |
"github.com/uptrace/bun" | |
"github.com/uptrace/bun/dialect/sqlitedialect" |
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
use futures::{ | |
future::{BoxFuture, FutureExt}, | |
task::{waker_ref, ArcWake}, | |
}; | |
use std::future::Future; | |
use std::pin::Pin; | |
use std::sync::{Arc, Mutex}; | |
use std::task::{Context, Poll}; | |
enum TsukijiShijoStatus { |
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
use std::time::Duration; | |
use std::sync::{Arc, Mutex}; | |
use std::thread; | |
enum TsukijiShijoStatus { | |
Opening, | |
Closed, | |
} | |
impl ToString for TsukijiShijoStatus { |
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
use std::sync::mpsc; | |
use std::thread; | |
fn main() { | |
let (sender1, recceiver) = mpsc::channel(); | |
let sender2 = mpsc::Sender::clone(&sender1); | |
let _ = thread::spawn(move || { | |
let data = vec!["One".to_string(), "Two".to_string(), "Three".to_string(), "Four".to_string()]; |
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 * as ts from "https://esm.sh/typescript"; | |
interface BaseNode { | |
pos: number; | |
end: number; | |
kind: number; | |
id: number; | |
flags: number; | |
modifierFlagsCache: number; | |
transformFlags: number; |
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
open System | |
type Pattern = | |
| Shika | |
| Noko | |
| Koshi | |
| Tan | |
member self.String() = | |
match self with |
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
puts [("しか" * 1), ("のこ" * 3), ("こし" * 1), ("たん" * 2)].join |
NewerOlder