Skip to content

Instantly share code, notes, and snippets.

View d-sea's full-sized avatar

Hiro Fukami d-sea

View GitHub Profile
@d-sea
d-sea / response.json
Last active August 6, 2020 02:13
response from SearchItems of Amazon Product Advertising API v5
{
"SearchResult": {
"Items": [
{
"ASIN": "B01M9IY6RS",
"DetailPageURL": "https://www.amazon.co.jp/dp/B01M9IY6RS?tag=dsea-22&linkCode=osi&th=1&psc=1",
"Images": {
"Primary": {
"Medium": {
"Height": 109,
//
// MyPageTableViewController.swift
// Futsal-Kakekomi
//
// Created by Hiro Fukami on 2019/05/03.
// Copyright © 2019 Hiro Fukami. All rights reserved.
//
import UIKit
import Firebase
@d-sea
d-sea / FormViewController.swift
Created May 27, 2019 00:45
Firebase FIrestore addDocuments GeoPoint data in Fureka
//
// FormViewController.swift
// Futsal-Kakekomi
//
// Created by Hiro Fukami on 2019/05/01.
// Copyright © 2019 Hiro Fukami. All rights reserved.
//
import UIKit
import Eureka
@d-sea
d-sea / ViewController.swift
Created May 27, 2019 00:41
Firebase Firestore getDocuments GeoPoint data
//
// ViewController.swift
// Futsal-Kakekomi
//
// Created by Hiro Fukami on 2019/04/22.
// Copyright © 2019 Hiro Fukami. All rights reserved.
//
import UIKit
import Firebase
require 'date'
require 'mail'
require 'json'
notify_term = 5
File.open("item-list.json", "r+") do |f|
f.each_line { |line|
item = JSON.parse(line)
@d-sea
d-sea / docker-compose.yml
Created October 17, 2017 07:27
Ruby on Rails 開発環境を Docker Compose で作った際の docker-compose.yml
version: '2'
services:
web:
depends_on:
- db
image: ruby:2.3.0
ports:
- "3000:3000"
links:
- db
require 'twitter'
# login
client = Twitter::REST::Client.new do |config|
config.consumer_key = ENV['CONSUMER_KEY']
config.consumer_secret = ENV['CONSUMER_SECRET']
config.access_token = ENV['ACCESS_TOKEN']
config.access_token_secret = ENV['ACCESS_TOKEN_SECRET']
end
require 'twitter'
## login ##
client = Twitter::REST::Client.new do |config|
config.consumer_key = ENV['CONSUMER_KEY']
config.consumer_secret = ENV['CONSUMER_SECRET']
config.access_token = ENV['ACCESS_TOKEN']
config.access_token_secret = ENV['ACCESS_TOKEN_SECRET']
end
### Hiro Fukami's Settings
# aliases
# in this example you can open extensions page by the command ':ext'
# and Chrome's option page by the command ':option'
alias ext TabOpenNew chrome://extensions/
alias option TabOpenNew chrome://settings/browser
alias downloads TabOpenNew chrome://downloads
alias history TabOpenNew chrome://history
@d-sea
d-sea / node.json
Last active January 2, 2016 16:09
[SmartWP](http://www.shakesoul.net/smartwp) - Chef node file
{
"userinfo" : {
"username" : [your username],
"accessley_id" : [your accesskey_id],
"secret-accesskey_id" : [your secret-accesskey_id]
},
"s3fs" : {
"version" : "1.74"
},
"run_list":[