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
#!/mnt/sd/DCIM/122_TREK/usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
require 'net/ftp' | |
require 'net/http' | |
require 'uri' | |
# ------------------------------ | |
# user configuration | |
# ------------------------------ |
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
#!/mnt/sd/DCIM/122_TREK/usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
require 'net/http' | |
require 'uri' | |
require 'socket' | |
# http://hitoriblog.com/?p=12627 | |
# -------- |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>さとうの沢登り</title> | |
<link type="text/css" rel="stylesheet" href="css/rhinoslider-1.05.css" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></s\ | |
cript> | |
<script type="text/javascript" src="js/rhinoslider-1.05.min.js"></script> | |
<script type="text/javascript" src="js/mousewheel.js"></script> |
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
<?php | |
//取得元 | |
$url = "https://graph.facebook.com/207945416007551/photos"; | |
//取得したJSONを配列$objに格納 | |
$obj = json_decode(file_get_contents($url), true); | |
//$objは多元連想配列なのでループを2重に回して$val1配列に入れる | |
foreach($obj as $key => $value) { | |
foreach($value as $key => $val1) { |
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
<?php | |
//require("../debuglib.php"); | |
mb_internal_encoding("UTF-8"); | |
//取得元 | |
$url = "https://graph.facebook.com/207945416007551/photos"; | |
//取得したJSONを配列$objに格納 | |
$obj = json_decode(file_get_contents($url), true); |
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
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf | |
playerfile="/tmp/player.swf" | |
keyfile="/tmp/authkey.png" |
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/lib/python | |
#vim:fileencoding=utf-8 | |
import time | |
import re | |
import twitter | |
class tweetDM: | |
def __init__(self, account, passwd, access_token_key, access_token_secret, id_file, user_file): | |
self.api = twitter.Api(account, passwd, access_token_key, access_token_secret) |
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
/** | |
* cybozu-connect for Node | |
*/ | |
var jsdom = require('jsdom'), | |
XMLHttpRequest = require('XMLHttpRequest').XMLHttpRequest; | |
var document, | |
window, | |
$, | |
CBLabs = {}, |
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
RewriteEngine on | |
RewriteRule ^([0-9,a-z,A-Z,_]+).ics+ index.php?data=$1 |
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
#!/bin/sh | |
# Start ssh-agent and register environment variables permanently in HKCU. | |
# Copyright (C) 2013 YAEGASHI Takeshi <t@keshi.org> | |
# Use a fixed path for the ssh-agent socket endpoint. | |
# SSH_FIXED_SOCK="/tmp/ssh-agent-$(id -u).sock" | |
eval $(ssh-agent -k) |
OlderNewer