無職のプログラミング学校
■ このスレッドは過去ログ倉庫に格納されています
-~-~--~~----~~-~-~~--~--~~-~~-~~~~-~--~--~----~-~~-~-~~-~---~-~~-~~--~~~~
-~~-~-~--~--~~-----~~--~~-~--~-~-~-~~--~--~~~~~~~~~~~~~---~~--~~-~~------
~--~~--~~~~~~-~-~--~-~~--~~-~~-~-~-~~~-~----~~~~-~~~---~~------~~~-~-----
-~--~~~-~--~----~~~~~~-~-~~-~~----~--~~~~~---~-----~~~--~~~-~-~--~-~~~-~-
--------~~-~~~-~~-~---~-~-~~~--~----~-~~-~~-----~-~-~~~-~-~~~~-~~~~~-~-~~
~-~~--~~--~-~-~----~~~~~-~~~--~~~~~~~~-~~~----~----~-~--~~-~~-~---~----~-
~-~~~~~--~-~--~~---~--~~-~------~~~~~~--~-~~-~-~-~~--~----~--~~~~----~~~~
-~~~~--~-~~~-~~-~-~----~-~~--~~--~~~~------~----~~-~~--~~-~-~--~~-~-~~~-~
~~-~-~~--~---~-~-~-~-~~-~~--~-~---~~-~~~-~-~~-----~---~~-~~--~~~-~~-~-~-~
-~--~-~------~~~--~~~~-~~~~~~~-~~--~-~~-~~~~~----~--~-~-~~-~---~~----~-~-
--~-~--~~-~-~--~~-~~-~-~---~~-~~~~---~~~~~~-~-~~~~---~---~-~--~-~--~~~---
--~--~--~-~---~~~~~--~-~-~~~-~~-~~-~~--~-~~~-----~~~~~--~~--~~~~----~-~--
~--~~~-~-~~--~~-~-~~~----~~~~~----~~-~----~~-~-~--~~--~-~~~~~--~-~--~-~--
~~~-~~~-~-~~--~-~----~~~~~-~----~--~~---~~~~~-~-~----~---~~~~~-~~---~--~-
-~-~~~-~~~~-~-~---~-~--~~~-~-~-~-~~~~---~-~~-~~--~~--~--~-~----~~~---~~--
-~-------~~---~-~~~~~-~-~~--~~---~-~~-~~--~---~-~~-~~~-~---~~--~~~~~~--~~
~-~~-~-------~~-~-~~--~-~-~~-~~-~-~-~~---~~--~-~~-~~-~--~~-~--~~~----~~~~
~--~----~~~--~~--~~-~~~~~----~---~~~~~~~~-----~--~~-~~~~-~~---~-~~-~~----
--~--~-~~~-~-~-~~~~-~-~~~--~~~---~~~~-~--~~~~~~~--~----~---~~-----~-~---~
--~~-~~~~~--~-~~~~~-~~-------~~-~~---~~~~-~----~-~-~-~~--~~~-~~~----~~---
-~~~-~~-~~-~~~----~~-----~~--~~~~~--~~--~~~~~--~-~~-~--~~~~-~---~---~----
-~~--~---~-~-----~-~~~~~-~~-~--~~~-~-~~---~----~-~-~~~~~~--~-~~-~~~~~----
--~--~--~~~~---~-~~~~----~~----~~-~~--~~~~-~~~~~~~---~---~-~~~-~-~~~-----
~--~--~-~---~--~~-~--~~-~~~----~---~---~~~~~-~-~~-~~~-~--~~--~~~-~-~~~--~
-~~-~~~--~~-~-~-~~~~-----~-~--~-~---~~----~~~~~-~~--~-~--~---~~~-~~--~~~-
~~---~-~-~-~~--~~--~~-~-~~----~-~-~-~~---~-~~~-~-----~~~-~~~-~-~--~~--~~~ プログラミングに限らないが、
無職になると積極性が下がるのか
プログラミングの頻度が相当減ったな
前はpaizaとatcoderやってたんだけど、
ほとんどやらなくなってしまった 競プロ無職か
競技プログラミングはどこでも人気あるな
俺は性に合わないからやらないが workbook.defined_names.each do |defined_name|
#印刷範囲の設定
if defined_name.name == "_xlnm.Print_Area"
defined_name.reference = '/'' + str + '/'!$A$1:$R' + print_max_row.to_s if defined_name.reference.start_with?('/'' + str + '/'')
end
# #印刷タイトル行の設定
if defined_name.name == "_xlnm.Print_Titles"
defined_name.reference = '/'' + str + '/'!$1:$4' if defined_name.reference.start_with?('/'' + str + '/'')
end
end 結局、プログラミングの勉強するにしても、少し学習が進めば
大きなプログラムを作り、そして
データベースサーバへの接続(用意)の問題に必ずぶつかるから
やっかいだよな
お手軽に環境用意できればそれにこしたことない xammpとかで
localhostで疑似的にアクセスしてDB参照までできたらいいよな? interface,extend,implementのちがいがゴッチャに
なってしまっているorz.. 初心者向けの本一冊勉強してみたけど実務には程遠いと思った
アプリの作り方の本でも読んでみようかな https://www.sejuku.net/blog/73615
【SQL】5分でわかる! EXISTSでサブクエリを扱う方法
https://teratail.com/questions/185123
サブクエリと外部(内部)結合の違い
1. JOIN テーブルA ON 結合条件 = 結合条件
2. JOIN (SELECT id,name FROM テーブルA) as テーブルA ON 結合条件 = 結合条件 未経験+プログラミングで就職できるのは20代までらしい https://www.dbonline.jp/mysql/select/index8.html
-----
'Red' 'Yellow' 'White' のいずれかが含まれる値に一致させるには次のように実行します。
select * from regexptest where str regexp 'Red|Yellow|White';
-----
末尾が 'da' で終わる値を一致させるには次のように実行します。
select * from regexptest where str regexp 'da$';
----- https://www.dbonline.jp/mysql/select/index8.html
先頭が 'Y' から始まる値を一致させるには次のように実行します。
select * from regexptest where str regexp '^Y'; なんかプログラミングって数学やってるみたいだよね
学生時代数学苦手だったから少しでも得意だった奴はその時点で有利だよね updateSettings:オプションを更新する
var grid = document.getElementById('grid');
var table = new Handsontable(grid, {
colHeaders: true,
colWidths: [100, 200]
});
document.getElementById('button').addEventListener('click', function() {
table.updateSettings({
colHeaders: ['one', 'two', 'three', 'four']
});
}); getMatingsGroupStatus = ->
params = {}
$('#mating_group_info_form')
.serializeArray()
.filter (o)-> o.name.indexOf('group_status_params') >= 0
.forEach (o)->
key = o.name.replace(/^[^\[]+\[([^\[]+)\]$/,'$1')
params[key] = o.value
return params https://www.javadrive.jp/rails/template/index8.html
link_toメソッドを使ったリンクの作成
「books」コントロールの「index」アクションを呼び出すためのルーティングには
「books_index」という名前が付いていますので、このアクションを呼び出すための
リンクを作成する場合にはルーティング名に
「_path」を付けた「books_index_path」を指定して下さい。 https://www.sejuku.net/blog/29083【Rails入門】form_tagの使い方まとめ
[form_tagの書き方1]
<%= form_tag('/oranges', method: :post) do %>
(中身)
<% end %>
こちらは相対パスで、リソースを指定し、method: :postでHTTPメソッドを指定しています。
[form_tagの書き方2]
<%= form_tag(oranges_path, method: :post) do %>
(中身)
<% end %>
このように名前付きルートでも同じように振り分けられます。
[form_tagの書き方3]
<%= form_tag({ :controller => 'oranges', :action => 'create' },
{ :method => :post}) do %>
(中身)
<% end %>
このように、コントローラーとアクションで指定することもできます。
またはシンボルを使って書き直すと
[form_tagの書き方4]
<%= form_tag({controller: :oranges, action: :create},
{ method: :post}) do %>
(中身)
<% end %>
のようになります。
いずれの場合もpostメソッドを記述しなくても、Railsが自動的にpostと判断してくれるので省略することもできます。
上記のform_tagはすべて同じ挙動です。 def output
@today = Date.today()
@year = @today.strftime("%Y")
@month = @today.strftime("%m")
tmp_file_path = @@const_app[:output_tmp_dir_path] +
OUTPUT_TMP_FILE_NAME
output_file_path = @@const_app[:output_dir_path] + OUTPUT_FILE_NAME
render action: :index and return if !File.exist?(tmp_file_path)
workbook = RubyXL::Parser.parse(tmp_file_path)
output_data(workbook)
#出力処理
save_output_file(workbook, OUTPUT_FILE_NAME)
# ファイル出力
workbook = RubyXL::Parser.parse(output_file_path)
workbook.calc_pr.full_calc_on_load = true
workbook.calc_pr.calc_completed = true
workbook.calc_pr.calc_on_save = true
workbook.calc_pr.force_full_calc = true
output_file(workbook, OUTPUT_FILE_NAME)
end HEROKU(ヘロク、と読みます)とは、主だったプログラミング言語を用いて開発したWebサービスを簡単に全世界に向けて公開することができるサービスです。 # マイグレーションファイル作成コマンド
$ rails generate migration クラス名
# モデル作成
$ rails generate model モデル名
https://qiita.com/zaru/items/cde2c46b6126867a1a64 ■ このスレッドは過去ログ倉庫に格納されています