Skip to content

Instantly share code, notes, and snippets.

View tmtk75's full-sized avatar

Tomotaka Sakuma tmtk75

View GitHub Profile
@tmtk75
tmtk75 / example.html
Created November 25, 2015 14:10
JUMLY.eval example
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<script src='http://code.jquery.com/jquery-2.1.4.min.js'></script>
<script src='http://coffeescript.org/extras/coffee-script.js'></script>
<script src='http://jumly.tmtk.net/public/jumly.min.js'></script>
</head>
<body>
<pre id='code'>@found "I", -> @message "speak to", "You"</pre>
mkdir -p a0
mkdir -p a1
mkdir -p a2
mkdir -p b0
mkdir -p b1
mkdir -p b2
mkdir -p c0
mkdir -p c1
mkdir -p c2
mkdir -p d0
;(function(global) {
function lib0(a) { return "lib0" + a; }
function lib1(a) { return "lib1" + a; }
function main(params, ctxt, done) {
done({a: lib0(12), b: lib1(23)});
}
variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "aws_region" { default = "ap-northeast-1" }
variable "your_subnet_id" { default = "subnet-9a6da0c3" }
variable "your_vpc_id" { default = "vpc-1c1fc479" }
variable "your_key_name" { default = "foo" }
provider "aws" {
access_key = "${var.aws_access_key}"
package main
import (
"fmt"
"sync"
"time"
)
type Task struct {
id int
package main
import (
"fmt"
"os"
"github.com/tmtk75/cli"
)
func main() {
package main
import (
"fmt"
"os"
"github.com/tmtk75/cli"
)
func main() {
case "refs/tags/v0.1.0" in
refs/heads/production|refs/tags/v[0-9]\.*)
echo "OK"
;;
*)
echo "NG"
;;
esac
#!/bin/bash
#
# consul Manage the consul agent
#
# chkconfig: 2345 95 95
# description: Consul is a tool for service discovery and configuration
# processname: consul
# config: /etc/consul.conf
# pidfile: /var/run/consul.pid
variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "key_name" {}
variable "aws_region" {}
variable "cidr" {
default = "192.168.11.0/24"
}
provider "aws" {
access_key = "${var.aws_access_key}"