2015-01-01ãã1å¹´éã®è¨äºä¸è¦§
以åãpre_get_postså ã§ç¬èªã®å¤ã$wp_queryã«ã»ãããã¦orderbyãè¤æ°ã«ãã¦ãããããå¥ã®orderã«ããæ¹æ³ãæ¸ãã¦ãã¾ããã æè¿æ¤ç´¢ãã¦ããããå®ã¯ãã£ã¨ç°¡åã«å®è£ ã§ãããã¨ãå¤æãã¾ããã orderbyã«é åã§æ¡ä»¶ã¨ä¸¦ã¹æ¹ã渡ããã¨ãã§ããï¼ ä»¥â¦
ä»å¹´ã¯é¢æ±åããå°æ¹å¨ä½ã«ãªãã¾ãããå½ç¶åå ¥ãæ¸ãã®ã§åºå®è²»ç¨ãä¸ãããã¨æããããæã«æ10000åãããããã£ã¦ããæºå¸¯æéãä¸ããããã«SIMããªã¼ã«å¤æ´ãããã¨ã«ãã¾ããã ã·ããã¢ãã¤ã«LTEã«ããã è²ã é度ã®ä½ä¸ã¨ãæ¸ããã¦ããblogãªã©â¦
åå ä»ã®ã¹ãã¬ããã·ã¼ããããã¼ã¿ãåã£ã¦ãã¦è¡¨ç¤ºããã»ã«ã®æå®ã¨ãWHEREã§ã®è¡¨ç¤ºããããã¼ã¿ã®æ¡ä»¶ãä»ããæ¹æ³ãæ¸ãã¾ããããã®æã¯æ¤ç´¢æ¡ä»¶ã=ã¨ã>ã¨ãã§ããããä¾ãã°ä½æãå ¥ãã¦ããã»ã«ããæ°å®¿åºã¨ãããã¼ã¯ã¼ããããã®ã ãåã£ã¦ããâ¦
ä»ã®ã¹ãã¬ããã·ã¼ãã§ä½æãã¦ãããªã¹ãããå¿ è¦ãªã»ã«ã ããåã£ã¦ãã¦ãæ¡ä»¶ã«åããã®ã ãã表示ãããæ¹æ³ã®ã¡ã¢ã IMPORTRANGEã¨QUERYã¨ããé¢æ°ã使ã£ã¦å®ç¾ãããã¨ãã§ãã¾ããã ä»ã®ã¹ãã¬ããã·ã¼ããããã¼ã¿ãåã£ã¦ããé¢æ° IMPORTRANGE IMâ¦
Controlllerã«ä¸è¨ãè¨è¿°ãã loadComponent('Csrf'); } View Templateå 㧠$this->Form->create() ã§ãã©ã¼ã ãä½ãã¨èªåçã«<input type="hidden" name="_csrfToken" value="50cb5cab62f62ccc04b2ced3f789e977204fd900">ã®ãããªã¤ã³ãããã¿ã°ãä½ãããã Cross Site Reqâ¦
ä¾ãã°Controller Articlesãaction editã§/articles/edit/{article_id}ã®æ§ãªURLãä½ãããæ 1. Htmlãã«ãã¼ã使ã Html->link('ç·¨é', [ 'controller' => 'Articles', 'action' => 'add', $article_id ], ['class' => 'btn']); <a href="/articles/add/1" class="btn">ç·¨é</a>ã¨ããaã¿ã°ãåºåãâ¦
Mac OS X Yosemiteç°å¢ã»Homebrewã§composerã³ãã³ããã¤ã³ã¹ãã¼ã«ãã¦ãã¾ãã CakePHPãComposerã§ã¤ã³ã¹ãã¼ã« CakePHPãComposerã§ã¤ã³ã¹ãã¼ã«ã§ããããã ã£ãã®ã§å ¬å¼ããã¥ã¡ã³ããå ã«ã¿ã¼ããã«ãèµ·åãã¦ä¸è¨ã³ãã³ã㧠ã¤ã³ã¹ãã¼ã«ãã¾ããã â¦
Express4ç³»ã§stylusã使ããã¨ããã«ã¦ã§ã¢ã®ãæ¸ããã®ã§ãããã³ã³ãã¤ã«ã§ããªããã£ããã¨ã¯ããã£ãã®ã§ã¡ã¢ stylusã¨nibãå°å ¥ $ npm install --save stylus nib ã³ã³ãã¤ã«ã§ããªãã£ãä¾ // app.js var stylus = require('stylus'), nib = require('â¦
Express4ç³»ã§jadeãã³ãã¬ã¼ãã使ãjadeã§ã¢ããªå ã®javascriptãã¡ã¤ã«ãscriptã¿ã°ã§èªã¿è¾¼ããã¨ããã404ã«ãªã£ã¦ããã£ã¦ãã¾ã£ãã®ã§ã¡ã¢ã ããããã¹ã¿ãã£ãã¯ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ã§ãã ã¨ã©ã¼ã«ãªã£ã¦ããç¶æ // app.js var express = require('â¦
jadeãã³ãã¬ã¼ãå ã§é åããªãã¸ã§ã¯ããè¨è¿°ããæãå¤ãè¦ããããããã¨ãã¦æ¹è¡ããã¨æ¸ãæ¹ã«ãã£ã¦ã¯ã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã¾ãã ã¨ã©ã¼ã«ãªãæ¸ãæ¹ // jade - var list = [ 'one', 'two', 'tree' ] - var obj = { a: 'one', b: 'two', c: 'tree', â¦
$ gulp ã³ãã³ããæã¦ã°ãwebserverãèµ·åãã¦ãgulp.watchãå§ã¾ãããã«ããæ¹æ³ã®ã¡ã¢ gulpã³ãã³ãã¯gulp.task('default')ã§å®ç¾©ãããã®ãå®è¡ãããã®ã§ var gulp = require("gulp"), webserver = require('gulp-webserver'); gulp.task('default', fâ¦
https://dotinstall.com/lessons/basic_expressjs Express 4.xã§ããçµãã£ãã®ã§ãéã£ã¦ãé¨åã¨ããã¾ã¨ãã¦ãããã¨æãã¾ãã note. Express 4.xã§ã¯app.routerã¯å»æ¢ããã¦ããã®ã§ãExpress 3.xã§å¿ é ã ã£ãapp.use(app.router)ã®è¨è¿°ã¯å¿ è¦ç¡ãã apâ¦
ãã¼ãã«ç©çå¦è³ 梶ç°éç« å çåè³ããã§ã¨ããããã¾ãã ãã®å ±éãã¿ã¦ããã¥ã¼ããªããå®å®ã«ã¤ãã¦èå³ãå°ãã§ãæã£ããªãã å¤ç°å çã®ãå®å®ã®ã¯ãã¾ãããèªãã§ã¿ããã¨ãè¶ ãªã¹ã¹ã¡ãã¾ãã å®å®ã®ã¯ãã¾ã (ã¤ã¼ã¹ãæ°æ¸Q)ä½è : å¤ç°å°åºç社â¦
å¼ãç¶ãããããã¤ã³ã¹ãã¼ã«ã®Expresså ¥é ããã£ã¦ãã¾ãã ãµã³ãã«ã¯Express3ç³»ã§ãããExpress4ç³»ã§ãã£ã¬ã³ã¸ãã¦ãã¾ããä»åã¯æå¾ã® #21 ã¨ã©ã¼å¦çããã¦ããã å¤ãæ£ãããªãæãªã©ã¨ã©ã¼ãã¼ã¸ã表示ãããæ¹æ³ã®ã¬ãã¹ã³ã§ãããã¾ããã ãµâ¦
ãããã¤ã³ã¹ãã¼ã«ã®Expresså ¥é ããã£ã¦ãã¦ããµã³ãã«ã¯Express3ç³»ãªã®ã§ããã4ç³»ã§ãã£ã¦ããã®ã§è²ã ãããã¾ããã ããã¦ãã¯ã¢ã¸ã¥ã¼ã«ãå¥éã¤ã³ã¹ãã¼ã«ãã¦ãã§æ¸ãã ã®ã§ããã #12 ã«ã¼ãã£ã³ã°ã確èªãããã§PUTãDELETEã¡ã½ããã«å¯¾å¿ããâ¦
HTML5ã®ãã©ã¼ã ãã¼ããããããå¢ãã¦ä¾¿å©ãªã®ã§ãããå²ãã¨ãã使ããããªãinput[type="date"]ãFirefoxãªã©ã«ã¬ã³ãã¼ã§é¸æã§ããæ©è½ãå®è£ ããã¦ãªããã©ã¦ã¶ãã¾ã ã¾ã å¤ãå°è±¡ãããã¾ããåç´ã«input[type="text"]ã«ãã¦jQueryUIã®datepicker使â¦
ä¾ãã°WordPressã®ãã©ã°ã¤ã³ãªãããä½ã£ã¦ãã¦ãCSSã§å¤æ°ã使ããããªãã¦æãããã¾ãã èªã¿è¾¼ã¿ãPHPãã¡ã¤ã«ã«ããã ã¾ãã¯CSSãã¡ã¤ã«ã®æ¡å¼µåã.phpã«ãã¦ãCSSãèªã¿è¾¼ã¾ãã¦ããé¨åãPHPã®ãã¡ã¤ã«ã«å¤æ´ãã¾ãã HTMLãªããããªæãã <link rel="stylesheet" type="text/css" href="sample.php" /> WordPr</link>â¦
åã«SASS (Compass)ã§ã®æ¹æ³ãæ¸ãã¾ããã å人çã«ã¯Stylusã好ããªã®ã§Stylusã§é¨åçã«è§ä¸¸ã«ããæ¹æ³ãå¿ããã®ã§ã¡ã¢ãã¦ããã¾ãã SASSã§è¨ãæã®Compassã§ããããï¼ Stylusã§ã¯nibã使ãã¨ä¾¿å©ã§ãã nibãã¤ã³ã¹ãã¼ã« nibããªãå ´åã¯npmã§ã¤ã³â¦
Homebrewã§MySQLã5.6.26ã«ã¢ãããã¼ããã¾ããã ãã®å¾ã§mysqlãèµ·åãããã¨ããæä¸è¨ã®ãããªã¨ã©ã¼ãåºãããã«ãªã£ã¦ãã¾ãã¾ããã $ mysql.server start ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.socâ¦
$.when()ã§è¤æ°ã®éåæå¦çãè¡ã£ã¦ã.done()ã§çµæãåãåã£ã¦ãã®å¾ã®å¦çãããã®ã§ãããç¹ã«éåæå¦çãAjaxã®æã$.when()ã®.done()ã§Ajaxã§åå¾ã§ããå¤ãåãåã£ã¦å å·¥ããã®ã§ã¯ãªããAjaxå´ã§åå¾ãããã¼ã¿ãå å·¥ãã¦$.when()ã®done()ã«æ¸¡ãâ¦
以åã«WordPressã®æ稿ãmenu_orderã®é çªã«ä¸¦ã¹ã¦è¡¨ç¤ºãããæ¹æ³ãæ¸ãã¦ãã¾ããã ä¸è¦§è¡¨ç¤ºã»ç®¡çç»é¢ã®ä¸è¦§ãmenu_orderé ã«ããã¾ã§ã¯è¯ãã£ãã®ã§ãããåå¥ãã¼ã¸(single.php)ãªã©ã§åå¾ã®æ稿ã¸ã®ãªã³ã¯(previous_post_link, next_post_link)ã®è¡¨ç¤ºâ¦
javascriptã®ãã¡ã¤ã«ãJSHintã§ãã§ãã¯ãããã©ã対象ãã£ã¬ã¯ããªå ã®libãã£ã¬ã¯ããªå ã®ã©ã¤ãã©ãªãã¡ã¤ã«ã¯JSHintã®å¯¾è±¡ããå¤ãããã¨ããGulp.src()ã®å¯¾è±¡ããé¤å¤ããæ¹æ³ã®ã¡ã¢ã !æå®ããã°é¤å¤ã§ããã 対象ãã¡ã¤ã«ã®åã«!ã追å ããã°OK EX:â¦
Gulpã§javascriptã®ãã¡ã¤ã«ãç£è¦ JSHintã§ã¨ã©ã¼ãªã©ããã§ã㯠åé¡ããªããã°concatã§1ã¤ã«ã¾ã¨ãã¦ãminå browser-syncã§ãªãã¼ã ã¨ããå¦çãè¡ããããã¨æããGoogle Web Starter Kitãåèã«Gulpã®ã¿ã¹ã¯ãä½ã£ã¦ããã®ã§ãããä¸è¨ã®åé¡ã«å½ãâ¦
家æãPCãWindows10ã«ã¢ãããã¼ããã¦ãã°ãã使ã£ã¦ããã®ã§ãããæã¾ã§ã¯åé¡ãªãåä½ãã¦ããã®ã«èµ·åãããå£ç´ãçã£é»ã«ãªã£ã¦ãã¦ã¹ã¯ãªãã¯ãä½ãåå¿ããªããªã£ãããä½ã¨ããã¦ããï¼ã¨é ¼ã¾ãã¾ããã åã¯å¦çæ代ããMacãªã³ãªã¼ã ã£ãã®ã§Wiâ¦
jadeã§ãã³ãã¬ã¼ããä½æãã¦ãã¦ãéçºæç¨ã¨æ¬çªç°å¢ç¨ã¨ã§CSSãjsã®èªã¿è¾¼ã¿ãå¤ãããã¨ãããããªäºãããã¾ãã jadeã§config.jadeã®æ§ãªãã®ãä½æãã¦ããã¦ãdevModeã®ãããªãã©ã°ãåºã«åºãåãããã¨ãåºæ¥ãã®ã§ãããé½åº¦å¤æ°ãå¤ãã¦ã³ã³ãâ¦
ã¹ãã¬ããã·ã¼ãã§æ å ±ã管çãã¦ã¦ãä½æ¥ãå®äºãããã»ã«ã«ãã§ãã¯ãå ¥ããã ãã®æã«ããã¨è¦ã§å¤ãããã«å®äºããè¡ã«ã¾ãã£ã¨èæ¯è²ãä»ãããããããªã¡ã¢ã§ãã ã»ã«ã«èæ¯è²ãä»ããã ããªããæ¡ä»¶å¼ä»ãæ¸å¼è¨å®ã«ã¼ã«ã§ç°¡åã«è¡ããã¨ãã§ãã¾â¦
Gulpã§ã¿ã¹ã¯ãå®è¡ãã¦ãã¦ãåããããªå¦çã ãã©éçºç°å¢ã®æã¨æ¬çªãªãªã¼ã¹ç¨ã§ãªãã·ã§ã³ãå¤æ´ãããã¨ããããã¾ãã éçºç°å¢ç¨ã®ã¿ã¹ã¯ã¨ãæ¬çªç¨ã®ã¿ã¹ã¯ã¨ã§å¥ã«ã¿ã¹ã¯ãæ¸ãã°æ¸ã話ãªã®ã§ãããåããããªè¨è¿°ãå¢ãã¦ãã¾ãã®ãå°ããªãã ããªâ¦
æè¿ã¯gulpã§jadeãã³ã³ãã¤ã«ãã¦ãã¾ãã <ul> <li ng-class="{active: thing.score < 50}"> <a href='[permlink slug="url"]'>LINK</a> <li> <ul> HTMLã®å±æ§ãªã©ã®ä¸ã«WordPressã®ã·ã§ã¼ãã³ã¼ãããAngularJSã®ng-classã¨ããå±æ§ã®ä¸ã«ã³ã¼ãã¼ã·ã§ã³ã使ã£ãå¤ãå ¥ãããã±ã¼ã¹ãªã©ãããã¾ãã æ®éã«æ¸ãã¨ã¨ã¹ã±ã¼ãããã å±æ§ã®ä¸ã®<ã"ãã¨</ul></li></li></ul>â¦
æè¿Glupã«æ £ãããã¨é å¼µã£ã¦ãã¾ãã ä¸éä¸è¬ã§CSSã®ããªããã»ããµã¼ã¯ã¯SCSSãCompassããã¯ãå¤ãã®ã§ããããï¼ åã¯å人çã«Stylusã好ããªã®ã§ãä»æ¥ã¯ä»ã¾ã§Gruntã§ãã£ã¦ããstylus+nibã®ã³ã³ãã¤ã«ãGulpã§ãããã¨ãã¦ããã£ã¦ãã¾ã£ãã®ã¡ã¢ã§â¦
ããã±ã¼ã¸ããã¼ã¸ã£ã¼ã®Bowerã§Bootstrapãã¤ã³ã¹ãã¼ã«ãã¦ãGulpã使ã£ã¦Bootstrapã®CSSã¨javascriptãéçºãã£ã¬ã¯ããªã«æã£ã¦ããæ¹æ³ã®ã¡ã¢ã npmã使ãã®ã§node.jsãåãã£ã¦ã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãã ããã¸ã§ã¯ãã®æºå $ npm init nâ¦