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 / flyway.md
Last active October 15, 2015 08:11
flyway Install

新規DBを作成

環境に合わせてDBを作成してください

create database xxx_flyway;

設定ファイルを変更

@canujohann
canujohann / yeoman.md
Last active August 29, 2015 14:14
Yeoman

YEOMAN tutorial

インストール

#install grunt
npm install -g grunt-cli

#install yo with npm
npm install -g yo bower
@canujohann
canujohann / study.md
Last active August 29, 2015 14:10
2014-12-03 勉強会

Groovy

Groovy logo

Groovyとは

Java仮想マシン(JVM) 向けの ダイナミック言語 です。

Groovyを使うメリット

// Copyright 2012 Pierre-Yves Ricau
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@canujohann
canujohann / load-languages-files-angular.js
Last active August 29, 2015 14:10
load-languages-files-angular.js
var module = angular.module("myapp", []).config(["$locationProvider", function($locationProvider) {
$locationProvider.html5Mode(true);
}]);
module.controller("mycontroller", function($scope, $http,$location) {
// Authorized languages
var languages = ['en','ja','fr'];
var default_lang = 'ja';
@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 / seo.md
Last active November 11, 2015 04:35
SEO sheet
@canujohann
canujohann / add-border.java
Created October 3, 2014 06:27
add-border-to-bitmap
Paint mShadow = new Paint();
// radius=10, y-offset=2, color=black
mShadow.setShadowLayer(10.0f, 0.0f, 2.0f, 0xFF000000);
// in onDraw(Canvas)
canvas.drawBitmap(bitmap, 0.0f, 0.0f, mShadow);
@canujohann
canujohann / new-relic.md
Last active August 29, 2015 14:07
new relic
sudo su - 
rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
yum install newrelic-sysmond
nrsysmond-config --set license_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
/etc/init.d/newrelic-sysmond start
@canujohann
canujohann / plugin-unity.md
Last active August 29, 2015 14:06
Plugin unity

Assets/Plugins/Androidプラグイン下に[Appmart_Plugin.cs]:

using UnityEngine;
using System.Collections;

public class Appmart_Plugin : MonoBehaviour {
	
	static AndroidJavaObject m_appmart;
	static GameObject m_instance ;