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
<html> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<body> | |
<form method="post"> | |
<p>返済回数: <input type="text" name="loan_term" value="36" /></p> | |
<p>年利: <input type="text" name="interest_rate" value="2.3" /></p> | |
<p>借入額: <input type="text" name="loan_amount" value="1000000" /></p> | |
<p>ボーナス払い: <input type="text" name="bonus" value="300000" /></p> | |
<p>ボーナス回数(一年に何回か?): <input type="text" name="bonus_count" value="2" /></p> |
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 FindProxyForURL(url, host) { | |
return "SOCKS localhost:10080"; | |
} |
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
// 設定取得 | |
export const getConfig = () => { | |
return invokeAction('getSVConfig', []) | |
} | |
// 名刺の検索 | |
export const searchNameCardsEx = (_payload = {}) => { | |
const payload = { | |
target: _.get(_payload, 'target', 'MineOnly'), // All or MineOnly or Recent | |
page: _.get(_payload, 'page', 1), |
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
$ brew install graphviz | |
# Sequel Proで File > Export… > Dot を出力形式で選択 > Export。 | |
$ dot -Tpng localhost-db.dot > localhost-db.png |
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
curl http://1173bnb.com/ -o /dev/null -w \ | |
"\ | |
%{url_effective}への接続を開始。 | |
名前解決の実行...\n\ | |
名前解決の実行完了@%{time_namelookup}秒経過\n\ | |
対象サーバへの接続...\n\ | |
対象サーバへ接続完了@%{time_connect}秒経過\n\ | |
対象サーバへHTTPリクエスト送信...\n\ | |
対象サーバへHTTPリクエスト送信完了@%{time_pretransfer}秒経過\n\ | |
対象サーバ側でHTTPコンテンツ生成...\n\ |
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
// Karma configuration | |
// Generated on Mon Jan 04 2016 14:26:34 GMT+0900 (JST) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
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
// Karma configuration | |
// Generated on Mon Jan 04 2016 14:26:34 GMT+0900 (JST) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
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
class Post < ActiveRecord::Base | |
has_many :post_relationships | |
has_many :categories, through: :post_relationships | |
validates :name, presence: true | |
accepts_nested_attributes_for :categories | |
end | |
class PostRelationship < ActiveRecord::Base | |
belongs_to :post | |
belongs_to :category |
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
ActionController::RoutingError (No route matches [POST] "/ckeditor/EDITOR.config.filebrowserImageUploadUrl"): | |
actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | |
actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app' | |
railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call' | |
activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged' | |
activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged' | |
activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged' | |
railties (4.1.0) lib/rails/rack/logger.rb:20:in `call' | |
actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call' |