Spells and Charms

プログラミング(呪文学)の学習記録。

2018-01-01から1年間の記事一覧

【短期ロードマップ】2019.1-2

依然として春からBootcampに行きたい希望はある。せねばならないことが具体的になってきたので、改訂。 ahochauyo.hatenablog.com 2019.1 -練習問題系 kata 8kyuからスタートして7kyuまで完全に解けるように。 paiza レベルCの問題をスラスラ解けるくらい。B…

近況、2018年総括など。

-ただいま休暇中 12/21から休暇にはいり、トロントから飛行機で4時間ほどの山奥でバケーション中です。わりとのんびりはしているので毎日プログラミンはしております。自分は単身カナダにいるので夫と久々の合流。一緒にいる時間を大切にしつつ必ず毎日プロ…

JavaScriptではいくつか型が存在している。 ahochauyo.hatenablog.com 先にでてきたものに合わせて計算するという仕組みになっているので要注意。 //変数は数値 var x = 1x += 2 // xは数字。これは1+2の足し算だな。3をいれとこう。 //変数は文字列 var y =…

var

varは初期値を与えずに宣言だけすると、最初はundefinedの状態。 var x console.log(x) // undefined var x = 10 // 初期値を与える例1console.log(x) // 10 var x = “abc” // 初期値を与える例2console.log(x) // abc varは毎回新しく変数を宣言する。 {}の…

左辺がなくてもいい。=がなくてもいい。 プログラミング初心者なので、まだ感覚的に体得できていない感じがある。 いままでは、 配列を数値に変換して計算させたり、 この条件ならば計算Aそれ以外は計算Bなど、 計算をするプログラムが多かった。 つまり va…

【JavaScript】基本の型

Values -* string : 文字列 var x = "abc", var x = "10", var x = "false"-* number: 数字 var x = 10-* boolean: 真偽値 var x = true または var x = false-* null: 何もない var x = null-* undefined: 未定義 var x; - Object - * function: 関数 var x…

【Spells and Charms】 呪文一覧 ※随時更新

・絶対値に変換する Math.abs ・値の分割var nums = line.split(" "); // lineに入った文字列をスペース文字で分解 ・改行コード /n ・改行で分割する 【JavaScript入門】split()で文字列の分割&正規表現の活用法まとめ! | 侍エンジニア塾ブログ | プログ…

【短期ロードマップ】2018.12 - 2019.3 ※随時更新

2018年 12月 paiza転職、というサイトのD問題 105問全部。 udemy Javascript video 呪文一覧作成 階乗 閏年 2019年 1月 2月 4月開始のBoot Camp 申し込める段階にあるか判断 3月

【Day5】累乗しつづける- Modified

さっきアップしたやつ、もう絶滅しかかってるやり方でやってたらしい。虚。 ahochauyo.hatenablog.com てことで、現役のやり方に修正しました。 Modified code JavaScript function loop(){ var n = document.getElementById("nb").value; var x = n; while(x…

【Day5】累乗しつづける

次の課題はこんなかんじでした。ちょっと時間かかったなあ。 テキストボックスを一つ用意して、 そこに打ち込んだ数字を1000を超えるまで自分の累乗をしていって、その都度途中の値をconsole.logで出力するプログラムを作る 例えば5って打ち込まれてなんかex…

【Day4】Repeat Alert

次の課題はこんなかんじ。 テキストボックスを二つ用意して 一つ目のテキストボックスに打ち込まれた文字を二つ目のテキストボックスに打ち込まれた回数alertで繰り返し表示してみて 例えば test 3 って二つ打ち込まれとったら testって書いたアラートが3回…

【Day3】 Arithmetic

次の課題はこんなかんじ。 四則演算のやついこ 数字を入れるテキストボックス2つと、その間に+,-, x, ÷を選べるセレクタを用意して、 ボタン押したら計算結果をアラートしよかほしたら Language HTML/ Javascript My code <html lang="en"> <head> <meta charset="utf-8"> <title>Arithmetic</title> </head> <body> <form id="arthmetic"> <input type="text" id="n1"> <select id="op"> </select></form></body></html>

console.log() を手に入れる

今現在3つめの課題でちょっと苦戦中。ある程度コードを書いたが、なにかが呼ばれていない模様で 動作しない。 そこで、タイトルのとおり、console.log() なるものがあるよと教えてもらう。 右クリックするとでてくるInspectの画面をつかう。 右側のやつ 上の…

【Day2】 Text box - Modified

前回記事をdocumentを使わずにやってみようという話。 ahochauyo.hatenablog.com Language HTML CSS Javascript Code HTML/ Javascript <html lang="en"> <head> <meta charset="utf-8"> <title>googrun</title> <link rel="stylesheet" href="stylesheet.css"> </head> <body> <div class="container"> </div></body></html>

【Day2】 Text box

次の課題はこんなかんじ。 テキストボックスに何か入力してボタン押したら テキストボックスの中に入れた文字がアラートで表示されるように 前回検索ボックスをつくったのでそのまま流用することに。 Language HTML (前回分から一部変更) CSS (前回分から変…

【Day1】 Top page like the Google's.

最初の課題はグーグルみたいなトップページをつくるというチャレンジ。ボタンを押したらどこかに飛ぶ、などの動きはなし。見た目のみ。 Language HTMLCSS My code HTML <html lang="en"> <head> <meta charset="utf-8"> <title>googrun</title> <link rel="stylesheet" href="stylesheet.css"> </head> <body> <div class="container"> <img src="googrun.jpg" alt="logo"> <…</div></body></html>

【初歩】CSSでFlexboxをつかいたいときの宣言

必ず、CSS classごとに、display: flex; というpropertyを忘れないように。 これはHTMLでいう開始タグみたいなもので、 この宣言をしないと、flexboxは効かない。 参考までに自分のCSSで解説すると、赤字をぬかして青字だけ書いてました。 .container { disp…

【プログラミング学習】なんとなく一旦のゴールきめた。

友人のエンジニアの人に少し前から手ほどきをしてもらっている ネットの情報や、ベルリンでBoot campに参加され大胆なキャリアチェンジを成功させた佐藤さんのブログを参考にさせていただき、自分も目標は1000時間にしようとおもう。 来年の春か夏でBoot cam…

The Sun is also a Star by Nicola Yoon

Recently, my situation has changed dynamicaly. I am working as a full-time worker at the cafe, and have quited another part-time job. The cafe's shifts are totally randam, so I'm dialing my rythm now, still doing. By the way, yesterday, I …

Next year/ 来年どうかな

My husband will go to Shanghai next year for a year. But the visa is only for him not for family. So what should I do? Going back to Japan? I think South East Asia is good. Thailand or the Phillipines? During staying in Canada I would lear…

Stiff neck/ 首凝り

I had a bad stiff neck on the right side. The fatigue is spreaded from head muscle to under back. Working as a barista and being on the computer for prolonged time are causes, I guess. Sometimes I do stretching or rotating neck and shoulde…

Busy Friday!/ てんこ盛りな金曜日

Happy Friday! It'll be busy today. I'll have new hair color and highlights, go to a walk-in clinic, and go to work. When I woke up today, I felt somethig in my throat. Ohh, not good. From next Monday night, my husband is coming! he'll stay…

Problem again/ 問題の多い家。。

Uninformed construction suddenly started yesterday. They did something for water pype. Water stopped. At night water resumed. BUT it stopped again in this morning. The street had filled up water and city staff came here... Still water outa…

New Planner!/ 新しい手帳

I've got my new planner for 2019!! I have loved scheduling. And also I love taking note. Two month ago, I started taking accountability, taking what I've done into blank note, always moleskine plain large size, every single day. It was ama…

My friends invited me to her "friendsgiving party". It was so beautiful. It was actually vegan party, but I made regular meal and vege one. Oh that seemed to be fine because I didn't know that was vegan party but..I felt bad. While Japanes…

Happy Thanksgiving!/ 感謝祭おめでとう。

It was such a beautiful day.... One of my friends invited me to her Thanksgiving dinner at her home. That was so private party, except for me, everyone was her family, grandfather, parents, sister, cousin, boyfriend, sposes. My eyes were t…

Headache/ 頭痛の原因

I had a bad hsadache again an threw up. I don't know why. I am oviously not sick. Perhaps, shoulder stiff? I have some tension on my head, neck and upper back, espeially right side. --- 一昨夜、頭痛がひどくて吐いてしまった。特に理由はわか…

Birthday decision/ 誕生日の決断

I'm a practical person. And I had spent poor time when I was junior high and high school because of father's problem. So I usually don't take risks. I always prepare somthing for just in case. Now, I the cafe offered me extra shifts. But t…

Enjoy the changing./ 変化を楽しまなきゃ

Why many things happen at the same time?? I had a first job of new part-time job, because my cafe owner informed me to cut shifts in winter time. But the cafe owner offered me more shifts, because one of my work friends has decided to leav…

+ Recording/ 記録の力

I write two paes notes ro blank pages everyday. That's not a diary, that's a recording. I write what I've done on the left page, and recent tasks on the top of the right page. And then, I write the review of the day on the next day. It had…