Go’s arrays are values. An array variable denotes the entire array; it is not a pointer to the first array element (as would be the case in C). This means that when you assign or pass around an array value you will make a copy of its contents. (To avoid the copy you could pass a pointer to the array, but then that’s a pointer to an array, not an array.) One way to think about arrays is as a sort o
株式会社はてな(代表取締役社長:栗栖義臣/本社所在地:京都市中京区)は、 株式会社フリークアウト(代表取締役CEO:本田謙/本社所在地:東京都港区) と共同で、アドベリフィケーション機能「BrandSafe はてな」を開発しました。 BrandSafe はてなは、はてなブックマークで使用しているエンジンを基に独自 開発したサイト判定アルゴリズムを用いて、不適切なサイトへの広告出稿をコ ントロールするアドベリフィケーション機能です。本日よりフリークアウトが 開発、提供するRTB(リアルタイム入札)対応DSP「FreakOut」に搭載され、 「BrandSafe はてな for FreakOut」としてサービス提供を開始します。 ▽ 開発の背景 昨今、RTBやDMPといったアドテクノロジーの発展に伴って、広告主が膨大な量 のサイトへ、より効率的に広告を配信できるようになりました。一方で、国内
人間とウェブの未来(旧) 「ウェブの歴史は人類の歴史の繰り返し」という観点から色々勉強しています。2014年までの人間とウェブの未来の旧ブログです。 Gitのコミット単位で動的にDockerイメージをデプロイするプロキシサーバpoolというソフトウェアがあります。 poolとは poolは、WebアプリとDockerfileをGitで管理している場合に、コミットidをサブドメインとして( http://<commit-id>.pool.dev/ )poolにアクセスするだけで、そのGitレポジトリのコミット時の状態でWebアプリのDockerイメージをデプロイし、Webアプリのポートへとリバースプロキシして、Webアプリのレスポンスを返します。もちろん、コミットidをキーに複数の状態にどんどんアクセスできます。(mod_mrubyのユースケースを調査していてたまたま見つけました)。 このp
Neovim Is a refactor, and sometimes redactor, in the tradition of Vim (which itself derives from Stevie). It is not a rewrite but a continuation and extension of Vim. Many clones and derivatives exist, some very clever—but none are Vim. Neovim is built for users who want the good parts of Vim, and more. Vim Vim is a highly configurable text editor built to enable efficient text editing. It is an i
2014-08-13 Rubyで知らなかったメソッドとかちょっとだけ 配列 今までこう書いてた (1..20).to_a こう書ける事を知った [*1..20] 添字 今までこうしてた 10.times do |idx| p "#{idx+1} ループ目" end こう書いたら素敵だった 10.times.with_index(1) do |idx| p "#{idx} ループ目" end if 数字 ずっともっといい書き方があると思ってたけどこう書いてた i = 10 p "hoge" if i >= 5 && i <= 15 やっぱりあった i = 10 p "hoge" if i.between?(5, 15) first, last めんどくさいなぁと思って書いてた arr = [*1..50] 5.times.map{ |idx| arr[idx] } 衝撃が走った arr =
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く