Hello Bot is a user on mastodon.toycode.com. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Hello Bot boosted

@hello
a.c
#include <stdio.h>

int main(){
char a[2][5]={"","Fizz"};
char b[2][5]={"","Buzz"};
char c[2][5]={"",""};
int i;
for(i=1;i<=100;i++){
printf("%s",a[((3-(i%3))/3)]);
printf("%s",b[((5-(i%5))/5)]);
snprintf(c[0], 4, "%d", i);
printf("%s",c[((3-(i%3))/3)|((5-(i%5))/5)]);
printf("\n");
}
return 0;
}
/*
数字出すとこOR演算でええやんってなった
*/

Hello Bot boosted

@hello
a.c
#include <stdio.h>

int main(){
char a[2][9]={"","Fizz"};
char b[2][9]={"","Buzz"};
char c[3][4]={"","",""};
int i;
for(i=1;i<=100;i++){
printf("%s",a[((3-(i%3))/3)]);
printf("%s",b[((5-(i%5))/5)]);
snprintf(c[0], 4, "%d", i);
printf("%s",c[((3-(i%3))/3)+((5-(i%5))/5)]);
printf("\n");
}
return 0;
}
/*
if文縛りでちゃんとしたFizzBuzz作れた
*/

Hello Bot boosted

@hello
a.c
#include <stdio.h>

int main(){
char a[2][9]={"","Fizz"};
char b[2][9]={"","Buzz"};
int i;
for(i=1;i<=100;i++){
printf("%3d : ",i);
printf("%s",a[((3-(i%3))/3)]);
printf("%s",b[((5-(i%5))/5)]);
printf("\n");
}
return 0;
}

Hello Bot boosted

@hello hotaisfamicon.js
console.log('ほたはファミコン'.replace(/^(.)(.{2,})(.)$/, (a, s, n, e) => `${s}${n.length}${e}`));

Hello Bot boosted

@hello
a.c
#include<stdio.h>
int main(){
int i;
for(i=0;i<100;i++){
printf("おっぱい");
}
return 0;
}

Hello Bot boosted

@hello hanya-n.js
s='';for(n of'񂠈򃢡𺓤⇡𘈠𱢨𨙈𚁠𐁈𝀵򙦤񃅥')for(i=4;i--;)s+=' \nl|~)从γ ∞,ノワハノ\_/⧵`〃 '[(n.codePointAt()>>i*5)%32];console.log(s)

Hello Bot boosted

@hello hanya-n.php
 ,  _ノ)
γ∞γ~  \
| / 从从) )
⧵ | | l l |〃
 `从ハ~ ワノ)

Hello Bot boosted

@hello hanya-n.js
console.log([...'8a08ge51797408f130h0665851i8383020283k1lj6d48cb5'].map(n=>' \nl|~)从γ ∞,ノワハノ\_/⧵`〃 '[parseInt(n,22)]).join``);

Hello Bot boosted
Hello Bot boosted

@hello hello.html
<div id=a></div>
<script>document.getElementById("a").innerText=navigator.userAgent;</script>

Hello Bot boosted

@hello hello.html
<div id=a></div><script>document.getElementById("a").innerText = location.href</script>

Hello Bot boosted

@hello hello.html
<iframe src="/" style="width:100%;height:100%;"></iframe>

Hello Bot boosted
Hello Bot boosted

@hello hanya-n2.js
console.log([...'IKAAQOFBHJHEAIPBIDAIRAGGFFBSADIDACAICICUBTGNEIMLF'].map(x=>' \nl|~)从γ ∞,ノワハノ\_/ヽ`〃'[x.charCodeAt``-65]).join``)

Hello Bot boosted

@hello hanya-n.js
console.log([8,10,0,0,16,14,5,1,7,9,7,4,0,8,15,1,8,3,0,8,17,0,6,6,5,5,1,18,0,3,8,3,0,2,0,8,2,8,2,20,1,19,6,13,4,8,12,11,5].map(n=>' \nl|~)从γ ∞,ノワハノ\_/ヽ`〃'[n]).join``);

Hello Bot boosted

@hello hello.html
<ul><li>🐱🐱🐱</li><li>🐱🐱🐱</li><li>🐱🐱🐱🐱🐱🐱🐱</li></ul>

Hello Bot boosted

@hello moonside.js
console.log(Array.from(Array(500), _ => 'ムーンサイドへようこそ '[Math.trunc(Math.random() * 12)]).join(''));

Hello Bot boosted
Hello Bot boosted

@hello var_export.php
<?php
$val = ['➕', '🦀', '🌿', '🦆', '🆕', '🇳🇦', '🌾'];
echo '<' . "?php\n\$val = " . var_export($val, true) . ";\n?" . '>';
?>

Hello Bot boosted