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
| //次のようなファイル構成にする。 | |
| prc_game | |
| |---img* | |
| |---scripts* | |
| | |---main.js* | |
| |---index.html* | |
| |---enchant.js | |
| //*は自分で作る。 |
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
| package cl1; | |
| import cl2; | |
| //こっちは報告用にちょっと直しただけ。デバッグさえしてない。 | |
| public class class1 implements OBJInterface{ | |
| public static void main(String[] args) { | |
| ObjectManager.addScript(new MainCode()); | |
| } | |
| public static void start(){ |
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
| package cla; | |
| //Import 省略 | |
| public class Class_A{ | |
| public void Start(){ | |
| System.out.printIn("Success!!"); | |
| } | |
| } |
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
| use OmniAuth::Builder do | |
| provider :twitter, 'consumerkey', 'consumersecret' | |
| end | |
| post '/auth/:provider/callback' do | |
| @auth = request.env["omniauth.auth"] | |
| erb :index | |
| end |
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
| use OmniAuth::Builder do | |
| provider :open_id, :name => 'admin', | |
| :identifier => 'https://google.com/accounts/o8/site-xrds?hd=yourdomain.com', | |
| :store => OpenID::Store::Filesystem.new('/tmp') | |
| end |
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
| gem 'rake' | |
| gem 'sinatra' | |
| gem 'omniauth-google-oauth2' | |
| gem 'omniauth' | |
| #本当に必要なのはこれだけ?みたいだけど、SQLiteも使うので... | |
| gem "sqlite3" | |
| gem 'sinatra-activerecord' |
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 'bundler' | |
| require 'sinatra' | |
| require 'omniauth' | |
| require 'omniauth-google-oauth2' | |
| require './app.rb' | |
| use Rack::Session::Cookie, secret: ENV['RACK_COOKIE_SECRET'] | |
| use OmniAuth::Builder do |
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
| { | |
| "provider" => "google_oauth2", | |
| "uid" => "100000000000000000000", | |
| "info" => { | |
| "name" => "John Smith", | |
| "email" => "john@example.com", | |
| "first_name" => "John", | |
| "last_name" => "Smith", | |
| "image" => "https://lh4.googleusercontent.com/photo.jpg", | |
| "urls" => { |
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 'bundler' | |
| require 'bundler/setup' | |
| Bundler.require | |
| require 'sinatra' | |
| require 'omniauth' | |
| require 'omniauth-google-oauth2' | |
| #動きは推測だけど。。。 |
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
| $ -> | |
| $(".datetimepicker").datetimepicker() |
OlderNewer