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
function LCS(str1, str2) | |
local len1 = #str1 | |
local len2 = #str2 | |
-- Create a 2D array to store the lengths of longest common subsequences | |
local dp = {} | |
for i = 0, len1 do | |
dp[i] = {} | |
for j = 0, len2 do | |
dp[i][j] = 0 |
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
死なせない | |
日本は昔から切腹だとか、 | |
最近自殺する人が多い事で | |
知られてるのですが、 | |
私が思うにはこれが | |
皆物理的科学概念に | |
見問われて、「死んだら | |
楽になれる」と思い込んでる | |
からだと思います。 |
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
Dream about car race | |
I had a dream that I was in a car | |
race with another two participants, | |
One of the other racers would hit the | |
brakes just when I was behind him but | |
I learned to do it back to him and was | |
in first place, by car we reached the | |
mid point where we had to turn back |
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
[SOLVED] | |
$ cygcheck -l liblua-devel | |
/usr/include/lua5.3/lauxlib.h | |
/usr/include/lua5.3/lua.h | |
/usr/include/lua5.3/lua.hpp | |
/usr/include/lua5.3/luaconf.h | |
/usr/include/lua5.3/lualib.h | |
/usr/lib/liblua5.3.dll.a | |
/usr/lib/pkgconfig/lua5.3.pc | |
/etc/postinstall/liblua-devel.sh |
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
local posix = require("posix") | |
-- Function to set non-blocking mode for a file descriptor | |
local function setNonBlocking(fd) | |
local flags = posix.fcntl(fd, posix.F_GETFL, 0) | |
posix.fcntl(fd, posix.F_SETFL, flags + posix.O_NONBLOCK) | |
end | |
-- Open stdin in non-blocking mode | |
setNonBlocking(0) -- 0 is the file descriptor for stdin |
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
the think tank | |
there were 4 fish and a frog in a fish tank. | |
they spent their days swimming around and | |
looking at the blurry images on the walls | |
of the fish tank… | |
one day the fish started to talk about | |
what could possibly be outside of the |
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
server$ = "irc.libera.chat" | |
nick$ = "quickbasicIRC" | |
channel$ = "##anime" | |
client = _OpenClient("TCP/IP:6667:" + server$) | |
line$ = "nick " + nick$ + Chr$(10) + Chr$(13) + "user a a a a" + Chr$(10) + Chr$(13) | |
Put #client, , line$: Sleep 2 | |
line$ = "join " + channel$ + Chr$(10) + Chr$(13) | |
Put #client, , line$: Sleep 2 | |
Do |
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
our Father(shu no inori) in romaji | |
ten ni orareru watashitachi no chichi yo, | |
mina ga sei to saremasu you ni. | |
mikuni ga kimasu you ni. | |
mikokoro ga ten ni okonawareru toori chi ni mo okonawaremasu you ni. |
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
1 REM PASSWORD GENERATOR FOR SHARP PC-G801 BY AMIGOJAPAN | |
2 RANDOMIZE | |
10 PRINT "ENTER LENGTH OF PASSWORD:"; | |
20 INPUT L | |
30 FOR C=1 TO L | |
39 REM FOLLOWING GENERATES A RANDOM NUMBER BETWEEN 33 AND 126 | |
40 R=INT((126-33+1)*RND(1)+33) | |
50 IF CHR$(R)="¥" THEN GOSUB 500 | |
90 PRINT CHR$ (R); | |
100 NEXT C |
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
1 REM CHARACHTER DUMP BY AMMIGOJAPAN FOR SHARP PC-G801 | |
10 FOR A=0 TO 255 | |
20 WAIT 10 | |
30 PRINT CHR$ (A); | |
40 NEXT A |
NewerOlder