Skip to content

Instantly share code, notes, and snippets.

View shinsaka's full-sized avatar
✍️
Writing python 🔥

Manabu Shinsaka shinsaka

✍️
Writing python 🔥
View GitHub Profile
@Pauwelz
Pauwelz / vscodedark.json
Created November 4, 2020 10:19
Windows Terminal theme matching VS Code Dark+
{
"name": "VS Code Dark+",
"black": "#000000",
"red": "#cd3131",
"green": "#0dbc79",
"yellow": "#e5e510",
"blue": "#2472c8",
"purple": "#bc3fbc",
"cyan": "#11a8cd",
"white": "#e5e5e5",
@popowa
popowa / SPIRAL2PDF.py
Last active November 1, 2018 01:36
自分が欲しかったので
import requests
import time
from bs4 import BeautifulSoup
from os import path, sys
from datetime import date, datetime
from weasyprint import HTML
"""
What's This?
SPIRALをコンテンツをPDFにしてローカルに保存してくれるスクリプト
@tatsuru
tatsuru / parse.rb
Last active February 1, 2016 08:22
ec2 RI parser
#!/usr/bin/env ruby
require 'json'
def parse(uri)
JSON.parse `curl -s #{uri}`.gsub("/*\n * This file is intended for use only on aws.amazon.com. We do not guarantee its availability or accuracy.\n *\n * Copyright 2014 Amazon.com, Inc. or its affiliates. All rights reserved.\n */\ncallback({",'{').gsub("\);", '').gsub(/([a-zA-Z]+):/, '"\1":')
end
puts %w(
region
@mochiz
mochiz / gist:4736183
Last active April 16, 2023 03:56
rbenvとruby-buildでRuby環境を最新に保つ

rbenvとruby-buildでRuby環境を最新に保つ

更新日:2014/11/19

rbenv, ruby-buildを更新

$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master