This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
import os, sys | |
import json | |
import requests | |
from urllib import urlencode | |
Client_ID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com" | |
Client_secret = "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin | |
class SelectReverseCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
for sel in self.view.sel(): | |
if not sel.empty(): | |
cur_str = self.view.substr(sel)[::-1] | |
print cur_str | |
self.view.replace(edit, sel, cur_str) | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-class='header'>たいとる</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Japanese setting | |
export LANG=ja_JP.UTF-8 | |
export SHELL=/bin/zsh | |
umask 022 | |
# Path Setting | |
path=($HOME/local/bin $HOME/local/X11R6/bin \ | |
/bin /usr/local/bin /usr/bin \ | |
/usr/X11R6/bin /usr/local/mysql/bin /sbin \ | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% tree | |
. | |
├── README.md | |
├── api | |
│ ├── api.go | |
│ └── article | |
│ ├── article.go | |
│ ├── controller.go | |
│ └── model.go | |
├── main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function send_mail(body_str) { | |
var subject_text = "GASよりお知らせ"; | |
Logger.log(body_str.replace("\n", "<br />")); | |
var send_list = [ | |
"hoge@hoge.com", | |
"foo@foo.com" | |
]; | |
var html_str = body_str.replace("\n", "<br />"); | |
for (var i=0; i<send_list.length; i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
import os | |
import shutil | |
JPG_FILE_LIST = [] | |
TGT_FILE_TYPE = '*.jpg' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
key_list = range(10) | |
val_list = range(10) | |
val_list.reverse() | |
print "正解: {0:9, 1:8 ...}" |