Skip to content

Instantly share code, notes, and snippets.

View hota1024's full-sized avatar

ほた hota1024

View GitHub Profile
using System;
using UnityEngine;
using Unity.VisualScripting;
using TMPro;
public class SetTmpText : Unit
{
[DoNotSerialize]
public ControlInput inputTrigger;
@hota1024
hota1024 / 3ed65c3f2c13d5171d3af6b496fd06aa...1_Storage.sol
Created April 29, 2021 11:58
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
@hota1024
hota1024 / 1_Storage.sol
Created January 23, 2021 16:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
document.body.innerHTML = `<h1 align="center" color="red">(ΦωΦ) < Hacked by neko</h1>`
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>数あてゲーム</title>
</head>
<body>
<h1>数あてゲーム</h1>
</body>
</html>
@hota1024
hota1024 / Main.cpp
Created January 12, 2020 08:46
OpenSiv3D micro:bit test
# include "Microbit.h"
# include <Siv3D.hpp>
void Main()
{
const Array<SerialPortInfo> infos = System::EnumerateSerialPorts();
Microbit microbit = Microbit::GetFirstMicrobit(infos);
Vec2 playerPosition = Vec2::Zero();
let icons = ['3d_rotation','accessibility','accessibility_new','accessible','accessible_forward','account_balance','account_balance_wallet','account_box','account_circle','add_shopping_cart','alarm','alarm_add','alarm_off','alarm_on','all_inbox','all_out','android','announcement','arrow_right_alt','aspect_ratio','assessment','assignment','assignment_ind','assignment_late','assignment_return','assignment_returned','assignment_turned_in','autorenew','backup','book','bookmark','bookmark_border','bookmarks','bug_report','build','cached','calendar_today','calendar_view_day','camera_enhance','card_giftcard','card_membership','card_travel','change_history','check_circle','check_circle_outline','chrome_reader_mode','class','code','commute','compare_arrows','contact_support','copyright','credit_card','dashboard','date_range','delete','delete_forever','delete_outline','description','dns','done','done_all','done_outline','donut_large','donut_small','drag_indicator','eject','euro_symbol','event','event_seat','exit_to_ap
String.prototype.f19t = function () { return this.charAt(0).toLocaleLowerCase() + this.slice(1, this.length - 1).length + this.charAt(this.length - 1).toLocaleLowerCase() }
console.log('Internationalization'.f19t()) // i18n
@hota1024
hota1024 / Main.cpp
Created August 24, 2018 09:08
PhofifPuzzle
# include <Siv3D.hpp> // OpenSiv3D v0.2.8
const uint Width = 4;
const uint Height = 4;
const uint Area = Width * Height;
const uint TileSize = 64;
size_t GetIndex(int x, int y)