ホームページやWebサービスの制作を通して、実践的にプログラミングを学べます。他にも、ゲーム制作やデータ分析・機械学習/AIに使われる言語まで幅広くカバー。学びたい分野のレッスンがきっと見つかります。
GUI環境における操作の基本は、操作対象を選択して、命令することである。すべての操作は「何を、どうする」という目的語と述語の関係で表現できる。(もちろん、操作しているのはユーザー自身なのだから、主語はユーザーである。でも、ここではあまり重要でない) GUIの操作は初めての人にも分かりやすいのだけど、慣れてくるとその冗長な操作が面倒臭くなってくる。そこでキーボードショートカット、という仕組みが用意された。command-Cでコピーとか、command-Wでウィンドウを閉じるとか、キーの組み合わせでGUIを操作する仕組みだ。 たぶん、慣れている人ほどショートカットを多用して、素早い操作を実現していると思う。パソコンはキーボードとコマンドラインで操作するCUIから、マウスとグラフィックで操作するGUIに進化したけど、より効率を求めるとCUIに回帰しているという面白い現象だ。 さらに効率を求めると
いつも、いざ使う時になって、どうやるんだっけ?と探し回ってしまうので、忘れないようにメモ。(以前の日記でも、所々分散して書いているかもしれないが、ここで総括的に記録することにした) シェルスクリプト $ fpath='/a/b/c.d.e' # ファイル名を取り出す(拡張子あり) $ fname_ext="${fpath##*/}" $ echo $fname_ext c.d.e # ファイル名を取り出す(拡張子なし) $ fname="${fname_ext%.*}" $ echo $fname c.d # 拡張子を取り出す $ fext="${fpath##*.}" $ echo $fext e # ディレクトリを取り出す $ fdir="${fpath%/*}" $ echo $fdir /a/b なるほど! そして、仕組みとしては、以下のルールしたがって変換されているようだ。 ${
Latexで文書を作成する際に、ソースコードを載せる機会は多々ある。 その時に、jlistingを使うと見栄えがものすごくよくなる。 そこで備忘録にインストール方法と使い方についてまとめておく。 使用しているTexはTexインストーラ3。 私はあまりLatexに詳しくないため間違っていることを書いているかもしれない。 あしからず。 jlistingのインストール ここからjlistingをダウンロードする。 2006.12.26現在のファイル名は"listings-1.3.zip"。 リンク先が 404 になっていたので現在(2008.01.09)は ここ からダウンロードする。 上記 URL には listings を日本語対応にするマクロのみが含まれているので ここ から listings 本体をダウンロードする。 解凍してできたフォルダを以下のパスにコピーする。 jlisting.s
みんなのIoT/みんなのPythonの著者。二子玉近く160平米の庭付き一戸建てに嫁/息子/娘/わんこと暮らしてます。月間1000万PV/150万UUのWebサービス運営中。 免責事項 プライバシーポリシー プログラミング言語(C#,VB,PHP,C/C++,Python,Java,Ruby,JavaScript,Objective-C)やHTMLのコーディングスタンダードを集めたリストを発見しました。日本語訳があるものはできるかぎり探し出して,括弧のなかに併記して補ってあります。微妙に古いのが混じってるかな。Rubyは日本発のコーディング規約がある気がする(まつもとさんの日記を見つけた)。 元記事にPerlのスタイルガイドがなかったんだけど,モダンなPerlスタイルガイドがあったら教えて欲しいです:-)。 PythonにはPEP8というコーディングスタイルガイドがあってよく読まれることは
■ Perl基礎文法最速マスターをだいたいそのまま、Rubyに置き換えてみました。 他の言語をある程度知っている人はこれを読めばRubyの基礎をマスターしてRubyを書くことができるようになる…かも知れません。無保証です。 参考: オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (1.9.2) オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (1.8.7) ■ 1. 基礎 インタラクティブRuby (irb) irbを使うと、Rubyのプログラムを簡単に練習することができます。 /Users/yhara $ irb irb(main):001:0> puts "hello" hello => nil irb(main):002:0> 1 + 1 => 2 以下の説明は、irbを起動して、自分で試しながら読むと習得が早いと思います。 表示 (print,
未来のプログラマのためのチュートリアル 目次 00. はじめに 01. 数(number) 02. 文字列(string) 03. 変数と代入 04. 数と文字列の変換 05. メソッド(method) 06. 制御構造 07. 配列とイテレータ 08. メソッドの作り方 09. クラス 10. ブロックと手続きオブジェクト 11. このチュートリアルを超えて このチュートリアルについて...
Mac OS X Tiger から搭載されたAutomatorは、ShellスクリプトやPerlをドロップレットにできます。UNIXコマンドやらPerlというものを知らないデザイナなどにバッチスクリプトを作ってあげるときなんかに重宝しています。 ライブラリ:「Automator」、アクション:「シェルスクリプトを実行」を加えて、Perlの場合はシェルを「/usr/bin/perl」、シェルスクリプトの場合は「/bin/bash」を選びます。また、「入力の引き渡し方法」は「引数として」にしておきましょう。作成したAutomatorは、「別名保存」で「アプリケーション」として保存します。 例えば、 HTMLのみを、階層構造を保ったまま抜き出す(/bin/bash) if [ -d "$1" ]; then cd $1; find . -name "*.html" -print | cpio -
文:Jack Wallen(Special to TechRepublic) 翻訳校正:村上雅章・野崎裕子 2009-03-31 08:00 Linux開発環境の利点を活かすには、適切なツールが必要となる。本記事では、優れたツールを選び、その概要や機能を紹介する。 Linuxは素晴らしい開発環境である。しかし、適切な開発ツールが無ければ、そのような開発環境も宝の持ち腐れとなる。幸いなことに、Linux上で稼働するオープンソース開発ツールは数多くあるのだ。あなたがLinuxに不慣れである場合、どういったツールが利用可能であるのか判らないかもしれない。だが、心配は無用だ。以下に、あなたの開発をぐっとレベルアップさせる素晴らしいツールを10個紹介するので参考にしてもらいたい。 #1:Bluefish 「Bluefish」は、Web開発を行うための統合開発環境(IDE)として最も人気の高いものの1
はじめに「はじめての正規表現」がホッテントリ入りしていますが、 導入としては、何に使うのかがわかりやすくて良いのではないかと思います。 あれを見て、基本機能をまとめてみたくなったので、正規表現の基本的な機能について書いてみます。 (正規表現が初めてという人は「はじめての正規表現」を先に見たほうがいいと思います。) 例では「検索」か「置換」をするものとして話を進めていきます。 (「はじめての正規表現」が実例を中心にしたのに対して、こちらは機能を中心に書きます) 正規表現は、プログラミング言語やその他のツールなど、それぞれで微妙な違い(方言)があるので、その点には注意が必要です。 (表記法が違ったり、ここに紹介する機能がサポートされていなかったり、逆に紹介していない機能をサポートしていたりする場合があります) メタ文字とリテラル文字正規表現には、メタ文字とリテラル文字というものがあります。 メ
このチュートリアルは、Chris Pineさんの Learn to Programの全訳です。 プログラミングの初心者を対象にしたチュートリアルで、つまずきやすいところを 丁寧に解説し、随所に施された細かい工夫により、非常にわかりやすい内容になっています。 言語にはRubyを選択し、数字と文字、メソッドとクラスなど、 本当に基本的なところを一通り追いかけており、WebプログラミングやGUIなどは 含まれていません。「プログラミングとは何か」ということを知る最初の機会には、 良いテキストだと思います。 原文のチュートリアルは、CGI呼び出しにより、目次も入れて13ページを出力する ひとつの大きなRubyプログラムから出来ており、例題のプログラムはリロードする ごとに、その場でサーバにより実行されるという大きな特徴を持っています。 翻訳の際は、この特長を生かしたままできるだけ原文に忠実になるよ
未来のプログラマのためのチュートリアル 目次 00. はじめに 01. 数(number) 02. 文字列(string) 03. 変数と代入 04. 数と文字列の変換 05. メソッド(method) 06. 制御構造 07. 配列とイテレータ 08. メソッドの作り方 09. クラス 10. ブロックと手続きオブジェクト 11. このチュートリアルを超えて このチュートリアルについて...
Monaco のリンク先を、フォントファイルから http://www.gringod.com/2006/11/01/new-version-of-monaco-font/ に変えられたようですが… リンク先に “I’m not sure how the new version differs but I’m told its from a new Mac Book Pro.” と書かれているとおり、そこで配布されているフォントは Mac から取り出したものです。 フォントファイルはプログラムとみすことができ、その場合これは著作権による保護の対象となります。また、Mac から取りだしたフォントファイルを配布するという行為は、Mac OS X のソフトウェア使用許諾契約に違反しています。 というわけで、Monaco の配布記事にリンクするのはいろいろとマズイんではないかと思うわけですが、いか
startmac 生まれてはじめて、プログラミングなるものしてみんとて。 いやー、Webディレクターをしていると、ちょっとでいいから自分でプログラミングができるといいなと思いはじめるんですよねー。 でもあまりにも敷居が高くて、なかなか手を出せず、そしてどんどん月日は流れていくばかり。 で、このたびStart Macに当選してMacBookをもらったとき、これを機に、 「今度こそ、絶対に、何が何でもプログラミングを学ぼう」 と思ったんですよね。ほら、MacってベースがUNIXだから、なんとなくプログラミングとかもやりやすそうな気もするし。 なので、今回はちょっと気合を入れて、先生を見つけて、時間をとって、とうとうやってしまいました。 プログラミング童貞を捧げる相手は、「Ruby on Rails」。とても簡単にプログラミングができると話題のフレームワークです。 Rubyというプログラミング言
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く