brew install xpdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="http://cdnjs.cloudflare.com/ajax/libs/vue/0.11.0/vue.min.js"></script> | |
| <div id="container"> | |
| <div> | |
| 0:{{array[0].name}}, {{array[0].prop}} | |
| </div> | |
| <div v-repeat="array" v-show="$index > 0"> | |
| {{$index}}:{{name}}, {{prop}} | |
| </div> | |
| </div> | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="renderer"> | |
| <svg id="svg"></svg> | |
| <canvas id="canvas"></canvas> | |
| </div> | |
| <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> | |
| <script src="https://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script> | |
| <script src="https://canvg.googlecode.com/svn/trunk/StackBlur.js"></script> | |
| <script src="https://canvg.googlecode.com/svn/trunk/canvg.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 第1引数に配列もしくはオブジェクトを, | |
| // 第2引数以降に配列のキー名もしくはプロパティ名を与える | |
| // 指定した要素やプロパティが存在しなければNULLが返却される | |
| function array_at() | |
| { | |
| $numargs = func_num_args(); | |
| $args = func_get_args(); | |
| $arr = array_shift($args); | |
| foreach ($args as $index) { | |
| if (is_array($arr)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function h(s) { | |
| var map = { | |
| '<': '<', | |
| '>': '>', | |
| '&': '&', | |
| '\'' :''', | |
| '"' :'"' | |
| }; | |
| function f(s) { return map[s]; } | |
| return s.replace(/<|>|&|'|"/g, f); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tap phinze/homebrew-cask || true | |
| tap homebrew/versions|| true | |
| update || true | |
| install brew-cask || true | |
| install git || true | |
| install openssl || true | |
| install wget || true | |
| install jq || true | |
| install python3 || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 5578864439 | |
| # ENV: Ruby | |
| # POINT: 順列をすべて数え上げようと思うと計算量が大きくなりすぎるので,メモ化により枝刈りする | |
| ### この問題で出現する宝石列は, | |
| ### 与えられた宝石の順列を(辞書順で昇順となるような順序で)すべて求め, | |
| ### 各順列に対して先頭から1個,先頭から2個,先頭から3個……を取り出して, | |
| ### 重複するものを取り除きながら並べていくことで得ることができます。 | |
| ### | |
| ### 例題(minis.txt)の場合は,出現する宝石の個数が少ないことから, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| require 'net/http' | |
| require 'twitter' | |
| client = Twitter::REST::Client.new {|config| | |
| config.consumer_key = '' | |
| config.consumer_secret = '' | |
| config.oauth_token = '' | |
| config.oauth_token_secret = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| require 'open-uri' | |
| require 'nokogiri' | |
| # 下記サイトから相場データを取得する | |
| # http://imascg.info/ | |
| url = "http://imascg.info/idol/?targetDate=ALL" | |
| accept_language = "ja,en;q=0.8" | |
| html = open(url, "accept-language" => accept_language).read |