同僚のディレクターに聞かれたので共有用のメモ。
厳密に言うとちょっと違う部分もあるけど、まぁ なんとなく雰囲気つかむためのもの
世界で最も利用されている、無償で利用できるデータベースサーバ。
export default const cloneObject = function(obj){ | |
var Clone = {}; | |
for(var i in obj){ | |
console.dir(typeof obj[i]); | |
if( obj[i] instanceof Array){ | |
Clone[i] = obj[i].map( o => {return cloneObject(o)}) | |
} | |
else if(typeof obj[i] == "object"){ | |
Clone[i] = cloneObject(obj[i]); |
var Dump = React.createClass({ | |
render: function() { | |
return ( | |
<pre>{JSON.stringify(this.props.data, 0, 2)}</pre> | |
) | |
} | |
}); | |
export default StateDump; |
class Child extends React.Component { | |
// 子の関数 | |
onChildChange(){ | |
this.props.onParentChange() | |
} | |
} | |
class Parent extends React.Component { | |
//子に渡してる親の関数 |
package models | |
import java.sql.Connection | |
import anorm._ | |
import anorm.SqlParser._ | |
import play.api.Play.current | |
import play.api.db.DB | |
/** 性別を表すクラス(本来は別ファイルにしたほうがいいかも) */ |
import math._ | |
1L // Long型の 1 | |
1:Long // Long型の 1 | |
127:Byte // Byte型の 127 | |
32767:Short // Short型の 32767 | |
(1+2).toLong // Long型への変換 | |
(2+3) toLong // Long型への変換 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
int length = 20; // element count | |
float[] x = new float[length]; //element x | |
float[] y = new float[length]; //element y | |
float[] ang = new float[length]; | |
float[] rot = new float[length]; | |
float[] c = new float[length]; | |
float[] radius = new float[length]; | |
float cx, cy; //center x, y | |
float power = 0; |