Skip to content

Instantly share code, notes, and snippets.

View hota1024's full-sized avatar

ほた hota1024

View GitHub Profile
@hota1024
hota1024 / about.md
Created September 6, 2017 14:43
hello world

僕の知っている限りのhello worldプログラムです。

@hota1024
hota1024 / README.md
Created September 21, 2017 07:30
Is project comment by scratcher?

Is project comment by scratcher?

プロジェクトにコメントしたユーザーの何%がScratcherかNewScratcherなのかを調べることが出来ます。

@hota1024
hota1024 / Bullet.cs
Last active September 30, 2017 00:00
僕がUnityを初めて気がついたこと[0] ref: http://qiita.com/hota1024/items/3865406620ca5b638173
public class Bullet : MonoBehaviour{
[SerializeField]
float angle;
[SerializeField]
float speed;
}
@hota1024
hota1024 / Camera.cs
Created October 19, 2017 12:10
僕がUnityを初めて気がついたこと[1] ref: http://qiita.com/hota1024/items/c4bcc78f617a8109866b
public class Camera : MonoBehaviour{
void Start(){
GetComponent<UnityEngine.Camera>().backgroundColor = Color.red;
}
}
@hota1024
hota1024 / file0.txt
Created December 28, 2017 09:10
ターミナル(SSH)でさくらインターネットのレンタルサーバーにログインする ref: https://qiita.com/hota1024/items/325fb173c47bb7e37006
ssh アカウント名@初期ドメイン(xxx.sakura.ne.jp)
@hota1024
hota1024 / Palette.cs
Created March 31, 2018 13:27
自分のUnityで使う命名規則とかファイル構成とかのメモ ref: https://qiita.com/hota1024/items/3e2f42125678be992646
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Utils{
class Palette{
static const Color primary = new Color(0f, 0.5f, 1.0f);
static const Color primary = new Color(0f, 0.1f, 0.5f);
static const Color accent = new Color(1.0f, 0f, 1.0f);
}
@hota1024
hota1024 / Boxol.js
Created August 23, 2018 08:55
Boxol.js
const Boxol = {
Marked (data) {
let result = ''
let maxLength = 0
data.forEach(line => {
maxLength = Math.max(maxLength, line.length)
console.log(maxLength)
})
@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)
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
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