Skip to content

Instantly share code, notes, and snippets.

@a2chub
a2chub / python
Created April 15, 2014 08:15
大量のファイルをフォルダーに整理 ref: http://qiita.com/atusi/items/8ecd361faccc4051ded8
#!/usr/bin/env python
#coding:utf-8
import os
import shutil
JPG_FILE_LIST = []
TGT_FILE_TYPE = '*.jpg'
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@a2chub
a2chub / designer.html
Created July 14, 2014 11:06
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
#!/usr/bin/env python
#coding:utf-8
key_list = range(10)
val_list = range(10)
val_list.reverse()
print "正解: {0:9, 1:8 ...}"
#!/usr/bin/env python
#coding:utf-8
org_arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
seikai = """1,2,3
4,5,6
7,8,9
"""
#!/usr/bin/env python
#coding:utf-8
org_arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
seikai = """1,2,3
4,5,6
7,8,9
"""
#!/usr/bin/env python
#coding:utf-8
def basic():
for i in range(100):
if i%2 ==0:
print i
def oneLine(counts):
#!/usr/bin/env python
#coding:utf-8
import random
cnt = 0
tate = 33
yoko = 5
base_list = range(1, tate*yoko+1)
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
@a2chub
a2chub / x
Created November 4, 2008 18:33
// Copy right 2008 Shumpei Shiraishi (shiraishi at ayuta.co.jp)
CmdUtils.CreateCommand({
name: "hotentry",
takes: {"エントリの番号を入力": noun_arb_text},
preview: function(prev, index) {
var $ = jQuery;
var feedUrl = "http://b.hatena.ne.jp/hotentry/diary/rss";
var self = this;
$.get(feedUrl,function(feed) {
var entries = [];