Skip to content

Instantly share code, notes, and snippets.

View dora-gt's full-sized avatar

Taiga Nakayama dora-gt

View GitHub Profile
@dora-gt
dora-gt / README.md
Created January 27, 2022 02:08
returning from a block
def do_something(&block)
    puts "(1)"
    yield block
    puts "(2)"
end

def do_this
    puts "(3)"
 do_something do
vuetify: {
customVariables: ['~/assets/styles/vuetifyVariables.scss'],
defaultAssets: {
font: {
family: ['Roboto', 'Noto+Sans+JP'],
},
icons: 'mdi',
},
theme: {
dark: false,
export POD_NAME=$(kubectl get pods --namespace default -l "app=ethereum-geth-tx,release=ethereum" -o jsonpath="{.items[0].metadata.name}")

The above doesn't work, at least at the current version.
It should be like this:

export POD_NAME=$(kubectl get pods --namespace default -l "app=ethereum,component=geth-tx" -o jsonpath="{.items[0].metadata.name}")
@dora-gt
dora-gt / DrivingAgent.mov
Last active October 23, 2017 09:30
ml-agents
This file has been truncated, but you can view the full file.
@dora-gt
dora-gt / jekyll.sh
Created September 11, 2017 13:07
jekyll
cd interledger.github.io
bundle exec jekyll serve
# http://127.0.0.1:4000
@dora-gt
dora-gt / gist:9a1d3356dcc82f59db4d6b30d5bc66d1
Last active June 23, 2017 09:25
C# の非同期プログラミング
https://msdn.microsoft.com/ja-jp/magazine/jj991977.aspx
https://ufcpp.wordpress.com/2012/04/26/%E9%9D%9E%E5%90%8C%E6%9C%9F%E5%87%A6%E7%90%86%E3%81%A8%E3%83%87%E3%82%A3%E3%82%B9%E3%83%91%E3%83%83%E3%83%81%E3%83%A3%E3%83%BC/
https://www.slideshare.net/ufcpp/an-other-world-awaits-you?ref=https://ufcpp.wordpress.com/2012/11/12/asyncawait%E3%81%A8%E5%90%8C%E6%99%82%E5%AE%9F%E8%A1%8C%E5%88%B6%E5%BE%A1/
https://www.slideshare.net/neuecc/httpclient
https://www.infoq.com/jp/articles/Async-API-Design
@dora-gt
dora-gt / Xamarin.Forms 初心者が知っておくべき事.md
Last active June 5, 2017 12:46
Xamarin.Forms 初心者が知っておくべき事
  • xaml には各プラットフォームに依存したタグを書く事も可能という事
    • 名前空間を定義する時に assembly と targetPlatform を指定する
  • DependencyService というものがあるという事
  • ネイティブの UI 要素は NativeViewWrapper を使う事で Xamarin.Forms.View として扱う事が可能

参考資料

絶賛編集中です

@dora-gt
dora-gt / SonarLint.Runner.sh
Last active July 8, 2016 08:17
Run SonarLint.Runner.exe on mono
#!/bin/sh
# may be /usr/local/bin/mono or /Library/Frameworks/Mono.framework/Commands/mono also.
/Applications/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/Current/bin/mono SonarLint.Runner.exe
@dora-gt
dora-gt / readme.en.md
Created January 3, 2012 11:35
How to make a new window in Terminal with AppleScript

How to make a new window in Terminal with AppleScript

Just do like this:

do script ""