Skip to content

Instantly share code, notes, and snippets.

@wordijp
wordijp / playwright_await.md
Last active November 16, 2023 23:48
Playwrightでスクレイピングする際の開発方法

Playwrightでスクレイピングする際の開発方法

1. 大まかな操作のコードを生成

> npx playwright codegen <url>

にてそのサイトで行いたいページ遷移、取得するDOMの大まかなコードを生成する

@W-Yoshida
W-Yoshida / 0_README.md
Last active April 29, 2021 01:05
FAX受信メールのPDFをGoogleドライブにアップロードしてSlack通知するGAS

FAX受信メールのPDFをGoogleドライブにアップロードしてSlack通知するGAS

概要

  • 複合機で受信したFAXをGmailに転送している(前提環境)
  • Gmailで受け取ったFAX受信メールに添付されているPDFをGoogle共有ドライブにアップロードする
  • アップロード完了後、SlackにFAX受信があった旨を通知する
  • GASをタスクで定期実行し、FAX受信後に自動的にアップロード・通知されるようにする

非破壊 TypeSctript

mizchi / TypeScript Meetup 2


About

  • mizchi / 竹馬光太郎
  • フロントエンドと Node.js
@arubacao
arubacao / gohugo.Dockerfile
Created May 12, 2019 20:15
Install and verfiy Hugo in Docker
#**************** HUGO *********************************************
ENV HUGO_VERSION="0.55.5"
RUN set -ex \
&& curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" \
&& curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_checksums.txt" \
&& grep " hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz\$" hugo_extended_${HUGO_VERSION}_checksums.txt | sha256sum -c - \
&& tar -xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz -C /usr/local/bin/ \
&& rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \
&& rm hugo_extended_${HUGO_VERSION}_checksums.txt \
@mizchi
mizchi / predict-frontend.md
Last active May 12, 2023 03:43
React のユーザーから見た今後のフロントエンドの予想

この記事は議論のたたき台で、ポジショントークや、偏見にまみれています。

今のフロントエンドの分類

  • 古典的なサーバーサイド WAF への +α の味付け
  • 大規模なクライアントアプリケーション管理のための SPA
  • SEO / SSR を考慮した Node ヘヴィーな環境

他、提唱されてるパターン

@puf
puf / README.md
Last active March 28, 2023 16:37
Firebase Hosting Deploy Single File

This script may no longer work. Have a look at its (more official) replacement: https://github.com/firebase/firebase-tools/tree/master/scripts/examples/hosting/update-single-file

Firebase Hosting Deploy Single File

This utility script deploy a single local file to an existing Firebase Hosting site. Other files that are already deployed are left unmodified.

The difference with firebase deploy is that this script does not require you to have a local snapshot of all hosted files, you just need the one file that you want to add/update.

@duluca
duluca / npm-scripts-for-docker.md
Last active August 19, 2024 09:22
npm scripts for Docker

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

How to Use

npm i -g mrm-task-npm-docker
npx mrm npm-docker

Contribute

Here's the code repository https://github.com/expertly-simple/mrm-task-npm-docker

@l-rutong
l-rutong / amazon-calc.js
Last active June 4, 2021 05:53 — forked from polamjag/amazon-calc.js
Amazon購入履歴のCSVエクスポート (2017 年バージョン)
// Amazon購入履歴のCSVエクスポート
//
// 使い方:
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽)
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト
// 4. エンターで実行
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う)
// 5. しばらく待つと、コンソールに合計金額が表示され、CSVが保存される
//
@mhawksey
mhawksey / GoogleAppsScript2GitHub.gs
Last active June 14, 2023 15:32
Example script that demonstrates how you can commit files to Github using Google Apps Script. If copying into a script project remembers to add a oAuth2 library https://github.com/googlesamples/apps-script-oauth2. More info in this post https://mashe.hawksey.info/?p=17293
/*
To use you need to create an application on Github at https://github.com/settings/developers
The callback in this needs to be set to https://script.google.com/macros/d/{SCRIPT ID}/usercallback
Where {SCRIPT ID} is the ID of the script that is using this library. You can find your script's ID in the Apps Script code editor by clicking on the menu item "File > Project properties".
In this example code I've stored the apllicaitons clientId and clientSecret in the Script Properties:
- git_clientId
- git_clientSecret
@ondrek
ondrek / gist:7413434
Created November 11, 2013 13:48
Smallest Base64 image
data:image/gif;base64,R0lGODlhAQABAAAAACw=