Skip to content

Instantly share code, notes, and snippets.

View ayafujiaya's full-sized avatar

ayafuji ayafujiaya

View GitHub Profile
@ayafujiaya
ayafujiaya / gist:b53d9ebaa18e16854c1a
Created September 7, 2014 02:49
imhere_project_update_with_media
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"
@ayafujiaya
ayafujiaya / gist:7942577
Last active December 31, 2015 05:39
ゆうきくんへ
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<style>
/*******************レイアウト********************/
#img_text_wrap {
display:block;
width: 200px; /* 外枠の幅 */
height: auto; /* 外枠の高さ */
@ayafujiaya
ayafujiaya / gist:7120112
Last active December 26, 2015 08:09
Codes which I store json data to fluentd-json-receiver ( https://github.com/HOUSE-API-Project/fluentd-json-receiver ) by POST method.
#! /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"}'}
@ayafujiaya
ayafujiaya / sinatra_app.rb
Created June 22, 2011 17:26
get no method erorr
require 'rubygems'
require 'sinatra'
require 'erubis'
#set :public, File.dirname(__FILE__) + 'static'
class NameInfo
def initialize(name)