Skip to content

Instantly share code, notes, and snippets.

View polamjag's full-sized avatar
:shipit:
 

Satoru Abe polamjag

:shipit:
 
View GitHub Profile
@polamjag
polamjag / marker.html
Created June 21, 2011 11:45
An easy tool to make an AR marker.
<!DOCTYPE html>
<!--
marker creator for ARToolKit
interface html; version 2.1.5a
updated on 2011-07-23
developed by @polamjag (http://about.me/polamjag)
under GNU GPL v2.
-----
Generate marker with 4x4 blocks inside.
@polamjag
polamjag / fizzbuzz.html
Created October 10, 2011 11:04
FizzBuzz on js
<html>
<body>
<script type="text/javascript">
for (i=1; i<=100; i++) {
if (i%15 === 0) {
t = "Fizz Buzz";
} else if (i%3 === 0) {
t = "Buzz";
} else if (i%5 === 0) {
t = "Fizz";
@polamjag
polamjag / setting_a
Created October 13, 2011 11:16
ARDeskTop setting file
#the number of cameras (1 or 2)
1
#the number of buttons
0
#the number of cursors
1
#the number of projections
@polamjag
polamjag / hello, coins! (raw)
Last active December 17, 2015 22:39
hello, coins!
eval$s=%w'b="BAhsK3Cc/4MP/v9/zv/PP///P+f/55///5/z8PPPH/zPOfD55wf8B4zx/PMx/gPmef75OP45Azz/fB7/nPmffz6Of874jz8f5wNnwAceGPCAc8AHHwz8+P////////z//////x/////////P/////////////////////8f////////j////8f//8/////j+/v//v38MHBj8wAM+AgYIfsCBn/lzPD/n/M/8eZ6fc/hnfjzPz3nwM3+e5+f88R8/xmNz7vkIGPCBOQc8HDz8wZwDP/////////8B";n=Marshal.load(b.unpack("m")[0]);e="eval$s=%w"<<39<<($s*3);o="";j=-1;0.upto(31*55-1){|i|;o<<((n[i]==1)?e[j+=1]:32);o<<((i%55==54)?10:"");};o[-10,6]=""<<39<<".join";puts(o);#'.join
eva l$s=%w'b="B AhsK3 Cc/4MP/v9/zv/PP///P+f/
55/ //5/z8PPPH/zPO fD55wf8B 4zx/PMx/gPmef75OP45Azz
/fB 7/nPmffz6Of874 jz8f5wNn wAceGPCAc8AHHwz8+P////
/// /z// ////x/ //////// P////// //////////
/// //8 f//// ////j/// /8f//8 /////j+/v
// v3 8MHB j8wAM+Ag YIfsC Bn /lzPD/n/M
/8 eZ6f c/hn fjzPz3nw M3+e5 +f8 8R8/xmNz
7vk IG PCBO Qc8HDz8w ZwDP/ //// ////8B";
n=M ar shal.load( b.unpack ("m") [0] );e="eva
l$s =% w"<<39<<( $s*3);o ="";j =-1 ;0.up
eval$s=%w'b="BAhsK3T/////////n/N/8MH///+c/59//v//5/z//PP//z/n4eefP/j/OQc+//yA/w8Y4/nnY/x/wDzPPx/H/3MGeP75PP6fM//zz8fx/5zxH38+zofnDPjAAwMePOeADz4Y+PH///////+f////////P/7////////5//8//v////////H////4//+f////x39/////3z9+4MDgBx7w8QEDBD/gwM/Pn+P5Oed/fv48z885/PPz43l+zoOfnz/P83P++P/4MR6bc8/HBwz4wJwDHv7g4Q/mHPj5/////////wM=";n=Marshal.load(b.unpack("m")[0]);e="eval$s=%w"<<39<<($s*3);o="";j=-1;0.upto(30*60-1){|i|;o<<((n[i]==1)?e[j+=1]:32);o<<((i%59==58)?10:"");};o[-10,6]=""<<39<<".join";puts(o);#'.join

単位キャプターさくら

取りたいな 取れないな 切ないな この気持ち 起きれないの 起きたいの チャンス逃してばかり

だって だって ノーパ広げ一人で レポをマラソン テストをユニゾンしたい

ほら Take it Take it Wake me Wake me 起こして こっちをむいて Cだと言って

@polamjag
polamjag / symlinker.sh
Created October 1, 2013 05:42
このシェルスクリプトが存在するディレクトリ内の dotfiles のシンボリックリンクをホームディレクトリに貼るスクリプト shell script to create symbolic link of "dotfiles" in which same directory with this script to your home directory. also handles directory whose name starts with dot.
#!/usr/bin/sh
# symlinker.sh
# shell script to create symbolic link of "dotfiles" in which same directory with this script to your home directory. also handles directory whose name starts with dot.
# NOTICE: this script processes only files whose name begin with . (dot)
#
# polamjag <indirectgeeks@gmail.com>
# license: public domain
echo -e "creating symbolic link of dotfiles..."
@polamjag
polamjag / itfethauth.py
Last active December 25, 2015 02:28
宿舎ネットとの戦い
#!/usr/bin/python
import urllib.request
import urllib.parse
import sys
#webcon = http.client.HTTPConnetion("www.google.co.jp")
#accc_sv = "www.cc.tsukuba.ac.jp"
# 一の矢
@polamjag
polamjag / add_tweet_to_pocket.rb
Created October 13, 2013 14:58
ツイートのユニークURLをPocketに追加する #mikutter プラグイン
# -*- coding: utf-8 -*-
Plugin.create :add_tweet_to_pocket do
command(:add_tweet_to_pocket,
name: "ツイートのユニークURLをPocketに追加",
condition: Plugin::Command[:HasMessage],
visible: true,
role: :timeline) do |target|
target.messages.each do |mes|