Skip to content

Instantly share code, notes, and snippets.

View sgnm's full-sized avatar

asagi_tokyo sgnm

View GitHub Profile
@UnaNancyOwen
UnaNancyOwen / tutorial.md
Last active December 1, 2023 03:44
How to write CMakeLists

CMakeLists Tutorial

ここでは、基本的な設定スクリプト(CMakeLists.txt)の書き方を紹介します。
(主にVisual C++向けに説明します。)

Basic Uses

CMakeでC++のプロジェクトを生成するための最小限必要のスクリプトを説明します。

  • cmake_minimum_required
    CMakeの最小要求バージョンを設定します。
@chimanaco
chimanaco / of_frequent_code
Last active May 15, 2016 11:33
oF to edit later
/* -------------------------------
DEBUG
------------------------------- */
/* prints Output sentence on screen */
cout << "DONE!: \n";
cout << "Position: " << position << "\n";
ofLog() << " event at " << f << endl;
/* -------------------------------
@syun77
syun77 / Token.cs
Created February 5, 2015 00:11
Unityのゲームオブジェクトを使いやすくするクラス
using UnityEngine;
using System.Collections;
/// キャラクター基底クラス.
/// SpriteRendererが必要.
[RequireComponent (typeof(SpriteRenderer))]
public class Token : MonoBehaviour
{
/// プレハブ取得.
/// プレハブは必ず"Resources/Prefabs/"に配置すること.
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active June 2, 2025 14:28
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@tsabat
tsabat / zsh.md
Last active April 21, 2025 07:22
Getting oh-my-zsh to work in Ubuntu