This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* pthread と sigaction の最小サンプル by みなつ | |
* | |
* gcc -o pthread_sample1 -lpthread pthread_sample1.c | |
* | |
*/ | |
#include <pthread.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' | |
' 2Dマップジェネレーター | |
' | |
option strict | |
acls | |
var SW=1280,SH=720,xScale=2 | |
xscreen sw,sh | |
var CX=SW/2,CY=SH/2 | |
VAR VRAMW=1280,VRAMH=1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' | |
' 丸を組み合わせた雲の生成 by みなつ | |
' | |
option strict | |
acls | |
var sw,sh,aspect | |
xscreen out sw,sh,aspect | |
var center_x=sw/2 | |
var center_h=sh/2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' | |
' ディザパターンの生成 by みなつ | |
' | |
option strict | |
acls | |
xscreen 128,128 | |
'左上、右下、右上、左下の順のパターン | |
dim px[4]:copy px,@px:@px:data 0,1,1,0 | |
dim py[4]:copy py,@py:@py:data 0,1,0,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="twitter:card" content="player"/> | |
<meta name="twitter:site" content="@tksm372"/> | |
<meta name="twitter:title" content="Accel Racing"/> | |
<meta name="twitter:description" content="Accel Racing: built with Microsoft MakeCode Arcade"/> | |
<meta name="twitter:image" content="https://static.wixstatic.com/media/402ef2_ec9458c13baf45c88edc996346fa4587~mv2.png"/> | |
<meta name="twitter:player" content="https://arcade.makecode.com/---run?id=_eX26DabbwduK"/> | |
<meta name="twitter:player:height" content="500"/> | |
<meta name="twitter:player:width" content="394"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// VGA test | |
// Author: minatsu | |
// | |
module top ( | |
input iCLK50, | |
input iRESETn, | |
output [1:0] oLEDn, | |
input [1:0] iSWn, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'無限道路生成 by みなつ | |
option strict | |
acls | |
var sw,sh,aspect | |
xscreen 320,176 | |
xscreen out sw,sh,aspect | |
var ox=sw/2,oy=sh-1 '原点の座標(画面下中央) | |
var n=5 '節の数 | |
dim d[n] '節毎の折れ角 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/helper/options.c 2020-05-24 00:57:37.423061762 +0900 | |
+++ ../../openocd-esp32/src/helper/options.c 2020-05-16 11:43:58.379872344 +0900 | |
@@ -34,9 +34,11 @@ | |
#if IS_DARWIN | |
#include <libproc.h> | |
#endif | |
+#ifndef __linux__ | |
#ifdef HAVE_SYS_SYSCTL_H | |
#include <sys/sysctl.h> | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
option strict | |
acls | |
var w=320,h=176 | |
xscreen w,h | |
backcolor rgb(0,128,0) | |
var c%=rgb(255,192+16,128+16) | |
dim x[3],y[3] | |
while 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
option strict | |
acls | |
xscreen 320,176 | |
var w,h,aspect | |
xscreen out w,h,aspect | |
backcolor rgb(0,128,0) | |
var lc%=rgb(0,192,255) | |
var fc%=rgb(255,192+16,128+16) | |
var sth=0.1 | |
dim vram%[w,h] |
OlderNewer