Skip to content

Instantly share code, notes, and snippets.

View gerasumit's full-sized avatar

Sumit Gera gerasumit

View GitHub Profile
@gerasumit
gerasumit / xauth-twitter.rb
Created November 19, 2015 10:35 — forked from maraigue/xauth-twitter.rb
Requesting OAuth access token without browser, only with Twitter user name and password (so-called xAuth), by Ruby
#!/usr/bin/env ruby
# *** Important notification ***
# As xAuth is officially supported, we have to register
# your application needing xAuth, via e-mail.
# If not registered, 401 error will be returned.
# http://apiwiki.twitter.com/Twitter-REST-API-Method:-oauth-access_token-for-xAuth
#
# (*** 重要な告知 ***
# xAuthが公式にサポートされたのに伴い、xAuthの必要なアプリケーションは
.navbar li {
display: inline;
}
.navbar a {
color: #5a5a5a;
font-size: 1em;
font-weight: bold;
padding-top: 14px;
padding-bottom: 14px;
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>