View HaseBuzz
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
hsgw is Awesome | |
hsgw is Awesome | |
しずかなhsgw | |
hsgw is Awesome | |
こはんのhsgw | |
しずかなhsgw | |
うるせえhsgw | |
hsgw is Awesome | |
しずかなhsgw | |
こはんのhsgw |
View switch_tester.rs
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 serde::Deserialize; | |
use wasm_bindgen::prelude::*; | |
use yew::prelude::*; | |
use yew::services::console::ConsoleService; | |
use yew::services::fetch::{FetchService, FetchTask, Request, Response}; | |
use yew::services::keyboard::{KeyListenerHandle, KeyboardService}; | |
use yew::web_sys::KeyboardEvent; | |
use yew::{ | |
format::{Json, Nothing}, | |
prelude::*, |
View switch_tester.rs
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 wasm_bindgen::prelude::*; | |
use wasm_bindgen::JsCast; | |
use yew::prelude::*; | |
use yew::services::console::ConsoleService; | |
use yew::web_sys::KeyboardEvent; | |
mod constants; | |
struct Model { | |
key: String, | |
link: ComponentLink<Self>, |
View hitoslot.rs
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
async fn get_command_type(msg: &Message) -> (CommandTypeId,u8){ | |
let command_str = &msg.content; | |
if let Ok(n) = scan_fmt(command_str, "!ひよこスロット*{d}", u8) { | |
if n >= 10 { | |
return (CommandTypeId::HiyokoSlot,1); | |
} else { | |
return (CommandTypeId::HiyokoSlot,n); | |
} | |
} else if command_str.starts_with("!ひよこスロット") { |
View crypter.js
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
const fs = require('fs') | |
const crypto = require('crypto') | |
const readline = require('readline'); | |
const ALGORITHM = 'aes-256-cbc'; | |
// main | |
// node crypter.js [enc/dec] [in filename] [out filename] | |
(async () => { | |
const args = process.argv.slice(2); |
View 三目ならべ.re
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
type square = | |
| Blank | |
| O | |
| X; | |
let stringOfSquare = square => | |
switch (square) { | |
| Blank => "b" | |
| O => "o" | |
| X => "x" |
View avrdude_for_🐥
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
#!/bin/sh | |
printf "Detecting USB port, reset your controller now." | |
ls /dev/tty* > /tmp/1 | |
while [ -z $USB ]; do | |
sleep 0.5 | |
printf "." | |
ls /dev/tty* > /tmp/2 | |
USB=`comm -13 /tmp/1 /tmp/2 | grep -o '/dev/tty.*'` | |
mv /tmp/2 /tmp/1 |
View index.elm
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
module Main exposing (Model, Msg(..), init, main, update, view) | |
import Browser | |
import Html exposing (Html, button, div, input, p, text) | |
import Html.Attributes exposing (class, href, placeholder, src, style, type_) | |
import Html.Events exposing (onClick, onInput) | |
import Time exposing (Posix, Zone, utc) | |
View clickpost_from_booth.rb
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
require 'csv' | |
CLICKPOST_HEADER = %w(お届け先郵便番号 お届け先氏名 お届け先敬称 お届け先住所1行目 お届け先住所2行目 お届け先住所3行目 お届け先住所4行目 内容品) | |
booth_order_csv_path = ARGV.shift | |
booth_order_csv = CSV.read(booth_order_csv_path, 'r:BOM|UTF-8', headers: true) | |
click_post_data = booth_order_csv.map do |row| | |
[ | |
row['郵便番号'], |
View 40_percent_emulation.json
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
{ | |
"title": "40percent", | |
"rules": [ | |
{ | |
"description": "add new layer(Space+?)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar", |
NewerOlder