Skip to content

Instantly share code, notes, and snippets.

View CM-Kajiwara's full-sized avatar

KAJIWARA Yutaka CM-Kajiwara

View GitHub Profile
@CM-Kajiwara
CM-Kajiwara / Application.java
Last active May 18, 2017 10:16
envを引っこ抜いてみる例
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.*;
import org.springframework.util.Assert;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.regex.Pattern;
@CM-Kajiwara
CM-Kajiwara / template.yaml
Last active January 30, 2017 10:14
AWS Batch検証用Cloudformation template (VPC & NAT Gateway & Bastion instance)
---
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS Batch test Template(VPC & NAT Gateway)
Parameters:
SSHFrom:
Description: Lockdown SSH access to the bastion host (default can be accessed from anywhere)
Type: String
MinLength: '9'
MaxLength: '18'
Default: 0.0.0.0/0
@CM-Kajiwara
CM-Kajiwara / index.html
Last active August 29, 2015 14:24
index.htmlはiframe呼び出し側・index.phpはiframe内部の処理を想定
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>Iframe外部を想定</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
<script>
function updateCookie(){
var targetIframe = '[data-js=targetIframe]';
@CM-Kajiwara
CM-Kajiwara / index.html
Created June 11, 2015 06:37
ng-trim Check Sample // source http://jsbin.com/giyeye
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<meta charset="utf-8">
@CM-Kajiwara
CM-Kajiwara / index.html
Created June 11, 2015 06:29
Validation Form Check Sample // source http://jsbin.com/giyeye
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<meta charset="utf-8">
@CM-Kajiwara
CM-Kajiwara / index.html
Created June 11, 2015 06:06
Validation Form Check Sample // source http://jsbin.com/wohaput
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
@CM-Kajiwara
CM-Kajiwara / index.html
Created June 11, 2015 05:51
Validation Form Check Sample // source http://jsbin.com/zoxeju
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular-messages.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/restangular/1.4.0/restangular.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
// Generated on 2014-04-08 using generator-angular 0.8.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function(grunt) {