in perl:
https://pastebin.com/4NtmWZgx https://pic.twitter.com/j38YIofrRA
posted at 01:03:27
Stats | Twitter歴 747日(2021/11/25より) |
ツイート数 914(1.2件/日) |
表示するツイート :
in perl:
https://pastebin.com/4NtmWZgx https://pic.twitter.com/j38YIofrRA
posted at 01:03:27
#include <limits.h>
#include <math.h>
#include <stdlib.h>
char *str = malloc((int)log10(LONG_MAX) + 3);
may be better than the fixed buffer.
in that case, the use of sprintf (and strcpy) is fine imo.
no snprintf in C89 anyway.
posted at 00:54:44
Gets even more complicated.
bc it's C.
https://github.com/yuuki15/project-euler/blob/main/src/0004.c… https://pic.twitter.com/VqorayF5Eg
posted at 00:39:09
#4
https://projecteuler.net/problem=4 https://pic.twitter.com/CQi27h706U
posted at 00:39:08
C89 has no long long or int64_t (or stdint.h).
(≥ C99 has them all, with int64_t being optional.)
i assumed that someone has provided stdint.h and int64_t.
posted at 22:52:09
Gets complicated.
the most naive approach: trial division.
this is a way to "return" an array from a C function.
(i.e., pass the reference (aka pointer) and modify the value.)
https://github.com/yuuki15/project-euler/blob/main/src/0003.c… https://pic.twitter.com/SoIhvCQyMu
posted at 20:32:35
#3
https://projecteuler.net/problem=3 https://pic.twitter.com/4O4FuI5Rt0
posted at 20:32:35
Another "filter" pattern.
this kind of assignment in a condition may be common in C.
Fibonacci seems to have defined fibonacci numbers in this way.
https://github.com/yuuki15/project-euler/blob/main/src/0002.c… https://pic.twitter.com/DZ42MteZKr
posted at 19:54:23
#2
https://projecteuler.net/problem=2 https://pic.twitter.com/tWCpshfIvs
posted at 19:50:23
this may not be controversial.
A "filter" pattern.
in ruby:
% ruby -e 'puts (1 .. 999).filter { |i| i % 3 == 0 || i % 5 == 0 }.sum'
i.e., generates all the numbers and extracts those that meet the condition.
https://github.com/yuuki15/project-euler/blob/main/src/0001.c… https://pic.twitter.com/yaPBvMarhl
posted at 19:38:27
#1
https://projecteuler.net/problem=1 https://pic.twitter.com/2UxXvJHoKU
posted at 19:10:05
I started Project Euler.
https://projecteuler.net/
I started posting my C solutions on GitHub.
https://github.com/yuuki15/project-euler…
i chose C89 for archeology. tho it's still used in many projects such as curl.
posted at 18:21:57
gonnasleepforabit
posted at 08:08:33
ima perfectionist n tempted to revise my post many times
posted at 07:48:43
sry for the duplicate information
posted at 07:41:11
gonna tweet abt project euler again for my mint
https://min.togetter.com/r1GcW6O
posted at 07:35:56
in case my github is taken down, pls refer to:
⑴ https://archive.today/https://github.com/yuuki15/%2A…
⑵ https://web.archive.org/web/*/https://raw.githubusercontent.com/yuuki15%2A…
gist
⑴ https://archive.today/https://gist.github.com/yuuki15/%2A…
⑵ https://web.archive.org/web/*/https://gist.githubusercontent.com/yuuki15%2A…
posted at 20:50:29
bear
posted at 08:22:41
woah i forgot to return 0; in all my code
posted at 19:51:45
(repo) https://github.com/yuuki15/project-euler… https://pic.twitter.com/0OKt0cYi2W
posted at 14:52:37
started posting my solutions to Project Euler (in C) on github.
https://projecteuler.net/ https://pic.twitter.com/56kIOHNPLO
posted at 14:50:40
i'll turn my twitter into Yuuki Kindergarten.
world's first kindergarten on the internet, for all ages.
we do
• research on mathematics in anime.
• watch literature in animated short films.
• play the piano with only 3 chords.
•
posted at 17:00:04
Baka & Test s1 ep1 (2010)
Himeji Mizuki's recovery exam at the end of the ep
https://pastebin.com/LULB9wdG https://pic.twitter.com/tULpioQRmM
posted at 16:14:07
yuuki the man who bought cashews but forgot to eat them
posted at 12:22:22
just renamed Plain Text to Blank.
posted at 01:08:42
i put the game on gh-pages.
more accessible than the MIT site on the phone.
https://yuukiscratch.github.io/flash/ https://twitter.com/yuuki26/status/1730065369652425195…
posted at 20:48:04
i separated my Jekyll theme, named Plain Text.
still under development.
its based on a theme i was working on in Feb-Mar 2022.
https://github.com/jekyll-theme-plain-text/jekyll-theme-plain-text…
posted at 19:41:01
moved my blog to my site https://yuukikonno.com/blog/ n deleted this gist.
(archive) https://archive.today/2023.12.01-101255/https://gist.github.com/yuuki15/6f4dd4a6ce7f5b23cd06f86394d17269… https://twitter.com/yuuki26/status/1726967073526682011…
posted at 19:19:07
its hosted on both Cloudflare Pages n GitHub Pages. (CF is the primary.) still tuning.
posted at 19:11:51
my personal site is now available at:
• https://yuukikonno.com/
• https://yuukikonno.pages.dev/
• https://yuuki15.github.io/
the last two should be accessible even if my domain expires.
(repo) https://github.com/yuuki15/yuuki15.github.io…
posted at 18:46:21
i wrote this program in 2007, at 13, when i first learned the \r and \a escape sequences, in Perl¹.
¹ the ancestor of Python.
https://pastebin.com/urYbqfW5 https://twitter.com/yuuki26/status/1730065369652425195… https://pic.twitter.com/vuxJjOV7s2
posted at 12:04:24
i bought food for $600 n kerosene for $300. (my estimate is after subtracting them.)
posted at 09:25:49
End of Dec 2023 (estimated)
cash at bank $4,000
cash on hand $200
total assets $4,200
liabilities $1,800
net assets $2,400
(converted ¥100 to $1) https://twitter.com/yuuki26/status/1702108158712283495…
posted at 08:53:31
finally, the actual message display block.
(sry i actually defined 3 blocks.)
• flash [message] for 0.5 seconds
displays the message for 0.3s and clears the speech bubble for 0.2s.
this makes the message appear to flash. https://pic.twitter.com/MkN3Gspshs
posted at 13:24:48
countdown block.
loops 3 times. decreases by 1. period.
random number display block.
accumulates the sum in the variable `correct answer`. https://pic.twitter.com/mO41BFx7yb
posted at 13:04:20
lemme explain the source code.
the main flow is:
1) counts down 3, 2, 1.
2) displays 10 numbers.
3) asks the user to enter the answer.
i defined 2 functions ("blocks").
• say countdown
• flash random numbers https://pic.twitter.com/Iz3I06xT1g
posted at 12:46:31
I created a Mental Addition game.
To answer the sum of 10 numbers that are flashed very fast.
https://scratch.mit.edu/projects/930715752/…
posted at 12:25:01
I created a Scratch account yuuki29.
I'm yuuki29 on Scratch.
https://scratch.mit.edu/users/yuuki29/
posted at 11:53:45
slept 9
posted at 04:19:13
im reading the standard english style guide on the following page.
https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style…
posted at 18:39:41
mega evolvable pokemon i don't have a hundo.
i also don't have a Diancie. https://pic.twitter.com/w52xtXvUwZ
posted at 05:04:39
https://pic.twitter.com/LJPzH3eU9v
posted at 21:03:15
https://pic.twitter.com/HdqxVTYdJ7
posted at 21:03:12
js received my online grocery order.
pls keep track of what's in my house. https://pic.twitter.com/C0ZI6diB3M
posted at 21:03:08
if you are not my mutual and really want to contact me, please dm or write to me at yuuki@yuukikonno.com if you are a single woman.
posted at 03:02:34
i'm currently following the most intellectual people such as studytwt folks, harvard students, or mensa members.
posted at 02:48:30
so i never comment on youtube or tiktok.
posted at 02:35:50
i aim to live without talking to anyone but my twitter mutuals.
this is to avoid this.
https://xkcd.com/386/ https://pic.twitter.com/4bbwqvBm91
posted at 02:33:29
breakfast affogato https://pic.twitter.com/iW0BRmWWm9
posted at 00:25:22
shopped for 7 hrs at home
posted at 22:58:32
8:30 slept 15:30 up
posted at 22:45:49
boutta go to bed with bear
posted at 08:19:57
i tm'd frustration away the other day, but can't evolve it till Earth Power* comes back, so:
my happiness
just about average
my poke
⸻Kobayashi Issa https://pic.twitter.com/AHhYxjp5TB
posted at 06:17:06
i used the hashtag "want to connect with unschoolers".
#不登校さんと繋がりたい
no corresponding subtwt in english fsr.
#unschoolers #unschooling #homeschoolers #homeschooling #schoolrefusal #schoolavoidance #schoolanxiety
posted at 04:06:41
- hobbies: shogi/programming/math/english
- stan of: nothing
- fav game: pokemon go
- comments:
never drink or smoke / never get my driver's license / never fall in love or get married
posted at 03:31:24
- what's the acc for?: lifestreaming
- mainly tweet: my thoughts
- twitter stance: anything is OK
- what kind of ppl do u want to connect with?: ppl who share my hobbies
- free space:
5th grade~ unschooler / lives alone in late grandma's house / receives $700 a month from parents
posted at 03:31:23
my profile says 29age/male/NEET.
my pinned says:
lf friends
(2nd pic, made with https://prfmaker.com/m/479)
- name: yuuki
- tw id: @yuuki170
- account age: 2023~
- active hours: non-24-hour sleep-wake disorder https://twitter.com/yuuki170/status/1727315152121610747…
posted at 03:31:23
wanted an ai pfp but no different than me irl
cr: https://www.pixiv.net/artworks/110547305… https://pic.twitter.com/b4C6QKhLTu
posted at 01:18:18
started using my jpn acc.
i quote n translate some tweets on this acc smtm.
maybe once a month.
@yuuki170
https://x.com/i/user/1672629051419410435…
posted at 00:32:52