Skip to content

Instantly share code, notes, and snippets.

@umanoda
umanoda / Pipfile
Created October 17, 2019 02:20
use cacti and python-pptx in GCF
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
pylint = "*"
mypy = "*"
flake8 = "*"
@umanoda
umanoda / .bash_profile
Last active May 30, 2019 06:35
bash alias : gcloud util
# Switch GCP project
alias gconf='gcloud config configurations list | gsed '\''1d'\'' | peco | gawk '\''{ print $1 }'\'' | xargs gcloud config configurations activate && gcloud config list'
# Show current GCP project
alias gcurrent='gcloud config configurations list | grep True | awk '\''{print $1}'\'''
  • apple
  • banana
  • orange
  • pineapple
  1. step 1
  2. step 2
  3. step 3
@umanoda
umanoda / result
Last active August 29, 2015 14:26
Benchmark of WeakRef Cache
$ ruby weakref_cache.rb
user system total real
no_cache 0.000000 0.000000 0.000000 ( 0.000611)
weakref_cache 0.000000 0.000000 0.000000 ( 0.000349)
cache 0.000000 0.000000 0.000000 ( 0.000208)