Skip to content

Instantly share code, notes, and snippets.

Avatar

ChihiroMazda chihirokaasan

View GitHub Profile
View Example-for-querySelector.markdown
View remove_mark_at_WordPress_category_page
add_filter( 'get_the_archive_title', function ($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
View hello.html
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.13.3.js"></script>
</head>
<body>
<div id="app"></div>
<script src="./build/hello.js"></script>
</body>
</html>
View _base.scss
$base_width: 950px;
$base_font_color: #333333;
$base_font_size: 14px;
$base_font_style: 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'メイリオ', 'Meiryo', '游ゴシック', '游ゴシック体', 'Yu Gothic', YuGothic, 'MS Pゴシック', 'MS P Gothic', Verdana, Arial, Helvetica, sans-serif;
View date.jsx
function dateDisplay(d) {
return d.getFullYear();
};
var DateYear = React.createClass({
render: function() {
return (
<p>{dateDisplay(new Date())}</p>
);
}
View date.jsx
function dateDisplay(d) {
return d.getFullYear();
};
var DateYear = React.createClass({
render: function() {
return (
<p>{dateDisplay(new Date())}</p>
);
}
View react_test2015_1.html
<script src="../../build/react.js"></script>
<script src="../../build/react-dom.js"></script>
<div id="result_area">
</div>
<script type="text/babel">
var PizzaFooter = React.createClass({
render: function(){
return(
<footer className="navbar navbar-default navbar-static-top">
<div className="container">
View MongoDB Repository
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=0
enabled=1
View 1.ユーザ追加
Successfully added user: {
"user" : "userNameHere",
"roles" : [
{
"role" : "userAdmin",
"db" : "DBNameHere"
}
]
}
View WordPress dir
function per_user_upload_dir( $original ){
// use the original array for initial setup
$modified = $original;
return $modified;
}
add_filter( 'upload_dir', 'per_user_upload_dir');