java,mavenで生servlet
$ cd /Users/hidenorimaehara/sandbox
$ mvn_init -a raw_servlet -t web
$ cd raw_servlet
$ cd $(bundle show activerecord) |
alias ctags="`brew --prefix`/bin/ctags" |
import UIKit | |
let code: String = "0001" | |
let num = code.toInt()! + 100 | |
println(num) | |
// --- | |
let user_datas = [ |
#!/bin/bash | |
function exit_with_error() { | |
echo "[ERROR]" | |
exit 1 | |
} | |
# | |
# parse option | |
# |
====== eclipse設定 ======
==== ホットデプロイの設定 ====
==== logの設定 ====
#!/usr/local/bin/php | |
<?php | |
$user_id = $argv[1]; | |
if ($user_id) { | |
$url = 'https://twitter.com/statuses/user_timeline.json?id=' . $user_id; | |
$tweet = file_get_contents($url); | |
$tweet = json_decode($tweet); | |
foreach($tweet as $v) { | |
echo $v->text . "\n"; |
#!/usr/local/bin/php | |
<?php | |
$url = 'http://rss.dailynews.yahoo.co.jp/fc/rss.xml'; | |
$rss = simplexml_load_file($url); | |
foreach ($rss->channel->item as $v) { | |
echo $v->title . "\n"; | |
} |
<html> | |
<div id="hoge"></div> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
var user_id = 'zuck'; //facebook id | |
var url = 'https://graph.facebook.com/' + user_id + '?callback=?'; | |
var additional_html; | |
$.getJSON(url, function (res) { | |
for(var i in res) { | |
additional_html += i + ':' + res[i] + '<br>'; |
<html lang="ja"> | |
<head> | |
<script src="http://connect.facebook.net/ja_JP/all.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="start_section"></div> | |
<div id="friend_section"></div> | |
<div id="fb-root"></div> | |
<script type="text/javascript"> |