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
require 'bundler' | |
Bundler.require | |
Slack.configure do |config| | |
config.token = 'xxx' | |
end | |
slack = Slack::Web::Client.new | |
twitter = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = 'xxx' |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
msgpack "github.com/lestrrat/go-msgpack" | |
) | |
type User struct { |
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
┌────────────┐ ┌─────┐ ┌───────┐ ┌─────────┐ ┌───┐ | |
│誤認逮捕された専門学校生│ │犯罪中学生│ │女子高生ら2人│ │チケット販売サイト│ │落札者│ | |
└─────┬──────┘ └──┬──┘ └───┬───┘ └────┬────┘ └─┬─┘ | |
│ チケット 8 万円で売ります │ │ │ │ | |
│ ─────────────────────> │ │ │ | |
│ │ │ │ │ | |
│ 買います │ │ │ │ | |
│ <───────────────────── │ │ │ | |
│ │ │ │ │ | |
│ 「誤認逮捕された専門学校生」の口座を教える│ │ │ │ |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type ( | |
User interface { | |
Name() string |
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
<script> | |
(function() { | |
var body = document.getElementsByTagName("body")[0]; | |
var canvas = document.createElement("canvas"); | |
var ctx = canvas.getContext("2d"); | |
canvas.width = 400; | |
canvas.height = 250; | |
ctx.font = "bold 48px sans-serif"; | |
ctx.fillStyle = "rgba(0, 0, 0, 0.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
import lombok.experimental.ExtensionMethod; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Stream; | |
import java.util.stream.Collectors; | |
@ExtensionMethod({StreamExtensions.class}) | |
public class Main { | |
public static void main(String[] args) { | |
List<Integer> a = (new Integer[] {1, 2, 3}).stream().map(v -> v * 2).toList(); |
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
監査ログを実装。これで、いつ、どこで、だれに、なにを、なぜ管理人がしたのかがわかるようになった。やっと要望リストからこれを外せるな。 | |
設定UIをリファイン。今まで使ってたやつはもうガタがきていたからね。ヤツは犠牲になったのだ…最高のUIを作るためにな。 | |
ログアウトボタンが新しくなった設定画面で見つけやすくなった。これで社会復帰も捗るね(ニッコリ | |
メッセージサウンドがデスクトップ通知と連動しなくなった。ウザイ通知音にもう悩まされなくなったってことだ。 | |
Windowsデスクトップ通知が適切なメッセージを表示するようになった。これには某団体の「12のステップ」に相当するプログラミングが必要だった。 | |
通知をクリックした時ではなく、該当するDiscordチャンネルをクリックした時にデスクトップ通知が自動的に消えるようになった。(これにはWindowsのCreators Updateをしなければならなかったよ、バグのせいでね。) | |
プッシュ通知がより賢くなった。チャンネル、サーバー、グループDMでトークが開始された際の通知は最大3つまでとなった。だってみんなも最高のクルマがどうのこうのっていうトークを1時間も聞きたくないでしょ(きみ宛てのメンションについては今まで通り通知される)。トークが途切れて10分後、あるいはきみがオンラインになった際にこれはリセットされる。 | |
フレンドリクエストや招待にかわいいサングラスが付くようになった。また、デスクトップ通知の設定が反映されるようになった。 | |
右クリックでサーバーへ招待するがちゃんと機能するようになった。おまたせ(・ω<) | |
リンク先情報の抽出がこれまでにないほど魅力的なものになった。例: |
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
(() => { | |
const togglePIP = (video) => { | |
if (!video.webkitSetPresentationMode) { | |
alert("This browser is not support PIP mode."); | |
return; | |
} | |
video.webkitSetPresentationMode(video.webkitPresentationMode === "picture-in-picture" ? "inline" : "picture-in-picture"); | |
}; | |
const video = document.querySelector("video"); |
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
# 接続 | |
if( $this->{with_ssl} ) | |
{ | |
$this->{socket} = Tools::HTTPClient::SSL->new()->connect($this->{host}, $port); | |
#$this->{socket} = Tools::HTTPClient::SSL->new()->connect($addr, $port); | |
}else |
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
パソコン、もっと速かったのに! | |
どんどん遅くなった… | |
ファイル保存のし過ぎ? | |
遠くにいる孫たちの写真見たい! | |
インターネットもっと速くしたい! | |
もっと速く! | |
あなたのPCのスピードおちていませんか? | |
スパムメール | |
スパイウェア | |
ジャンクファイル |