This file contains hidden or 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
| require 'twitter' | |
| require 'oauth' | |
| OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
| # Consumer key, Secretの設定 | |
| CONSUMER_KEY = "UloNCeJPWkQJeuYFVpwxTYUpZ" | |
| CONSUMER_SECRET = "IcfPrDQNCrgRwUXC0ouGdSTW6xdGNELEJaNeVYAlslUhiLvkb7" | |
| # Access Token Key, Secretの設定 | |
| ACCESS_TOKEN_KEY = "2793009290-iUkAwnOAqrDKodplRQxDziaYqlTth78AVEqHkuT" |
This file contains hidden or 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"> | |
| <style> | |
| /*******************レイアウト********************/ | |
| #img_text_wrap { | |
| display:block; | |
| width: 200px; /* 外枠の幅 */ | |
| height: auto; /* 外枠の高さ */ |
This file contains hidden or 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/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import requests | |
| import json | |
| from requests.auth import HTTPBasicAuth | |
| url = 'http://133.242.144.202/post' | |
| payload = {'tag':'shibuhouse.testpost', 'data':'{"moge":"hoge"}'} |
This file contains hidden or 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
| require 'rubygems' | |
| require 'sinatra' | |
| require 'erubis' | |
| #set :public, File.dirname(__FILE__) + 'static' | |
| class NameInfo | |
| def initialize(name) |