Skip to content

Instantly share code, notes, and snippets.

View suzuken's full-sized avatar

Kenta SUZUKI suzuken

View GitHub Profile
test
Ext.require('Ext.container.Viewport');
Ext.application({
name:'HelloExt',
launch: function(){
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
title: 'Hello Ext',
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>hello ext</title>
<link rel="stylesheet" href="../extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="../extjs/ext.js"></script>
<script type="text/javascript" src="app-all.js"></script>
</head>
<body>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>hello ext</title>
<link rel="stylesheet" href="../extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="../extjs/ext-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
{
"projectName": "Project Name",
"licenseText": "Copyright(c) 2011 Company Name",
"builds": [
{
"name": "All Classes",
"target": "all-classes.js",
"options": {
"debug": true
},
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>hello ext</title>
<link rel="stylesheet" href="../extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="../extjs/ext.js"></script>
<script type="text/javascript" src="app-all.js"></script>
</head>
<body>
#!/bin/sh
# please located in vim source directory
hg pull
hg update
cd src
./configure --with-features=huge --enable-multibyte --disable-selinux
make
sudo make install
@suzuken
suzuken / gist:2634559
Created May 8, 2012 12:26
WordAverage
package average;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.FloatWritable;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.FileInputFormat;
import org.apache.hadoop.mapred.FileOutputFormat;
import org.apache.hadoop.mapred.JobClient;
@suzuken
suzuken / mapper.py
Created May 8, 2012 13:36
WordAverage by Header Word
#!/usr/bin/env python
import sys
# 標準入力を取得する
for line in sys.stdin:
line=line.strip()
words=line.split()
# 単語の頭文字とその文字数を返す
for word in words: