Skip to content

Instantly share code, notes, and snippets.

View canujohann's full-sized avatar

johann canu canujohann

  • Axa Life Insurance
  • Tokyo
View GitHub Profile
@canujohann
canujohann / AnimationImageView.java
Created October 27, 2014 03:17
Android : animate an ImageView with multiple bitmaps
package com.example.views;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
@canujohann
canujohann / observable-webview.md
Created January 27, 2016 02:25
observable-webview
@canujohann
canujohann / apache-tomcat.md
Last active November 26, 2019 13:00
Tomcat+Apacheの連動

TOMCAT-APACHEの連動

apacheとtomcatを連動させるにはモジュール(connector)を利用します。

alt text

いくつかのモジュールが存在しますが、基本的に一番使われているものは

  1. mod_ajp
  2. mod_jk
@canujohann
canujohann / tomcat-log.md
Created April 16, 2015 09:12
tomcatのログ設定

アクセスログ

server.xml

<Context path="/sampleAP" docBase="/home/sample/webapp">
  <Valve className="org.apache.catalina.valves.AccessLogValve" 
         directory="/home/sample/log"
         prefix="access-"
         fileDateFormat="yyyy-MM-dd"
@canujohann
canujohann / memo.md
Last active October 28, 2016 02:08
MongoDB

#How you get Sail.js running on Openshift#

This instruction is tested with:

  • Sails.js v0.9.16
  • Node.js 0.10 on Openshift ( 05 May 2014)

###1) package.json

If you use the package.json build by sails new Projectname than you have to add a few fields for openshift – so the server can start you app automatically. Sails uses Grunt to build minify css/js and so on. Openshift dont have grunt installed so you have to add this also.

@canujohann
canujohann / swift-memo.md
Last active February 23, 2016 01:00
swift メモ
Functions definition
func someFunction(a: Int) { /* ... */ }
Tuples definition
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
.animated {
/*CSS transitions*/
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS transforms*/
@canujohann
canujohann / seo.md
Last active November 11, 2015 04:35
SEO sheet
@canujohann
canujohann / rake.md
Last active October 15, 2015 08:24
About rake

Simple rake file

namespace :morning do

  task :default => 'morning:turn_off_alarm'

  desc "Turn off alarm"
 task :turn_off_alarm do