Skip to content

Instantly share code, notes, and snippets.

View ozw-sei's full-sized avatar

Seijiro Ozawa ozw-sei

View GitHub Profile
function init() {
window.Store = {}
window.Store.pos = [
[1,1,1,1],
[1,1,1,1],
[1,1,1,1],
]
window.Store.rot = [
[1,1,1,1],
public interface IOption<T>:IEquatable<IOption<T>>, IEquatable<T>
{
bool IsDefined
{
get;
}
// Something Method
// ...
}
using UnityEngine;
using UnityEditor;
using NUnit.Framework;
public class JsonUtilTest {
[System.Serializable]
public class user_self{
public user data;
}
addSbtPlugin("org.flywaydb" % "flyway-sbt" % "4.0.3")
resolvers += "Flyway" at "http://flywaydb.org/repo"
@ozw-sei
ozw-sei / cloudSettings
Last active November 18, 2021 08:32
うまく行った project/flyway.sbt のサンプル
{"lastUpload":"2021-11-18T08:32:51.467Z","extensionVersion":"v3.4.3"}
[info] Resolving org.scala-sbt.ivy#ivy;2.3.0-sbt-c5d1b95fdcc1e1007740ffbecf4eb07abc51ec93[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.flywaydb#flyway-sbt;4.0.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] org.flywaydb:flyway-sbt:4.0.1 (scalaVersion=2.10, sbtVersion=0.13)
[warn]
using System;
namespace LSD
{
public interface IEither<T1, T2>
{
U Use<U>(Func<T1, U> ofLeft, Func<T2, U> ofRight);
bool IsRight{
get;
}
#pragma strict
public var speed : float = 3; public var jumpPower : float = 6;
private var direction : Vector3 = Vector3.zero;
private var playerController : CharacterController;
private var animator : Animator;
function Start() {
playerController = GetComponent( CharacterController );
animator = GetComponentInChildren( Animator );
//Phantomjsを使ってPDFをエクスポートしてみた
var phantom = require('phantom')
phantom.create(function(ph){
ph.createPage(function(page) {
page.open("http://www.google.com", function(status) {
page.render('google.pdf', function(){
console.log('Page Rendered');
/**
* DB Connection
* @type {{host, user, password, database}}
*/
var params = (function(){
if(sails.config.environment == 'production'){
return {
host: sails.config.connections.prodMysqlServer.host,
user: sails.config.connections.prodMysqlServer.user,
password: sails.config.connections.prodMysqlServer.password,