Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View katsube's full-sized avatar

Makito Katsube katsube

View GitHub Profile
var Hello = {
World: 'HelloWorld!'
};
alert(Hello.World);
@katsube
katsube / amazonsort.js
Last active December 14, 2015 22:58
Amazon(KDP)の謎ソートを解明する。その1。
console.log(
["愛知県",
"岩手県",
"愛媛県",
"大分県",
"石川県",
"茨城県",
"神奈川県",
"岐阜県",
@katsube
katsube / pjax_mytemplate.js
Last active December 26, 2015 07:39
pjax的な処理を書く際の自分用テンプレートその1
//------------------------------------------------------
// ページ読み込み
//------------------------------------------------------
window.onload(function(){
//-------------------------------
//パスを見て初期化処理振り分け
//-------------------------------
switch( location.pathname ){
case '/page1':
page1.init();
<!DOCTYPE html>
<html>
<head>
<title>Hello, WebVR! - A-Frame</title>
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<!-- 立方体/球/円柱 -->
<?php
/**
* MySQLに接続しデータを取得する
*
*/
//-------------------------------------------------
//準備
//-------------------------------------------------
$dsn = 'mysql:dbname=rpgdb;host=localhost'; //接続先
@katsube
katsube / rdb_01.sql
Last active December 10, 2017 12:04
/**
* モバイルプログラミング2
* RDB実習
*/
/*-----------------------------*/
/* 専用のDB作成 */
/*-----------------------------*/
CREATE DATABASE NovelRDB;
USE NovelRDB;
@katsube
katsube / nodejs_express_port80.js
Last active September 27, 2018 05:30
Nodejs + expressで80番ポートを使用する(一般ユーザー)
/**
* Nodejs + expressで80番ポートを使用する(一般ユーザー)
*
* Usage:
* $ sudo node index.js
* listening on *:80
*
* 親プロセスはrootだが、子プロセスが指定したユーザーになるる。
*/
<?php
/*
* [CLI] Create IP address list of request source of Google Apps Script
*
* Copyright (C) 2018 M.Katsube
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
<Directory "/var/www/html">
order deny,allow
deny from all
## JP
allow from 1.0.16.0/20
allow from 1.0.64.0/18
allow from 1.1.64.0/18
allow from 1.5.0.0/16
allow from 1.21.0.0/16
/**
* モバイルプログラミング2
* SQL実習
*
* Date: 2018-12-10
*/
/* ----------------------------------------- */
/* データベース作成 */
/* ----------------------------------------- */