Skip to content

Instantly share code, notes, and snippets.

View daiksy's full-sized avatar

KASUYA, Daisuke daiksy

View GitHub Profile
@daiksy
daiksy / mackerel_jvm8_heap.py
Created October 8, 2015 02:46 — forked from tksmd/mackerel_jvm8_heap.py
Mackerel Jolokia JVM8 sample
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import urllib2
import json
import os
import tempfile
import codecs
from optparse import OptionParser
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "centos64_64"
@daiksy
daiksy / gist:4180777
Created December 1, 2012 06:11 — forked from irof/Hoge.java
コレクションをぶんまわしてみる
List list = [
[color:"blue", weight:10],
[color:"red", weight:30],
[color:"blue", weight:50],
]
// Javaで
int weight1 = 0;
for (def e : list) {
if ("blue".equals(e.color))