Skip to content

Instantly share code, notes, and snippets.

Kenta SUZUKI suzuken

Block or report user

Report or block suzuken

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View app.js
Ext.require('Ext.container.Viewport');
Ext.application({
name:'HelloExt',
launch: function(){
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
title: 'Hello Ext',
View index.html
<!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>
View index.html
<!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>
View app.jsb3
{
"projectName": "Project Name",
"licenseText": "Copyright(c) 2011 Company Name",
"builds": [
{
"name": "All Classes",
"target": "all-classes.js",
"options": {
"debug": true
},
View index.html
<!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>
View update_vim.sh
#!/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
View gist:2634559
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
WordAverage by Header Word
View mapper.py
#!/usr/bin/env python
import sys
# 標準入力を取得する
for line in sys.stdin:
line=line.strip()
words=line.split()
# 単語の頭文字とその文字数を返す
for word in words:
You can’t perform that action at this time.