Skip to content

Instantly share code, notes, and snippets.

View fu-sen's full-sized avatar
🎈
🎈😍

BALLOON | FU-SEN fu-sen

🎈
🎈😍
View GitHub Profile
@fu-sen
fu-sen / Dockerfile
Last active January 28, 2020 03:40
Caddy v2 (Officical Docker Image) with Google Cloud Run https://caddy.community/t/caddy-works-with-google-cloud-run/6898
FROM caddy/caddy:alpine
COPY ./ /usr/share/caddy/
USER root
RUN sed -i 's/:8080/:{$PORT}/' /etc/caddy/Caddyfile
@fu-sen
fu-sen / Caddyfile
Last active January 26, 2020 01:59
Caddy with Google Cloud Run (Freely editable Caddyfile) https://caddy.community/t/caddy-works-with-google-cloud-run/6898
0.0.0.0:{$PORT}
tls off
# Do not rewrite up to this point!
browse
log stdout
errors stdout
templates
FROM abiosoft/caddy:php
COPY ./ /srv/
RUN sed -i 's/0\.0\.0\.0/0.0.0.0:{$PORT}/' /etc/Caddyfile
RUN sed -e '$a tls off' /etc/Caddyfile
C:\carry\caddy.exe run
@fu-sen
fu-sen / mog.gs
Created January 16, 2020 01:13
(・~・)mog 関数 - Google Apps Script
function mog(num){
var str="";
for (var i=0; i<num; i++) {
str = str + "(・~・)mog ";
}
str = str.slice(0, -1);
return str;
# Balloons | ruby4ij
# Copyright (c) 2019 Keiichi Shiga (BALLOON | FU-SEN)
# The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
cls
while inkey()==-1
x=rnd 31
lc x,23
p 232
' Sine curve | MSX-BASIC
' Copyright (c) 2019 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
10 COLOR 15,4,7:SCREEN 2
20 LINE(0,96)-(255,96),14
30 FOR X=0 TO 255
40 Y=96*(1-3.1415927*2*X/192)
50 PSET(X,Y),15
60 NEXT X
70 I$=INPUT$(1)
@fu-sen
fu-sen / sin.c
Last active September 4, 2022 11:38
Sine curve | z88dk mono graphics
/*
Sine curve | z88dk mono graphics
Copyright (c) 2019 Keiichi Shiga (BALLOON | FU-SEN)
The MIT License (MIT) - https://mit.balloon.net.eu.org/#2019
MSX (MSX turbo R has the tape feature removed!):
zcc +msx -lm -lmsxbios -create-app -bn sin sin.c (Cassette tape image, generate sin.cas)
--> BLOAD"CAS:",R
zcc +msx -lm -lmsxbios -create-app -subtype=disk -bn sin sin.c (BASIC BLOAD file, generate sin.msx)
--> BLOAD"SIN.MSX",R
@fu-sen
fu-sen / text.c
Last active December 4, 2019 03:38
text sample | z88dk
#include <stdio.h>
void main() {
for (int y=1; y<=6; y++) {
for (int x=1; x<=24; x++) {
printf("%c[%u;%uH ", 27, y, x);
}
}
printf("%c[%u;%uH",27,2,2); // locate
The MIT License (MIT)
Copyright (c) 2012-2019 Keiichi Shiga (BALLOON | FU-SEN)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: