Skip to content

Instantly share code, notes, and snippets.

@akira1908jp
akira1908jp / gist:5114034
Created March 8, 2013 03:34
symfony 1.4 use sessionstorage memcached
symfony memcachedを使用したセッションストレージ設定
[project]/apps/[appName]/config/factories.yml
storage:
class: sfCacheSessionStorage
param:
@akira1908jp
akira1908jp / web_service.ddl
Last active December 17, 2015 04:09
パスワード管理テーブル
create table web_service (
service_url varchar(255),
singin_id varchar(255),
password varchar(125),
primary key(service_url)
)
;
@akira1908jp
akira1908jp / datepicker_option.js
Created June 26, 2013 09:09
min_year, min_month, min_day,max_year, max_month, max_dayは与える引数
var pickerOption = (function(){
var _format = 'yy-mm-dd'
,_min = (function () {
return getDate(min_year, min_month, min_day);
})(),
_max = (function () {
return getDate(max_year, max_month, max_day);
})();
function getDate(year, month, day) {
@akira1908jp
akira1908jp / delegate_sample.html
Created September 28, 2013 06:32
jqueryのdelegateサンプル
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>delegate demo</title>
<style>
p {
background: yellow;
font-weight: bold;
cursor: pointer;
@akira1908jp
akira1908jp / gist:8429023
Created January 15, 2014 01:08
jquery datepicker snippet
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js"></script>
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/ui-lightness/jquery-ui.css" rel="stylesheet" />
@akira1908jp
akira1908jp / adddate.js
Created March 5, 2014 09:03
add hours and add minutes chain function
Date.prototype.addHours= function(h){
this.setHours(this.getHours()+h);
return this;
}
Date.prototype.addMinitues= function(m){
this.setHours(this.getMinitues()+m);
return this;
}

php道場オンライン#1

試験テスト https://appear.in/php-dojo Bluetoothヘッドフォンノイズがのる

弟子のレベルの見極めこと

php 5.4以上 Builtinserver

@akira1908jp
akira1908jp / Dockerfile
Last active August 29, 2015 14:10
docker on App::revealup
FROM debian
MAINTAINER akira1908jp <akira1908jp@gmail.com>
RUN apt-get upgrade -y
RUN apt-get update -y
RUN apt-get install curl git -y
RUN apt-get clean
ENTRYPOINT curl -L http://is.gd/plenvsetup | bash
ENTRYPOINT . ~/.bash_profile
@akira1908jp
akira1908jp / 20141206.md
Last active August 29, 2015 14:10
hachioji.pm #45

Hachioji.pm #45


Who?

  • Name:okada akira
  • TwitterId:akira1908jp
  • Proggraming:Java,PHP
@akira1908jp
akira1908jp / bemch.md
Created January 14, 2015 13:29
raspberry pi benchmark

pi@raspberrypi ~ $ bonnie++ -d ~/ -n 256:1024:1024:16 Writing a byte at a time...done Writing intelligently...done Rewriting...done Reading a byte at a time...done Reading intelligently...done start 'em...done...done...done...done...done... Create files in sequential order...done. Stat files in sequential order...done.