Skip to content

Instantly share code, notes, and snippets.

View magcho's full-sized avatar
🍣

suetake magcho

🍣
View GitHub Profile
regions:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- af-south-1
- ap-east-1
- ap-south-1
- ap-northeast-1
- ap-northeast-2
@magcho
magcho / init.el
Last active December 23, 2023 09:46
emacsの設定 https://github.com/emacs-ng/emacs-ng が必要です
;; Init.el --- My init.el -*- lexical-binding: t; -*-
;; Copyright (C) 2021 magcho
;; Author: magcho <mail@magcho.com>
;;; Commentary:
;; My init.el.
function FindProxyForURL(url, host) {
const portStr = url.match(/:[1-9][0-9]+/);
if (!portStr) {
// URL内にportが無ければそのまま返す
return "DIRECT";
}
const port = Number(portStr[0].slice(1));
alert(`host:${host} port:${port}`);
console.log(':sushi:')
@magcho
magcho / emacs-ng.rb
Created July 2, 2022 17:32
build emacs-ng by homebrew
class EmacsNg < Formula
desc "New approach to Emacs"
homepage "https://emacs-ng.github.io/emacs-ng/"
url "https://github.com/emacs-ng/emacs-ng/archive/refs/tags/v0.0.6b6dfb3.tar.gz"
version "0.0.6b6dfb3"
sha256 "afd3bf705f503cc44dfbbc571ff15cf3e33f4fdc757c0122507f00e1b6d30f52"
license "GPL-3.0-or-later"
depends_on "autoconf" => :build
depends_on "gcc" => :build
@magcho
magcho / index.vue
Created November 29, 2021 13:28
Nuxt.jsしてみる会 2021/11/29
<template>
<v-row justify="center" align="center">
<v-col cols="12" sm="8" md="6">
<v-text-field v-model="inputAccount"></v-text-field>
<v-btn @click="getGithubData()">検索</v-btn>
<v-card class="mx-auto" max-width="344" outlined>
<v-list-item three-line>
<v-list-item-content>
<div class="text-overline mb-4">OVERLINE</div>
<v-list-item-title class="text-h5 mb-1">
@magcho
magcho / codimd-permit.json
Last active February 28, 2022 16:48
md.magcho.com にサインインできるgithub userのwhitelist
{
"permitUser":[
"magcho",
"Goyotan",
"buuuuuuun3939",
"leon0128",
"// expolis",
"insell824",
"kanaematsui",
"satsukimain"
rustup install $(cat rust-toolchain)
cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
cargo-cache
cargo uninstall cargo-cache
# brew install texinfo automake gnutls autoconf llvm
export PATH="/usr/local/opt/llvm/bin:$PATH"
import axios, { AxiosRequestConfig, AxiosResponce } from "axios";
interface UserType {
name: string;
id: string;
}
export function wrapper<T = any, R = AxiosResponce<T>>({
...requestConfig
}: AxiosRequestConfig): Promise<R> {
from selenium import webdriver
import chromedriver_binary
option = webdriver.ChromeOptions()
option.add_argument("--headless")
driver = webdriver.Chrome(options=option)
driver.get("https://news.tbs.co.jp/society/index.html")
html = driver.page_source