Skip to content

Instantly share code, notes, and snippets.

@tango238
tango238 / getimage.groovy
Created May 5, 2012 06:57
Download image files from Chrome's Developer tools "Save All as HAR".
import groovy.json.*
def slurper = new JsonSlurper()
def text = new File('hoge.com.har').text
def root = slurper.parseText(text)
def getImage(address){
def command = 'wget ' + address
def proc = command.execute()
proc.waitFor()
@tango238
tango238 / test.groovy
Created November 18, 2011 07:16
test.groovy
def jarDir = new File('jars')
jarDir.list().each { fname ->
def zipFile = new java.util.zip.ZipFile(new File('jars/' + fname))
zipFile.entries().each {
println zipFile.getInputStream(it).text
}
}
@tango238
tango238 / ClassReader.java
Created November 11, 2011 00:21
ClassReader
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class ClassReader {
public static void main(String[] args) {
if(args.length < 1){
@tango238
tango238 / mediaquery.html
Created September 8, 2011 08:21
[CSS3] Media Query
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Media Query</title>
<style>
@media screen and (max-width: 450px) {
.scr480 {
background: #ff99cc;
}
@tango238
tango238 / webfont.html
Created September 8, 2011 06:56
[CSS3] Web Font
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Web Font</title>
<style>
@font-face {
font-family: 'Rochester';
font-style: normal;
font-weight: normal;
@tango238
tango238 / cssanimation.html
Created September 6, 2011 19:04
[CSS3] Animation
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>HTML5 Animation</title>
<style>
body {
font-size: 20px;
}
.obj {
@tango238
tango238 / csstab.html
Created September 6, 2011 18:38
[CSS3] Tab
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>CSS3 Tab</title>
<style>
ul {
border-bottom: 3px solid #cc5d00;
}
li {
@tango238
tango238 / paint.html
Created August 26, 2011 23:55
[HTML5]Paint App
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Paint</title>
</head>
<body>
<header>
<h1>Paint</h1>
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Paint</title>
</head>
<body>
<header>
<h1>Paint</h1>
</header>
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Paint</title>
</head>
<body>
<header>
<h1>Paint</h1>
</header>