Upgrade to Pro — share decks privately, control downloads, hide ads and more …

第28回シェル芸勉強会へようこそ

 第28回シェル芸勉強会へようこそ

最初にイントロで話す予定が、時間配分の都合で最後になった。
イベントレポートブログはこちら。
http://papiro.hatenablog.jp/entry/2017/04/24/002533

papiron

April 22, 2017
Tweet

More Decks by papiron

Other Decks in Programming

Transcript

  1. ۙگ • ݱ࣮ಀආ͍ͨ͠ • 10೥ͿΓʹόΠΫʹڵຯ • ৐ͬͯͨόΠΫ͸طʹઈ൛ • YAMAHA SRX600

    • ϏοάγϯάϧͰϚχΞοΫ http://moto.webike.net/bike/service/890/
  2. ۙگ • ໘ന͍όΠΫ͕৽ൃച • খഉؾྔϩʔυεϙʔπ • SUZUKI GIXXER 150cc •

    Ͳ͏ݟͯ΋एऀ͕λʔήοτʂʁ • Φοαϯ͕৐ͬͯ΋͍͍Ͱ͔͢ʁ http://www1.suzuki.co.jp/motor/product/gsx150l7/top
  3. ۙگ • Windows10 Creators Update • Bash on WindowsͷߋͳΔվળ •

    tmuxɺsshɺscpͳͲ͕ਖ਼͘͠ಈ͘ • vimɺemacsɺgitͳͲ΋αϙʔτ • INOTIFYαϙʔτ • Windowsͱͷޓ׵ӡ༻ੑ޲্ https://japan.zdnet.com/article/35099706/
  4. ۙگ • ۝۝ͷܭࢉ݁Ռ͕36௨Γ͔͠ͳ͍ • γΣϧܳͱRubyܳͰݕূ • irb (Interactive Ruby) •

    RubyͷϝιουνΣʔϯ https://togetter.com/li/1098244 https://twitter.com/papiron/status/852138532827279360
  5. ۙگ $ echo {1..9}\*{1..9}\; 1*1; 1*2; 1*3; 1*4; 1*5; 1*6;

    1*7; 1*8; 1*9; 2*1; 2*2; 2*3; 2*4; 2*5; 2*6; 2*7; 2*8; 2*9; 3*1; 3*2; 3*3; 3*4; ……… 8*4; 8*5; 8*6; 8*7; 8*8; 8*9; 9*1; 9*2; 9*3; 9*4; 9*5; 9*6; 9*7; 9*8; 9*9; $ echo {1..9}\*{1..9}\; | bc | tail -n 5 45 54 63 72 81 $ echo {1..9}\*{1..9}\; | bc | sort -n | uniq | wc -l 36 γΣϧܳ ղઆ
  6. ۙگ $ irb irb(main):001:0> (1..9).to_a => [1, 2, 3, 4,

    5, 6, 7, 8, 9] irb(main):002:0> (1..9).to_a.repeated_combination(2).to_a => [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8], [1, 9], [2, 2], [2, 3], [2, 4], [2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [3, 3], [3, 4], [3, 5], [3, 6], [3, 7], [3, 8], [3, 9], [4, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [5, 5], [5, 6], [5, 7], [5, 8], [5, 9], [6, 6], [6, 7], [6, 8], [6, 9], [7, 7], [7, 8], [7, 9], [8, 8], [8, 9], [9, 9]] irb(main):003:0> (1..9).to_a.repeated_combination(2).collect{|a| a[0]*a[1]} => [1, 2, 3, 4, 5, 6, 7, 8, 9, 4, 6, 8, 10, 12, 14, 16, 18, 9, 12, 15, 18, 21, 24, 27, 16, 20, 24, 28, 32, 36, 25, 30, 35, 40, 45, 36, 42, 48, 54, 49, 56, 63, 64, 72, 81] irb(main):004:0> (1..9).to_a.repeated_combination(2).collect{|a| a[0]*a[1]}.uniq.size => 36 Rubyܳ ղઆ
  7. γΣϧͷػೳ • ίϚϯυͷ࣮ߦ • ؀ڥม਺ɺPATHɺҾ਺ɺฦΓ஋ • ϓϩηε੍ޚ • όοΫάϥ΢ϯυɺγάφϧ •

    σʔλͷೖग़ྗ੍ޚ • ඪ४ೖྗɺඪ४ग़ྗɺඪ४Τϥʔग़ྗ • ϑΝΠϧγεςϜ • ύΠϓɺϦμΠϨΫτ
  8. γΣϧͷػೳ • ΠϯλϥΫςΟϒػೳ • ϓϩϯϓτ • historyɺิ׬ • alias •

    ϓϩάϥϛϯάػೳ • ม਺ɺؔ਺ • ੍ޚߏ଄ɺΤϥʔॲཧ • σόοάग़ྗ
  9. ίϚϯυΛ஌Δ •ςΩετॲཧܥ •୯ػೳ •catɺgrepɺsortɺuniqɺ tailɺheadɺtrɺpasteɺ diffɺcomm •ଟػೳ •sed •ϑΝΠϧγεςϜܥ •lsɺfindɺstat

    •γʔέϯεੜ੒ •seqɺjotɺyes •ͦͷଞ •xargsɺtimeɺdateɺteeɺ echoɺprintfɺbcɺcurl •࠷ऴฌث •awk •perlɺruby (-alne)
  10. Open usp Tukubaiͷ঺հ •೔෇࣌ࠁॲཧ •mdateɺcalclockɺyobi •֤छूܭ •gyoɺcountɺsmܥɺmap •ϑΟʔϧυ੾ग़ •selfɺdelf Open

    usp TukubaiίϚϯυϚχϡΞϧ https://uec.usp-lab.com/TUKUBAI_MAN/CGI/TUKUBAI_MAN.CGI?POMPA=LIST •ߦྻม׵ •tarrɺyarrɺtateyoko •σʔλ݁߹ •loopjɺloopxɺjoinܥ •ͦͷଞ •getfirstɺjuniɺmojihame
  11. γΣϧܳؔ࿈৘ใ • USP༑ͷձ • https://www.usptomo.com • UEC - use engineers'

    community site • https://uec.usp-lab.com/ INFO/CGI/INFO.CGI? POMPA=LIST • ্ాϒϩάʢձ௕ʣ • https://blog.ueda.asia • େνΣοΧʔɿγΣϧܳ ਓͨͪ • https://daichkr.hatelabo.jp/ antenna/960679194075891200 • ஓ੿ϒϩά • http://papiro.hatenablog.jp