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
# -*- coding: utf-8 -*- | |
import webapp2 | |
import os | |
import yaml | |
from apiclient.discovery import build | |
from oauth2client.appengine import OAuth2Decorator | |
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
# -*- encoding: utf-8 -*- | |
# RubyでFromTo表現のテキストファイルを、カウントアップ表現に変換する | |
# 使い方 | |
# convert.rb 変換前のファイルパス > 変換後のファイルパス | |
export_count = 0; | |
while line = gets | |
line.lstrip! | |
if line =~ /^([a-z]|[A-Z])?[0-9]{1,4}.([a-z]|[A-Z])?[0-9]{1,4}/ |
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
using System;class p{static void Main(string[] a){var c=a[0].Length;var k="千百十 ".Substring(4-c);Func<int,string> f=(i)=>{return "〇一二三四五六七八九".Substring(int.Parse(a[0].Substring(i,1)),1);};for(var i=0;i<c;i++){Console.Write((f(i)=="〇"?"":f(i)=="一"&&i!=c-1?k.Substring(i,1):f(i)+k.Substring(i,1)).Trim());}}} | |
// 以下は開いたもの | |
//using System; | |
//class p | |
//{ | |
// static void Main(string[] a) | |
// { | |
// var c = a[0].Length; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
// Add | |
using System.Windows.Forms; | |
using ExcelDna.Integration; | |
using SKYPE4COMLib; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
// Add | |
using System.Windows.Forms; | |
using ExcelDna.Integration; | |
using SKYPE4COMLib; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$basedir = File.dirname(__FILE__) | |
# knife solo prepareしたか | |
def prepared? | |
File.exists? "#{$basedir}/prepared.txt" | |
end |
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(){ | |
const ROW_COUNT = 11; | |
const COLUMN_COUNT = 4; | |
const SPACE_LEFT_MM = 7.4; | |
const SPACE_LEFT_PT = toPT(SPACE_LEFT_MM) | |
const A4_HEIGHT_MM = 297; |
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
require 'ruboto/widget' | |
ruboto_import_widgets :LinearLayout, :TextView | |
java_import 'android.content.Context' | |
java_import 'android.location.LocationManager' | |
class NmeaActivity | |
def onCreate(bundle) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" > | |
<TextView android:id="@+id/textView1" | |
android:text="Fragment A" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"/> |