Skip to content

Instantly share code, notes, and snippets.

View nanase's full-sized avatar
🏄
Making.

Nanase nanase

🏄
Making.
View GitHub Profile
@nanase
nanase / Lury-problems.md
Last active August 29, 2015 14:20
Lury 問題点と方針

![Lury][lury] 問題点と方針

ref問題

構想にて、キーワード ref は関数を参照するために用いると記述しました。Luryでは、引数のない関数を括弧なしで呼び出せます。

def func:
	return 1
@nanase
nanase / ym2203.cpp
Created January 30, 2015 15:40
YM2203をNucleo-F401REで制御、初めて発音できた時点での制御プログラムです。
#include "mbed.h"
#include "stdint.h"
PwmOut out_phm(D3);
DigitalOut d0(D15), d1(D14), d2(D13), d3(D12), d4(D11), d5(D10), d6(D9);
DigitalInOut d7(D8);
DigitalOut a0(D4), cs(D2), wr(D5), rd(D7), ic(D6);
Serial pc(SERIAL_TX, SERIAL_RX);
void wait_cycle(int cycle) {
@nanase
nanase / Assert.lr
Last active August 29, 2015 14:11
アサーションクラスの内部実装メモ
/* [Lury] */
@public static
<BuiltIn>
class Assert:
### ** Caution **
### On this class, _DO NOT USE_ assert and enforce function in each functions.
@public static
@nanase
nanase / Lury.md
Last active March 15, 2018 00:06
Lury 構想まとめ

![Lury][lury] 構想まとめ

※ 項目の名前は適当

※ 実装してみたい全ての機能を記述しているわけではありません

※ サンプルコードは古い構想を含んでいるかもしれません。注意して読んでください

目次

@nanase
nanase / pi2_descript.c
Last active August 29, 2015 14:08
pi2.cにコメントをつけてみた
// mes0〜mes5 は文字列。配列として用意している
// 文字コードはUTF-8 (Windowsだと文字化けするかも)
char mes0[] = { 0xe8, 0xa8, 0x88, 0xe7, 0xae, 0x97, 0, 0, 0, 0, 0, 0 , 0},
mes1[] = { 0, 0, 0, 0, 0, 0, 0xe5, 0x9b, 0x9e, 0xe6, 0x95, 0xb0, 0xe3, 0x82, 0x92, 0xe5, 0x85, 0xa5, 0xe5, 0x8a, 0x9b, 0x3a, 0x20, 0, 0, 0, 0 } ,
mes2[] = { 0x25, 0x6c, 0x6c, 0x64, 0 },
mes3[] = { 0, 0, 0, 0, 0, 0, 0xe4, 0xb8, 0xad, 0x2e, 0x2e, 0x2e, 0x28, 0x25, 0x36, 0x2e, 0x32, 0x66, 0x25, 0x25, 0x29, 0x20, 0, 0, 0, 0, 0, 0, 0, 0 } ,
mes4[] = { 0x50, 0x49, 0x20, 0x3d, 0x20, 0x25, 0x2e, 0x36, 0x66, 0xa, 0, 0 } ,
mes5[] = { 0xa, 0, 0, 0, 0, 0, 0, 0xe5, 0xae, 0x8c, 0xe4, 0xba, 0x86, 0xa, 0 };
// プロトタイプ宣言
@nanase
nanase / pi2_reformat.c
Created October 27, 2014 14:40
pi2.cをリフォーマットしてみた (コンパイル時に警告が出るので gcc -w pi2.cでコンパイルしてね)
char mes0[] = { 0xe8, 0xa8, 0x88, 0xe7, 0xae, 0x97, 0, 0, 0, 0, 0, 0 , 0},
mes1[] = { 0, 0, 0, 0, 0, 0, 0xe5, 0x9b, 0x9e, 0xe6, 0x95, 0xb0, 0xe3, 0x82, 0x92, 0xe5, 0x85, 0xa5, 0xe5, 0x8a, 0x9b, 0x3a, 0x20, 0, 0, 0, 0 } ,
mes2[] = { 0x25, 0x6c, 0x6c, 0x64, 0 },
mes3[] = { 0, 0, 0, 0, 0, 0, 0xe4, 0xb8, 0xad, 0x2e, 0x2e, 0x2e, 0x28, 0x25, 0x36, 0x2e, 0x32, 0x66, 0x25, 0x25, 0x29, 0x20, 0, 0, 0, 0, 0, 0, 0, 0 } ,
mes4[] = { 0x50, 0x49, 0x20, 0x3d, 0x20, 0x25, 0x2e, 0x36, 0x66, 0xa, 0, 0 } ,
mes5[] = { 0xa, 0, 0, 0, 0, 0, 0, 0xe5, 0xae, 0x8c, 0xe4, 0xba, 0x86, 0xa, 0 };
void copy(char* base, char* to) ;
void rndInt(void);
@nanase
nanase / notepad-lang.np
Last active August 29, 2015 14:06
notepad-lang独自案
abstract class Person:
# protected
prop trueAge [get, private set]
abstract prop age [get]
# public
def me(age):
me.trueAge = age
def tellAge => "私は\(me.age)歳です。"
@nanase
nanase / configuration.txt
Created August 25, 2014 03:27
七瀬鯖のDynmap設定。チャットの消滅時間、ポート番号、レンダリングトリガ、タイトルなどを変更している。解像度は低めに、加えてトリガは「かなり鈍く」設定してある。
# All paths in this configuration file are relative to Dynmap's data-folder: minecraft_server/plugins/dynmap/
# All map templates are defined in the templates directory
# To use the HDMap very-low-res (2 ppb) map templates as world defaults, set value to vlowres
# The definitions of these templates are in normal-vlowres.txt, nether-vlowres.txt, and the_end-vlowres.txt
# To use the HDMap low-res (4 ppb) map templates as world defaults, set value to lowres
# The definitions of these templates are in normal-lowres.txt, nether-lowres.txt, and the_end-lowres.txt
# To use the HDMap hi-res (16 ppb) map templates (these can take a VERY long time for initial fullrender), set value to hires
# The definitions of these templates are in normal-hires.txt, nether-hires.txt, and the_end-hires.txt
# To use the HDMap low-res (4 ppb) map templates, with support for boosting resolution selectively to hi-res (16 ppb), set value to low_boost_hi
@nanase
nanase / Hello_world.ano
Created May 30, 2014 14:43
「あの言語」でHello world書いてみた。Brainf*ck互換。あ=1,の=0
のあののあののあののあののあののあののあののあののあのああのののののあののあののあののあののあののあののあののあのののののあののあののあののあののあののあののあののあののあののあののあのののののあののあののあののあののあのののあののあののあのあああああのののあののののののあののあのあのののあののあののあののあののあののあののあのあののあのののあののあののあのあののののののあああのの
のああのああのああのああのああのああのああのああのああのああのああのあああののののあのあののあののあののあののあののあののあののあのあのののああのああのああのああのああのああのああのあああのののあののあののあのあのののああのああのああのああのああのあああのののああのああのああのああのああのああのああのあああののののののあのあのの
@nanase
nanase / ななせったー機能構想まとめ.md
Last active August 29, 2015 13:59
ななせったーの構想と機能をまとめました。

ななせったー機能構想まとめ

名称

ななせったー (Nanasetter)

特徴

  • クロスプラットフォーム