Skip to content

Instantly share code, notes, and snippets.

View shinderuman's full-sized avatar

shinderuman shinderuman

View GitHub Profile
@shinderuman
shinderuman / datastore2tweet.py
Created July 25, 2011 07:05
TwitterFollowAndRemovePython
#!/usr/bin/python
#encoding:utf-8
__author__ = 'lunch@spookies.in'
import gdata.spreadsheet.text_db
from gdata.alt.appengine import run_on_appengine
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext import db
syntax enable
set number
set ruler
colorscheme molokai
"highlight WhitespaceEOL ctermbg=red guibg=red
"match WhitespaceEOL /\s\+$/
"autocmd WinEnter * match WhitespaceEOL /\s\+$/
function! WhiteSpaceEOL()
<html><head></head><body>
<form method="post" action="commit.php">
<input type="text" name="namae" value="" />名前入れてね<br />
<input type="password" name="pasuwa-do" value="" />パスワード入れてね<br />
好きなゲームは?
<label><input type="checkbox" name="ge-mu[]" value="rpg" />RPG</label>
<label><input type="checkbox" name="ge-mu[]" value="action" />ACTION</label><br />
性別
<label><input type="radio" name="seibetu" value="man" />おとこ</label>
<label><input type="radio" name="seibetu" value="woman" />おにゃのこ</label><br />
<?php
var_dump($_REQUEST); // POST,GET関わらず出る
var_dump($_POST); // POSTだけ出る
var_dump($_GET); // GETだけ出る
var_dump($_POST['namae']; // "namae"を変えていろいろ試せゴルァ
// ここにmysqlのDBに流し込むごにょごにょを書くといい
commit 6760a1281ab0d9845d32fcff3dfd801e342ba2fe
Author: shinderuman <shinderuman@gmail.com>
Date: Sat Apr 28 04:16:22 2012 +0900
use file basename by default
diff --git a/gist b/gist
index 324466d..a70f832 100755
--- a/gist
+++ b/gist
syntax enable
set number
set ruler
colorscheme darkblue
function! VimColors()
highlight WhiteSpaceEOL ctermbg=red guibg=red
highlight ZenkakuSpace ctermbg=green guibg=green
highlight Tab ctermbg=blue guibg=blue
endfunction
commit ab5c459807ce3203ed2a4bd5e56a314886780b93
Author: shinderuman <shinderuman@gmail.com>
Date: Fri May 4 06:12:48 2012 +0900
add gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..125e342
--- /dev/null
commit ab5c459807ce3203ed2a4bd5e56a314886780b93
Author: shinderuman <shinderuman@gmail.com>
Date: Fri May 4 06:12:48 2012 +0900
add gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..125e342
--- /dev/null
<?php
$a->b->c = '1';
var_dump(isset($a->b->c));
var_dump(property_exists($a->b, 'c'));
var_dump(isset($d->e->f));
var_dump(property_exists($d->e, 'f'));
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "root")