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
package main | |
import ( | |
"context" | |
"fmt" | |
"html" | |
"log" | |
"regexp" | |
"cloud.google.com/go/translate" |
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
<?php | |
$a = []; | |
while (true) { | |
$a[] = $zd = ['ズン', 'ドコ'][mt_rand(0, 1)]; | |
$a = array_slice($a, -5); | |
echo $zd, PHP_EOL; | |
if ($a[0] === 'ズン' | |
&& $a[1] === 'ズン' | |
&& $a[2] === 'ズン' | |
&& $a[3] === 'ズン' |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"html" | |
"log" | |
"regexp" | |
"cloud.google.com/go/translate" |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"cloud.google.com/go/translate" | |
"github.com/grokify/html-strip-tags-go" | |
"github.com/mattn/go-mastodon" |
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
// 2の時4を返す関数 | |
function double(arg) { | |
return arg * 2; // 2 の時 4 | |
} | |
function double2(arg) { | |
return arg + 2; // 2 の時 4 | |
} | |
function double3(arg) { |
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
#!/bin/bash | |
func_foo () { | |
echo -e "foo\nbar\nbaz" | |
} | |
func_foo2 () { | |
echo -e "foo\nbaz" | |
} |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/mattn/genshijin" | |
"github.com/mattn/go-mastodon" | |
"log" | |
) |
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
% go run shindanmaker.go 862400 わたしは何時でもえらいの機会を狙っているよ | |
もまがんんも: わ | |
まがまんまが: わた | |
んがががまが: わたし | |
んもがんもめ: わたしは | |
がめまもまま: わたしは何 | |
んももめんも: わたしは何時 | |
めめもんめめ: わたしは何時で |
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
package main | |
import "flag" | |
import "fmt" | |
import "net/http" | |
import "net/url" | |
import "os" | |
import "strings" | |
import "github.com/PuerkitoBio/goquery" |