Skip to content

Instantly share code, notes, and snippets.

@takkaw
takkaw / gist:1506221
Created December 21, 2011 14:28
earthquake.gem delete plug_in without id
Earthquake.init do
command :delete do
name = twitter.info["name"]
id = twitter.user_timeline(:screen_name => name).first["id_str"]
tweet = twitter.status(id)
async_e { twitter.status_destroy(id) } if confirm("delete '#{tweet["text"]}'")
end
end
@hitode909
hitode909 / MouseJump.java
Created December 24, 2011 08:14
MouseJump
import java.util.Scanner;
import java.awt.AWTException;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.awt.Robot;
public final class MouseJump
{
public static void main(String[] args) throws AWTException
{
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
create_table :users, id: false do |t|
t.uuid :id, primary: true, null: false
# ...
end
@kawasima
kawasima / RestfulActionServlet.java
Created September 25, 2012 08:15
How to enable PUT and DELETE method in sastruts
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionServlet;
@SuppressWarnings("serial")
public class RestfulActionServlet extends ActionServlet {
@monde
monde / .gitignore
Last active February 19, 2020 19:02
Micro Gem to get an OAuth token and secret for the Tumblr.com API allowing an external application to post Tumblr.com blog.
Gemfile.lock
@pistol
pistol / build-tmux.sh
Last active June 10, 2021 09:59
compile tmux from source and statically link with libevent + ncurses
# ncurses
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar xvzf ncurses-5.9.tar.gz
cd ncurses-5.9
./configure --prefix=$HOME/local
make -j8
make install
cd ..
# libevent
@ysaotome
ysaotome / niftycloud-api-tools-installer.sh
Last active December 7, 2019 15:52
ニフティクラウドのCLIツール( http://cloud.nifty.com/api/cli/ )を自動セットアップするスクリプトと使用例
#!/bin/bash
# setup NIFTY Cloud API Tools
(
USER=${USER}
HOME=${HOME}
ARC=$(/bin/uname -m)
## OpenJDKセットアップ
/usr/bin/yum -y install java-1.6.0-openjdk.${ARC}
@tobynet
tobynet / novel-plot-ジャバ2.md
Last active August 29, 2015 14:09
「ジャバ2」「ジャバ3」のプロット

[ジャバ2], [ジャバ3] のプロット

「ジャバ n」シリーズの位置づけ

「[あなたとジャバ]」の外伝的位置づけ。

主人公は、二億円が欲しいがために様々なトラブルに巻き込まれる。