This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Template Name: contact | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*リセットCSS(一部利用)*/ | |
html, body, div, span, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, address, big, img, dl, dt, dd, ol, ul, li, | |
form, label,table, tbody, tfoot, thead, tr, | |
th, td { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
outline: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sendmail | |
qmail | |
PostFix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console/cake Migrations.migration run all -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Haml | |
gem 'haml-rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake assets:precompile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Article extends AppModel { | |
public function published($fields = null) { | |
$params = array( | |
'conditions' => array( | |
$this->name . '.published' => 1 | |
), | |
'fields' => $fields | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
// イベントハンドラ | |
$("#button").on("click", function(){ | |
$.ajax({ | |
url: url, | |
dataType: "json", | |
}).done(function(results){ | |
// 表示 | |
$.each(results, function(result) { | |
$('<li>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$test = array( | |
[ModelName] => array( | |
[fieldname1] => 'value', | |
[fieldname2] => 'value2', | |
) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sayHelloShared = function() { | |
console.log('Hello' + this.name); | |
}; | |
var human = { | |
sayHello: sayHelloShared, | |
name: 'masaru', | |
}; | |
human.sayHello(); |