Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
入力した CIDR のネットワーク・アドレスを表示する Alfred ワークフローを作った
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
lorentzca
November 12, 2017
Programming
1.5k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
入力した CIDR のネットワーク・アドレスを表示する Alfred ワークフローを作った
FFLT の資料です。
lorentzca
November 12, 2017
More Decks by lorentzca
See All by lorentzca
Continuous Vulnerability scanning on CircleCI
lorentzca
1
3.4k
Other Decks in Programming
See All in Programming
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
150
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
180
スマート反転とウェブアクセシビリティ
camiha
0
210
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
250
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
150
Jetpack Compose メカニズム
skydoves
0
450
モバイル交通系ICへのチャージ実例から考える、クロスプラットフォーム開発におけるiOS実機テスト設計とCI運用
yusuga
1
520
Building an Out-of-Order CPU
latte72
1
790
Intent as Code
shoppingjaws
6
1.1k
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
2.2k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
210
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
4
2.9k
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
430
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
240
Navigating Weather and Climate Data
rabernat
0
520
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
330
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
600
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
Designing for Timeless Needs
cassininazir
1
480
Code Review Best Practice
trishagee
74
20k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
30 Presentation Tips
portentint
PRO
1
400
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Transcript
ೖྗͨ͠ CIDR ͷωοτϫʔΫɾΞ υϨεΛදࣔ͢Δ Alfred ϫʔΫϑ ϩʔΛ࡞ͬͨ @lorentzca
࡞ͬͨత • Alfred ͷϫʔΫϑϩʔΛͳΜ͔͠Β࡞Γ͍ͨ • Go ͰͳΜ͔͠Β࡞Γ͍ͨ • ঁͷࢠ͔Β CIDR
ͷωοτϫʔΫɾΞυϨεΛฉ͔Εͨࡍʹଈ ࠲ʹ͍͑ͨ(Πέϝϯ)
Alfred ͷϫʔΫϑϩʔͷ͘͠Έ Ϣʔβ͕ͳΜ͔ೖྗ͢Δ → ͳΜ͔ͷॲཧΛ͢Δ → Ξτϓοτ ͢Δ
Ϣʔβ͕ͳΜ͔ೖྗ͢Δ
Ϣʔβ͕ͳΜ͔ೖྗ͢Δ Alfred Ͱ {query} ͱͯ͠ࢀরͰ͖Δɻ
ͳΜ͔ͷॲཧΛ͢Δ Alfred ͷ Script Filter Λ͏ͱҙͷίʔυΛͬͯ݁ՌΛ Alfred ʹ͢͜ͱ͕ग़དྷΔ • ࠓճͷ߹Ϣʔβʔ͕ೖྗͨ͠
CIDR ΛҾͱͯ͠ Go Ͱ࡞ ͬͨπʔϧʹ͠ɺ • ωοτϫʔΫɾΞυϨεΛ json Ͱฦ͢ ॲཧΛߦ͏ ※ Go ͷ net ύοέʔδΛ༻ͯ͠ CIDR ͷॲཧΛ͍ͯ͠Δɻ
ͳΜ͔ͷॲཧΛ͢Δ Script FilterͰ࡞ͨ͠σʔλΛ Alfred ͢ࡍͷϑΥʔϚοτ json ͔ xml ΛબΔɻjson
Alfred 3 ͔ΒରԠͨ͠ɻ ! json ܗࣜͷϑΥʔϚοτͷྫҎԼ(࠷ݶඞཁͳͷ {"items": [{"title": "hoge"}]} )ɻ {"items": [ { "title": "hoge", "arg": "hoge" } ]} ※ arg ͕ॏཁɻ
Ξτϓοτ͢Δ arg Φϓγϣϯ͕͋ΔͱɺͦͷσʔλΛ࣍ͷϑϩʔʹΈࠐΊ Δɻ • ΫϦοϓϘʔυʹίϐʔ • ௨ηϯλʔʹ௨ • etc...
Alfred ͰΈΔͱ͜Μͳײ͡
σϞ
·ͱΊ • Alfred ॊೈʹ৭ʑग़དྷΔ ! • ͖ͳεΫϦϓτΛͬͯͳΜ͔͢Δࡍʹɺ Script Filter Λ
͏͜ͱͱ json ϑΥʔϚοτ Λ͏͜ͱɺ arg Φϓγϣϯ Λ ͏͜ͱ͕ॏཁ • ωοτϫʔΫɾΞυϨεҎ֎දࣔͰ͖ΔΑ͏ʹ͍ͨ͠
Ռ GitHub - lorentzca/alfred-ipv4-network-workflow: Get ipv4 netowrk.
ࢀߟϦϯΫ Go • net - The Go Programming Language •
json - The Go Programming Language Alfred • Features Overview - Alfred Help and Support • Script Filter - Workflow Input Objects - Alfred Help and Support • Script Filter JSON Format - Workflow Input Objects - Alfred