Skip to content

Instantly share code, notes, and snippets.

@turugina
turugina / pom.xml
Created December 7, 2012 00:36
maven/android-maven-plugin for project using library projects
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>your.group.id</groupId>
<artifactId>your-product-id</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>My Application</name>
@turugina
turugina / 20130223-kansaipm-lt.md
Created February 24, 2013 15:38
2013-02-23 Kansai.pm 第15回ミーティングのLTで出してたスライドの原稿です。プレゼン資料への変換はmarkdown2impress.pl

/httpstatus で、HTTPのステータスコードをすばやくしらべる!

2013-02-23 kansai.pm#15 @turugina

一般的なWeb Programmerならば

HTTP Status codeはすべて暗記していると聞きました。

@turugina
turugina / sudoku.pl
Last active December 14, 2015 20:09
ボゴソートを応用した数独解答プログラム。
#!perl
use v5.12;
use Storable qw/dclone/;
use List::Util qw/shuffle/;
use Set::Intersection;
#my @board = qw(
#0 9 0 3 0 0 0 0 0
#5 0 0 0 0 0 7 0 0
@turugina
turugina / sudoku.clj
Last active December 15, 2015 13:08
Clojureによる数独解答プログラム
(def board-sample
[
0 9 0 0 1 0 0 2 0
0 0 0 0 9 0 0 4 0
5 0 0 0 0 0 0 0 6
6 5 0 7 3 2 0 8 4
0 0 9 0 0 0 7 1 3
8 0 0 0 0 1 0 6 0
2 1 4 8 5 3 0 7 9
0 8 5 0 7 6 4 3 2
@turugina
turugina / calcs.pl
Last active August 29, 2015 14:22
緯度経度3点から大体の面積を求める
use strict;
use warnings;
use utf8;
use Math::Trig;
use v5.12;
# lat 緯度 lng 経度