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
"N03_003" LIKE "%区%" |
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
%div.container-fluid | |
%div.row | |
%div.form-group | |
%div.col-sm-10 | |
%select.form-control.stations{"v-model" => "selected", "v-on" => "change: onChange(this)"} | |
%option{"v-repeat" => "stations", "value" => "{{name}}"} {{title}} | |
%div.row.facilities | |
%div.inside-gate | |
%h3 改札内:{{insideCount}} | |
%div.list-group |
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
FROM centos:7 | |
MAINTAINER hokuma | |
RUN yum install -y http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm | |
RUN yum install -y http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm | |
RUN yum makecache | |
RUN yum install -y mysql-community-server | |
RUN yum install -y mysql-community-mroonga | |
RUN mysql_install_db --datadir=/var/lib/mysql --user=mysql |
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
FROM centos:6 | |
MAINTAINER hokuma | |
RUN yum -y update && yum install -y httpd | |
ENV USERNAME admin | |
ENV PASSWORD qwerty | |
COPY server.conf auth.conf /etc/httpd/conf.d/ |
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 fs = require('fs'); | |
var Aws = require('aws-sdk'); | |
var deviceId = 'YOUR_DEVICE_ID'; | |
var sensorPath = '/sys/bus/w1/devices/' + deviceId + '/w1_slave'; | |
var data = fs.readFileSync(sensorPath, {'encoding': 'ascii'}); | |
var temp_line = data.split("\n")[1]; | |
var matches = temp_line.match(/t=(\d+)/); | |
var temp; |
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
#!/bin/sh | |
scss_files=`find app/assets/stylesheets -name "*.scss"` | |
for filepath in ${scss_files} | |
do | |
sed -i .orig s/$'\t'/' '/g ${filepath} | |
rm ${filepath}.orig | |
done |
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
class ExamplePage extends Page { | |
static content = { | |
userId { $("form").find("input", name: "userId") } | |
userIdErr { $("span#userIdErr").text() } | |
} | |
} |
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
// ブラウザ環境っぽいものを作る | |
import jsdom from 'jsdom'; | |
import jQuery from 'jquery'; | |
import { XMLHttpRequest } from 'w3c-xmlhttprequest'; | |
global.XMLHttpRequest = XMLHttpRequest; | |
global.document = jsdom.jsdom('<!doctype html><html><body></body></html>'); | |
global.window = document.parentWindow; | |
global.$ = jQuery(window); |
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
<build> | |
... | |
<plugins> | |
... | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<version>2.2</version> | |
<executions> | |
<execution> | |
<id>make-assembly</id> |
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
add_action( "pre_get_posts", "set_ajax_media_query" ); | |
function set_ajax_media_query( $wp_query ) { | |
global $current_user; | |
if( $wp_query ->query_vars['post_type'] != "attachment" ) { | |
return; | |
} | |
get_currentuserinfo(); |
OlderNewer