http://kiban.doorkeeper.jp/events/5291
- 「師弟登壇・新米サムライの集い 2013」とは
- 各社プレゼンの共有(かいつまんでお話)
- ピックアップ
| ももクロ駆動開発 (ももくろくどうかいはつ、momoclo-driven development; MDD) とは、 | |
| プログラム開発手法の一種で、プログラムに必要な各機能について、最初にももクロを聞き(これをももクロファーストと言う)、 | |
| そのももクロが動作する必要最低限な実装をとりあえず行った後、コードを洗練させる、という短い工程を繰り返すスタイルである。 | |
| 多くのアジャイルソフトウェア開発手法、例えばエクストリーム・プログラミングにおいて強く推奨されている。近年はももクロZ駆動開発へと発展を遂げている。 |
| #-*- coding: utf-8 -*- | |
| require 'open-uri' | |
| class Searchinko | |
| def initialize(word) | |
| @search_word = word | |
| end | |
| def getTitle(contents) | |
| contents =~ /<title>(.*?)<\/title>/ | |
| return $1 |
| 'Way\Generators\GeneratorsServiceProvider' |
http://kiban.doorkeeper.jp/events/5291
| require 'tempfile' | |
| chars = (('a'..'z').to_a + ("A".."Z").to_a + (0..9).to_a ) * 1000 | |
| words = [chars.join()] * 11 | |
| files = [] | |
| paths = [] | |
| words.each do |word| | |
| file = Tempfile.new(['hoge','jpg'], :encoding => 'ascii-8bit') | |
| file.write(word) | |
| files << file | |
| paths << file.path |
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf values can go from 4 to 63. Lower values mean better quality.-b:v is the maximum allowed bitrate. Higher means better quality.| <html> | |
| <head> | |
| <title>Tweet buttonのツイートイベントを取得する</title> | |
| </head> | |
| <body> | |
| <!--ツイートボタン--> | |
| <a href="https://twitter.com/share" class="twitter-share-button" data-via="razokulover" data-lang="ja">ツイート</a> | |
| <script type="text/javascript" charset="utf-8"> | |
| window.twttr = (function (d,s,id) { | |
| var t, js, fjs = d.getElementsByTagName(s)[0]; |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| fmt.Println("スタート!") | |
| defer fmt.Println("defer 1つめ") | |
| defer fmt.Println("defer 2つめ") |
| from pprint import pprint | |
| import requests | |
| gif_bytes = requests.get("http://imgs.xkcd.com/comics/frequency/heartbeat.gif").content | |
| import gifparse | |
| gif = gifparse.parse(gif_bytes) | |
| pprint(gif.__dict__) | |
| # output | |
| ''' |
| #! /usr/bin/env xcrun swift | |
| import Foundation | |
| // 配列を返り値にするときは | |
| //[String]とか[Int]を型としてセットする | |
| func incr (n: Int...) -> (res:Int,init_val:[Int]) { | |
| var res = 0 | |
| var init_val = n | |
| for i in n { |