Skip to content

Instantly share code, notes, and snippets.

View Double-oxygeN's full-sized avatar
👑
Nim is great!

Yuya Shiratori Double-oxygeN

👑
Nim is great!
View GitHub Profile
@Double-oxygeN
Double-oxygeN / FS.fsproj
Created January 21, 2024 07:14
Godot 4 + F#: 2D game official tutorial
<Project Sdk="Godot.NET.Sdk/4.2.1">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="TaskUtils.fs" />
<Compile Include="Player.fs" />
<Compile Include="Mob.fs" />
<Compile Include="HUD.fs" />
@Double-oxygeN
Double-oxygeN / Makefile
Created September 24, 2022 09:42
C++ Makefile
CC := g++
TARGET ?= $(shell basename `readlink -f .`)
CPPFLAGS ?= -Wall -Wextra -Werror \
-Wcast-align \
-Wcast-qual \
-Wdisabled-optimization \
-Wdouble-promotion \
-Wfloat-equal \
-Wlogical-op \
@Double-oxygeN
Double-oxygeN / combinators.js
Created November 21, 2021 09:07 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x
const K = x => y => x
const A = f => x => f (x)
const T = x => f => f (x)
const W = f => x => f (x) (x)
const C = f => y => x => f (x) (y)
const B = f => g => x => f (g (x))
const S = f => g => x => f (x) (g (x))
const S_ = f => g => x => f (g (x)) (x)
const S2 = f => g => h => x => f (g (x)) (h (x))
@Double-oxygeN
Double-oxygeN / xfrp.js
Last active September 27, 2021 04:20
XFRP language support for highlight.js
/*
Language: XFRP
Description: XFRP is a general-purpose functional reactive programming (FRP) language.
*/
export default function (hljs) {
const primitiveTypes = [
'Bool',
'Int',
'Float'
@Double-oxygeN
Double-oxygeN / Ex10-1.agda
Last active June 24, 2021 03:23
Software Languages, Chapter 10
module Ex10-1 where
open import Data.Nat
open import Data.Bool hiding (_≟_)
open import Data.Maybe
open import Data.String hiding (_≟_)
open import Data.Product using (_,_)
open import Relation.Nullary using (yes; no)
open import LambdaExpr (String)
@Double-oxygeN
Double-oxygeN / Makefile
Last active November 5, 2019 10:24
BLANK BANSHEE 1: logo
OS_NAME := $(shell uname -s)
SDL2_FLAGS := -lSDL2
GL_FLAGS :=
ifeq ($(OS_NAME), Darwin)
GL_FLAGS += -lglew -lcglm -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo
endif
ifeq ($(OS_NAME), Linux)
GL_FLAGS += -lGLEW -lGL -lcglm
endif