OSX marvericksã§mysqlãèµ·åããªããªã£ãæã®ã¡ã¢
ãã¼ããã·ã§ã³ã¨ææ権ãããããã®ãåå ã£ã½ãã£ãã®ã§ã
sudo chown -R _mysql /usr/local/var/mysql sudo chmod -R o+rwx /usr/local/var/mysql
ããã§åããã
ããã§ãæ²»ããªããªã my.cnfã®è¨å®è¦ç´ããmysqlãã®ãã®ãã¤ã³ã¹ãã¼ã«ãç´ãã
ã·ã¹ãã ãããªã¼ãºãããã¨ã¨ããmysqldã®ããã»ã¹ãæ®ãã£ã±ã§åèµ·åã§ããªãæãããã¿ãããªã®ã§ãããããã¨ãã¯
ps -ef | grep mysql
ãã¦mysqldã®PIDãããã¹ã¦ã
kill -9 PID
ãã¦ããã»ã¹ã殺ããå¾ã«ã
mysqld_safe
ã¨ããã£ã¦mysqldãåèµ·åãããã°ãªãã¨ããªãæãã§ãã
é©å½ã«ãããJavaScriptãããã¡ããã
é©å½ã«JavaScriptæ¸ãã¦ãã¨ãviewã®æä½ã¨ãã¼ã¿ã®æä½ã¨ãåæã«ããã¯ããã¡ãã£ãããã¦ãå¾ããèªãã æã«ãããæ°æã¡æªããªã
DOMãããã¾ã®å¤ã¨ã£ã¦ãããããã¨ã«æ¬¡ã®å¤ã決ãããã¿ãããªæä½ãçµæ§å¤ããããããããªãã®ã§ããããªãã«æèãã¦æ¸ããªãã¨ã¤ããã
ãªãã¹ãMVCã¨ãMVãªãã¨ãã¿ãããªãã¿ã¼ã³ãæèãã¦æ¸ãã¦ããã©ããããè¨èªçã«ãã£ã¦ãã®ããããããããªãã®ã§ããã人ã«ãããã¸ãã®èãæ¹ãããã¦ã»ããã
Gruntã使ã£ãéçºç¨ãã³ãã¬ã¼ããGithubä¸ã«å ¬éãã¾ãã
èªåç¨ã®ãã³ãã¬ã¼ããéç¨ããããããç®çãå ¼ãã¦ãæ®æ®µä½¿ã£ã¦ããWebããã³ãã¨ã³ãã®éçºç¨ãã³ãã¬ã¼ããGitHubä¸ã«å ¬éãã¾ããã
æ§æ
ãã³ãã¬ã¼ãã®æ§æã¯ä»¥ä¸ã®ã¨ããã
- Grunt; ã¿ã¹ã¯ç®¡ç
- Jade; HTMLçæç¨ãã³ãã¬ã¼ãã¨ã³ã¸ã³
- Sass; cssçæ
- Compass; Sassã³ã³ãã¤ã«è£å©
- Bower; JavaScriptã©ã¤ãã©ãªç®¡ç
- Karma; ãã¹ãç¨
- mocha+expect+sinon; ãã¹ã
- node-easymock; APIã¢ãã¯ä½æ
使ãæ¹
gruntã®ããã©ã«ãã¿ã¹ã¯ãå®è¡ããã¨ã³ã³ãã¤ã«ãå®è¡ããã.tmpãã©ã«ãã«å±éã.tmpãã©ã«ãããã¼ã¹ãã£ã¬ã¯ããªã¨ãã¦node serverãlocalhost:9000
ã§ç«ã¡ä¸ããã¾ãã
ã¾ããgrunt build
ãããã¨productionã¢ã¼ãã§ã³ã³ãã¤ã«ãå®è¡ãããdistãã©ã«ãã«å§ç¸®ãªã©ããããã¡ã¤ã«ãåºåããã¾ãã
ãã¹ããå®è¡ããã¨ãã¯ãtestãã£ã¬ã¯ããªã«ãã¹ããã¡ã¤ã«ãé©å½ã«å
¥ããå¾ãgrunt test
ã§å®è¡ãã¾ãã
bowerã§jsã®ã©ã¤ãã©ãªããããã¨ãã¯ãgrunt bi
ãå®è¡ããã¨bower.jsonã®æ
å ±ããã¨ã«srcå
ã«ã©ã¤ãã©ãªãã¡ã¤ã«ãã³ãã¼ããã¾ãã
Readmeãç¨æããã微調æ´ããããã¯ãããããã¦ããäºå®ã
ä½ãæãã¾ãããissueã«æããããgitter.imï¼https://gitter.im/rtshaaaa/frontStartï¼ã使ããã®ã§ãã¡ããªã©ã§ã©ããã
Jadeã§conditional Commentããã¤ã®éã«ããµãã¼ãå¤ã«ãªã£ã¦ãã
Jadeããã°ããã¢ãããã¼ãããã«ä½¿ã£ã¦ããã®ã§æ°ã¥ããªãã£ãã®ã§ããã ã©ãããconditional Commentããã¼ã¸ã§ã³1.1.5ãããµãã¼ã対象å¤ã«ãªã£ã¦ããã¿ããã§ãã
ãã以åã®ãã¼ã¸ã§ã³ã§ã¯
// if lt IE 9 script('hogehoge.js')
ã¨ãã風ã«æ¸ãã¨ãã¡ãã¨ã³ã³ãã¤ã«ããã¦ããã®ã§ããããã以éã®ãã¼ã¸ã§ã³ã§ã¯ããã ã¨æ£ããã³ã³ãã¤ã«ãããã«è¬ã®ã³ã¡ã³ããåãè¾¼ã¾ããã ããã¨ãã風ã«ãªã£ã¦ããã¿ããã§ãã
ã½ã¼ã¹ãè¦ã¦ã¿ãããçã§æ¸ãã¦ããã¨ããæãã§æ¸ãã¦ãã£ãã®ã§ããããããã«æ¯åº¦æ¯åº¦çã§æ¸ãã¦ããã®ã¯ããã©ãã®ã§è¶
ç°¡åãªmixin
ãã¨ããããç¨æãã¦éç¨ãããã¨ã«ã
mixin ltIE9 <!--[if lte IE 9]> block <![endif]--> mixin ltIE8 <!--[if lte IE 8]> block <![endif]-->
ãããé©å½ã«/mixin/_cComment.jade
ã¨ãã§ä¿åãã¦ããã¦ã
include /mixin/_cComment doctype html html(lang='ja') head meta(charset='utf-8') +ltIE9 script(src='/js/lib/html5shiv.js') title hoge body hogehoge
ã¨ãããæãã§ã¤ããã°ã¨ããããã¯ããããªã¼ã
ããã¡ãã£ã¨æ¹åã§ããããªã®ã§æéãããã¨ãã«ã§ãããå°ã調æ´ããããããã¾ããã
ãã¶ãå¤ãIEãªãã§ããµãããã¿ãããªæãã§ãµãã¼ãåã£ããã§ããããã
[2014/02/06] ã³ã³ãã£ã·ã§ãã«ã³ã¡ã³ãã®è¡¨è¨ãã¡ãã£ã¨ééã£ã¦ãã®ã§ä¿®æ£ãã¾ããã
JavaScriptæ¸ãã¦ã人ãRubyã«å ¥éãã ãã®2
ã©ãããå ¥éãããã
å ¥éããã«ããã£ã¦ãã¾ãã¯é°å²æ°ããã£ã¦ããã³ã¼ããæ¸ãã¦ãã£ãã»ãããããªã¨æãã¾ããã
ããã¦æ©ãã ãããåã ããæ°ã«ãªã£ã¦ãããããã¤ã³ã¹ãã¼ã«ã使ã£ã¦ã¿ããã¨ã«ã
ドットインストール - 3分動画でマスターする初心者向けプログラミング学習サイト
ãããã¤ã³ã¹ãã¼ã«ã¯å½å ã§ä¼¸ã³ã¦ãã¦ãããã°ã©ãã³ã°å ¥éè ããã®åå¼·ãµã¤ãã§ãããå½ç£ãªã®ã§è¨èªã®å£ãæ°ã«ããã«ä½¿ããã®ã¯ã¨ã¦ãé åçã§ãã
Rubyã®JavaScriptã¨ã®éã
ã¨ãããããããã¤ã³ã¹ãã¼ã«ã§Rubyå ¥éå ¨32åãããã£ã¨çµãããã¦ã¿ã¦ã®ææ³ã
JavaScriptã¯ãªãã¨ãããããããé©å½ãªè¨èªã ã£ããã ãªãã¨åèªèã
ç ´å£çãã©ãããªã©ã®æåã®æ§è³ªããã¡ãã¨è¨å·ã¨ãã¦è¦ããããã«ã¡ã½ãããå®ç¾©ããã¦ããã®ã¯ã¨ã¦ããããããããªã¨ãã¨ããJSã ã¨ç ´å£çãã©ããã£ã¦ããã¾æèãã¦ãªãã£ãã大ä½éç ´å£çã§æã ä¾å¤çã«ç ´å£çãªã¡ã½ãããç¾ãã¦ããã¨ãããããã§ãããã«ããã¨ããã¯å¤ãã£ãã
JavaScriptã§ãããè¦ãããããthis
å¥ã®æ±ããRubyã®Classã ã¨ã¡ããã¨ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã@hoge
ã¨ããå½¢ã§å¼ã³åºããã®ã§ãããã¯æ¥½ãããJSã¯ãªãthis
ãå¤ããç¶ããã®ããã¤ãããï¼ããããã¯ã©ã¹ã¨ããæ¦å¿µãJSã«ã¯ãªãã®ã ããã©ï¼
ææ³ã®éããªã©
ææ³ã¯ç´°ããéãã¯ããã¤ãããã©ãæè¦çã«ã¯ä¼¼ã¦ããé¨åããããããã¨ãã£ã¿ã®è£å®ã¨ããããã®ã§ç¹ã«æ°ã«ãªããªããã§ãããRubyã¯ã·ã³ãã«ã§ç´æçãªæãã
javascriptã ã¨'
ã¨"
ã¯ãã¾ãåºå¥ããªãããHTMLå´ã§"
ããã使ãããã¨ããçç±ã§'
ãåºæ¬ã¦ãã«ä½¿ã£ã¦ããããã©ãRubyã«ãªãã¨å¤æ°ãã¨ã¹ã±ã¼ããããã©ããã§ãã¡ãã¨ä½¿ãåããã®ã§åºæ¬çã«ã¯"
ã使ã£ã¦ããã¿ãããã§ãããã§'
ãå¤ç¨ããããªã®ã§ãããã ãã¯æ³¨æããã»ããè¯ãããã ã£ãã
ã¨ããããã®ã¨ã£ãããã¨ãã¦ããããã¤ã³ã¹ãã¼ã«ã¯åç»ã§åå¼·ã«ãªãã®ã§ããªãè¯ããªãã¨æãã¾ãããæãåãããªããåå¼·ãããã¨ããã¨ãã©ã¦ã¶ã®ã¿ã§åå¼·ãå®çµããªãã®ã¯ã¡ãã£ã¨ä¸æºç¹ã§ãããããã©ãåºæ¬çã«ã¯é°å²æ°ãã¤ããç¨åº¦ã®å ¥éã¬ãã«ã ã£ãã®ã§ããããããã§ãããã®ããªã
Rubyã®é°å²æ°ã¨ãã¯ãªãã¨ãªãè¦ããæ°ãããã®ã§ãä»å¾ã¯å®éã«ç°¡åãªã¹ã¯ãªãããä½ãã¤ã¤åå¼·ãé²ãã¦ããã¾ãã