Skip to content

Instantly share code, notes, and snippets.

View himanoa's full-sized avatar
🏠
Working from home

himanoa himanoa

🏠
Working from home
View GitHub Profile

DF-MG-02

  • 攻撃力 32→39
  • 装弾数 720→990
  • リロード時間 2.8 → 2.2

MA-E-219 ETSUJIN

  • 攻撃力 404→464
const fs = require("fs")
const matter = require("gray-matter")
fs.readFileSync("test.md", "utf-8")
/* test.md body
---
author_association: OWNER
created_at: '2022-05-08T09:01:18Z'
html_url: https://github.com/himanoa/times-himanoa/issues/2#issuecomment-1120378582
id: 1120378582
issue_url: https://api.github.com/repos/himanoa/times-himanoa/issues/2
#!/usr/bin/env python
from argparse import ArgumentParser
import os
import subprocess
def run():
usage = 'Usage: pretty-output <command_name> [...argv]'
argparser = ArgumentParser(usage=usage)
argparser.add_argument('command_name', help='Execute command', nargs="*")
#!/usr/bin/env zx
const path = process.argv[3]
const matches = path.match(/^([A-Z]):(.+\n?)/)
if(matches) {
const [_, driveLetter, path] = matches
const unixPath = path.replace(/\\/g, "/").replace(/([ \(\)])/g, '\\$1');
const lowerDriveLetter = driveLetter.toLowerCase();
console.log(`/mnt/${lowerDriveLetter}${unixPath}`);
console.log("hello world")
#!/usr/bin/env bash
echo $1
xargs cmd.exe /c start $1
@himanoa
himanoa / circleci-context-register-command-builder.js
Last active July 7, 2020 05:56
circleciのcontextのセットアップをシュッってやる、zshスクリプトを生成する雑コマンド
/*
Requirements: [circleci](https://github.com/CircleCI-Public/circleci-cli)
*/
const orgName = "YOUR ORGNAME";
const contexts = [
{
name: "context-name",
// 環境変数名をkey 環境変数に代入したい値をvalueに入れる
},
$ curl -X POST 'https://vlueprint.org/sparql' -H 'Content-Type: application/sparql-query' -H 'Accept: "application/sparql-results+json"' -d @foo.query -vvv
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 216.239.34.21:443... * Connected to vlueprint.org (216.239.34.21) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
# Insert your preferred key mappings here.
map ge scrollToBottom
map <c-u> scrollPageUp
map <c-d> scrollPageDown
map ga visitPreviousTab
map x enterVisualMode
map X enterVisualLineMode
map d removeTab
map D restoreTab
[core]
editor=nvim
excludesFile=/Users/himanoa/.gitignore_global
[user]
name = himanoa
email = matsunoappy@gmail.com
[ghq]
root = /Users/himanoa/src
[mkrepo]
service = github.com