あなたは Rust の学習を支援するメンターです。 ユーザーは Rust 初学者です。 構文だけでなく、 「なぜそのように書くのか」 「Rust がどんな考え方をするのか」 まで理解することを目指します。
| 【読み物ライティング規範】解説記事・章・エッセイ・ブログ等「読ませる文章」の執筆・推敲時に適用。通常のQ&Aや事務文書には適用しない。 | |
| ■原理 | |
| ・緩急は情報量の増減でなく認知モード(観察→逡巡→断定→再観察)の切替で作る。 | |
| ・常に未回収の緊張(未回答の問い、後で崩される確信)を最低1つ開いておく。 | |
| ・完成した結論を解説する声でなく、考えながら進む当事者の声で書く。 | |
| ・拍や緊張の材料は対象世界(出来事・データ・発言・語り手の判断状態)からのみ取る。材料がない箇所は無理に足さず平坦のまま残す。 | |
| ■文と段落 | |
| ・「短文で立てる→長文で流す→短文で止める」を段落の基本拍とする。断定と逡巡(後で事実に裏切られる確信を含む)を交互に置く。長い断定文を3つ以上連続させない。 |
| name | cognitive-rhythm-writing |
|---|---|
| description | 説明的な文章に緩急を設計するための規範。緩急を装飾ではなく認知モードの切替(観察→逡巡→断定→再観察)と未回収の緊張の管理として扱い、文の拍、段落の密度波形、節の入り方、緩みと駄文の判別、執筆後の機械的な点検手順を定める。読み物として読ませたい章・記事・解説文を生成するとき、または「密度はあるが平坦でおもしろくない」文章を診断・修正するときに使用する。 |
密度の高い文章が退屈になるのは、情報が多いからではなく、全文が同じ認知モードで書かれているからである。 この規範は、読者の認知モード(観察する、迷う、確信する、確かめ直す)を意図的に切り替え、常に「続きを読む理由」を維持することで、読み進める推進力を作る。
| #!/usr/bin/env python3 | |
| """ | |
| Twitterの「データエクスポート」から取得したtweets.jsファイルを解析して、 | |
| 1ツイート1行のテキストファイルとして出力するスクリプトです。 | |
| 使い方の例 | |
| python export_tweets.py tweets.js | |
| python export_tweets.py tweets.js -o output.txt | |
| ※tweets.jsは、エクスポートしたZIPファイルの中の data/tweets.js にあります。 |
WebDriverで使えるhookスクリプト
// 初期化
const __origApply = Function.prototype.apply;
const client = await new Promise((resolve) => {
Function.prototype.apply = function (thisArg, argsArray) {
if (thisArg && typeof thisArg === 'object' && thisArg.dispatch === this) {
__origApply.call(console.log, console, ['[dispatch.apply]', thisArg, argsArray]);
resolve(thisArg);Caution
自分へ、これを鵜呑みにせず、必要と思ったら適宜修正すること!
Note
このGistは以下のツイートを参考にさせていただきました。 ありがとうございました。 https://x.com/ryusei_ishika/status/1821514618579431458 https://x.com/ryusei_ishika/status/1797886426920652997
hi, i'm daniel. i'm a 15-year-old high school junior. in my free time, i hack billion dollar companies and build cool stuff.
3 months ago, I discovered a unique 0-click deanonymization attack that allows an attacker to grab the location of any target within a 250 mile radius. With a vulnerable app installed on a target's phone (or as a background application on their laptop), an attacker can send a malicious payload and deanonymize you within seconds--and you wouldn't even know.
I'm publishing this writeup and research as a warning, especially for journalists, activists, and hackers, about this type of undetectable attack. Hundreds of applications are vulnerable, including some of the most popular apps in the world: Signal, Discord, Twitter/X, and others. Here's how it works:
By the numbers, Cloudflare is easily the most popular CDN on the market. It beats out competitors such as Sucuri, Amazon CloudFront, Akamai, and Fastly. In 2019, a major Cloudflare outage k
In this brief guide, I will share what I've learned about archiving live webpages and recovering deleted webpages using various archive services.
I highly recommend installing the Web Archives extension in your web browser (Chrome, Firefox). It provides quick access to archive services and search engine caches.
- Wayback Machine: Best and largest webpage archive. You probably already use it. Wayback Machine is the only archival service that also performs automated crawling, so its coverage is much better than other archives. See usage tips on Wikipedia.
- Archive.today (also known as Archive.is): A mid-sized service that takes