Skip to content

Instantly share code, notes, and snippets.

View touyou's full-sized avatar
💻
Develop Design

Fujii Yosuke touyou

💻
Develop Design
View GitHub Profile
#include <metal_stdlib>
#include <SwiftUI/SwiftUI_Metal.h>
using namespace metal;
// ref: https://www.shadertoy.com/view/ltffzl
float3 N13(float p) {
// from DAVE HOSKINS
float3 p3 = fract(float3(p) * float3(.1031,.11369,.13787));
p3 += dot(p3, p3.yzx + 19.19);
@touyou
touyou / Raindrop.metal
Last active October 20, 2023 09:14
雨粒シェーダー Metal / layerEffect版
#include <metal_stdlib>
#include <SwiftUI/SwiftUI_Metal.h>
using namespace metal;
// ref: https://www.shadertoy.com/view/ltffzl
float3 N13(float p) {
// from DAVE HOSKINS
float3 p3 = fract(float3(p) * float3(.1031,.11369,.13787));
p3 += dot(p3, p3.yzx + 19.19);
@touyou
touyou / Adv1.java
Created May 9, 2020 03:51
Processing研修
size(500, 500);
noStroke();
int side = 20;
for (int i = 0; i < 100; i++) {
if (i % 2 == 0) {
fill(255, 255, 255);
} else {
fill(0, 0, 0);
}
rect(i * side, 0, side, height);
@touyou
touyou / gist:29733c2eeb9f66f1934c38fcf970a873
Created March 18, 2020 00:00
コミットメッセージ絵文字 メモ
https://qiita.com/Jung0/items/0a9a7a97a2c17f92d3c5
# 🎉 :tada: 初めてのコミット(Initial Commit)
# 🔖 :bookmark: バージョンタグ(Version Tag)
# ✨ :sparkles: 新機能(New Feature)
# 🐛 :bug: バグ修正(Bugfix)
# ♻️ :recycle: リファクタリング(Refactoring)
# 📚 :books: ドキュメント(Documentation)
# 🎨 :art: デザインUI/UX(Accessibility)
# 🐎 :horse: パフォーマンス(Performance)
# 🔧 :wrench: ツール(Tooling)
@touyou
touyou / flow.md
Last active July 21, 2018 12:59
新Macbook環境構築計画&メモ一覧

基本的な流れ

  • 一旦コマンドラインで入れるわけではないものを一気に入れてしまう
  • 最優先はXcode, Chrome, Google日本語入力, Karabiner, iTerm2の順。これで基本的な設定がしやすくなるはず
  • コマンドラインはzsh→zshの設定→iTerm2の設定→brew→brewの設定→git→言語系→vimの順にする。
    • これはベースからというのとvimの設定などはフルスクラッチでもう一度凝り直したいので時間がかかるから。
    • brewが終わった時点でcask系は裏で走らせておく

環境構築記事に関して

import UIKit
class ImageButton: UIButton {
override init(frame: CGRect) {
super.init(frame: frame)
}
required init?(coder aDecoder: NSCoder) {
@touyou
touyou / GreedyMaze.swift
Created November 12, 2017 04:05
人工知能に使われるようなアルゴリズムをいろんな言語で実装してみた
// 貪欲最適探索で迷路探索
import Foundation
class Maze {
struct Point: Comparable, Equatable {
let x: Int
let y: Int
let label: String
let connectedLabel: [String]
@touyou
touyou / sceneManager.cpp
Created August 10, 2017 23:42
ofxSceneManagerを使って時間ごとにシーンを切り替えるMusicVideo的なものを作るイメージ
void testApp::setup() {
sceneManager.addScene(ofPtr<ofxScene>(new FirstScene));
sceneManager.addScene(ofPtr<ofxScene>(new SecondScene));
sceneManager.addScene(ofPtr<ofxScene>(new ThirdScene));
sceneManager.addScene(ofPtr<ofxScene>(new ForthScene));
sceneManager.scenes.at(0)->setSceneDuration(0.0, 10.0,0.0);
sceneManager.scenes.at(1)->setSceneDuration(0.0, 7.0,0.0);
sceneManager.scenes.at(2)->setSceneDuration(0.0, 5.3,0.0);
sceneManager.scenes.at(3)->setSceneDuration(0.0, 20.0,0.0);
@touyou
touyou / utas-beautify.css
Created June 14, 2017 03:24
UTAS学務システムを現代に戻すためのStylish用CSS
.portlet {
border: none;
box-shadow: none;
}
#tabtable .tabcell-sel {
border: none;
padding-bottom: 3px;
}
@touyou
touyou / my_feeling.md
Created March 4, 2017 03:14
try! Swift2017 リンク一覧(非公式個人用メモ)

発表を聞きながらまとめたこと

try! Swift レポート一日目(スクール前まで)

開始前

  • Slackに流れてきた時間より少し遅れて到着。ついたらいのっちえぐっちしばさんがすでにTシャツ着てて(他の人全然着てない中)さすがメンターってなったw
  • ステッカー大量にもらって貼りきれないなって思う
  • Wi-Fiムリ、Slackつながらない