This file contains hidden or 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
# 「ニフルハイムのユリ」サンショウウオの問題 | |
# 最終局面から逆算する | |
# おいら:金の魚 6 匹 | |
metrout = ["金", "金", "金", "金", "金", "金"] | |
# アニキ:灰色の魚 6 匹 | |
brostrout = ["灰", "灰", "灰", "灰", "灰", "灰"] | |
loc = 0 | |
result = "" |
This file contains hidden or 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
filament_white = true; | |
filament_black = true; | |
filament_magenta = true; | |
filament_yellow = true; | |
$nf = 50; | |
// Color Scheme | |
// - Orange: yellow on magenta |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
#「葬送のフリーレン」公式アカウントのダジャレが過ぎるので先回りして網羅する | |
import sys | |
args = sys.argv | |
n_best = 4 | |
if len(args) > 1: | |
if args[1].isdigit: | |
n_best = int(args[1]) |
This file contains hidden or 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
10 HGR | |
20 DIM D(160): FOR I = 1 TO 159:D(I) = 100: NEXT | |
22 DR = 3.14/180 | |
30 FOR Y = -180 TO 180 STEP 6 | |
40 FOR X = -180 TO 180 STEP 4 | |
50 R = DR * SQR(X *X +Y *Y) | |
60 Z = 100 * COS(R) -40 * COS(3 *R) | |
70 SX = INT(80 +X/3 -Y/6) | |
80 SY = INT(40 -Y/6 -Z/4) | |
90 IF (SX <0) +(SX > = 160) THEN 110 |
This file contains hidden or 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
TOP_MODULE=oneshottmr_sim | |
OUT_FILE=test.out | |
# compile | |
iverilog -g2012 \ | |
-o ${OUT_FILE} \ | |
-s ${TOP_MODULE} ./scenario.sv ../src/oneshottmr.v | |
# ./oneshottmr_orig.v | |
# ../src/oneshottmr.v |
This file contains hidden or 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
////////////////////////////////////////////////////////////// | |
// module :oneshottmr_sim | |
///////////////////////////////////////////////////////////// | |
`timescale 1ns/1ps | |
module oneshottmr_sim; | |
// Create clock | |
parameter CLK_E_1MHz = 1000; // ns |
This file contains hidden or 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
// Verilog one-shot counter module | |
module oneshottmr | |
( | |
input clk, | |
input reset_n, | |
input trigger, | |
output reg q_n | |
); |
This file contains hidden or 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
[ | |
[ | |
{ | |
"t": "#000000\n\n#0a0000" | |
}, | |
"o\n+/-\nPara\nSS\nL MGN", | |
{ | |
"t": "#000000", | |
"a": 5 | |
}, |
This file contains hidden or 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
{ | |
Online Pascal Compiler.Code, Compile, | |
Run and Debug Pascal program online.Write your code in this editor and | |
press "Run" button to execute it.} | |
program asciiart; | |
var | |
x, y, i, i2, flag:integer; |
This file contains hidden or 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
--- hex2bin/libcrc.h 2023-05-21 01:35:20.711215991 +0100 | |
+++ hex2bin.new/libcrc.h 2023-05-21 01:21:23.359661817 +0100 | |
@@ -24,7 +24,7 @@ | |
#ifndef _LIBCRC_H_ | |
#define _LIBCRC_H_ | |
-void *crc_table; | |
+extern void *crc_table; | |
void init_crc8_normal_tab(uint8_t polynom); |
NewerOlder