-
定義元に飛ぶための設定
- ctags --langmap=RUBY:.rb --exclude=".js" --exclude=".git" -R -f .git/tags
- vimrc に
set tags+=.git/tags
を追加
-
:lclose
- SyntasticCheck のwindow を閉じる
-
移動
- 単語の末尾に戻る: ge
-
関連 e で次単語に進む
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OWNER=masaki925 | |
REPO=repo | |
# ref: https://github.com/settings/tokens | |
TOKEN=<TOKEN> | |
# ref: https://docs.github.com/en/rest/issues/issues#list-repository-issues | |
# | |
curl \ | |
-H "Accept: application/vnd.github+json" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kfp | |
from kfp.v2 import compiler | |
from google.cloud import aiplatform | |
from my_components import _hoge_op, _fuga_op | |
# | |
# CONSTANTS | |
# ------------------------------------------------------------------------------ | |
PIPELINE_NAME = "test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.request import urlopen | |
from datetime import datetime, timedelta | |
def validate(expected, res): | |
return expected in str(res) | |
def lambda_handler(event, context): | |
try: | |
if not validate(event['expected'], urlopen(event['site']).read()): | |
raise Exception('Validation failed') |
- LISTEN ポートの確認
sudo lsof -i -n -P | grep LISTEN
- アプリ内でのウィンドウ切り替え
- system preferences から、keyboard > shortcut で、move to next window にCmd + Space を割り当て
あるクラスのインスタンスをpickle 化したとき、pickle を読み込んで利用するときにはクラスを別途import する必要がある、という話
- pickle 作成用スクリプト
import pickle
class Hoge():
def __init__(self, greeting):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'minitest/autorun' | |
class Foo | |
def bar | |
true | |
end | |
end | |
class TestFoo < MiniTest::Test | |
def setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "net/http" | |
require "uri" | |
proxy_addr = "localhost" | |
proxy_port = 3128 | |
uri = URI.parse "http://www.ugtop.com/spill.shtml" | |
Net::HTTP.new(uri.host, uri.port, proxy_addr, proxy_port).start do |http| | |
request = Net::HTTP::Get.new(uri.request_uri) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
.hoge1 { | |
color: red; | |
} | |
.hoge2.hoge3 { | |
background: red; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
</head> | |
<body> | |
<div class="tabs"> | |
<ul> | |
<li class="active"><a href="#tab1" class="tab-link">Tab 1</a></li> | |
<li><a href="#tab2" class="tab-link">Tab 2</a></li> |
NewerOlder