openpgp4fpr:B0DCD81A7A05D29204FA8F293A3333C917C01F2D
.
I hereby claim:
- I am takouhai on github.
- I am takouhai (https://keybase.io/takouhai) on keybase.
- I have a public key whose fingerprint is E906 8A19 28ED B6ED BA83 F295 573E 97DE 4166 CC3A
To claim this, I am signing this object:
This file contains 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
# initialization file (not found) |
This file contains 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
- var site = {title: 'site name', url: 'http:site.com', image: '/images/thumbnail-site-square.jpg', favicon: '/favicon.ico', description: 'Site Description'} | |
each val, key in site // Open Graph metadata | |
meta( property = 'og:' + key , content = val ) |
This file contains 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
# encoding: utf-8 | |
namespace :post do | |
desc 'Post Tweet' | |
task tweet: :environment do | |
puts 'Post Tweet' | |
twitter = Twitter::REST::Client.new do |config| | |
config.consumer_key = ENV['TWITTER_CONSUMER_KEY'] | |
config.consumer_secret = ENV['TWITTER_CONSUMER_SECRET'] | |
config.access_token = ENV['TWITTER_ACCESS_TOKEN'] | |
config.access_token_secret = ENV['TWITTER_ACCESS_SECRET'] |
This file contains 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
namespace :post do | |
desc 'Post Tweet' | |
task tweet: :environment do | |
puts 'Post Tweet' | |
param = Parameter.where(name: 'twitter').first | |
content = Content.where("name like ? and name like ?", "%\#devHangout%", "%" + param.value.to_s + "%").sort_by{|e| e[:id]}.first | |
puts content.name + " https://youtu.be/" + content.provider_id | |
param.value = param.value + 1 | |
param.save | |
end |
This file contains 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
namespace :update do | |
desc 'Update Twitter param' | |
task twitter: :environment do | |
puts 'Update Twitter Value to 1' | |
param = Parameter.where(name: 'twitter').first_or_initialize.update_attributes!(value: 1) | |
end | |
end |
This file contains 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
namespace :post do | |
desc 'Post Tweet' | |
task tweet: :environment do | |
end | |
end |
This file contains 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
░▄▀▄▀▀▀▀▄▀▄░░░░░░░░░ | |
░█░░░░░░░░▀▄░░░░░░▄░ | |
█░░▀░░▀░░░░░▀▄▄░░█░█ | |
█░▄░█▀░▄░░░░░░░▀▀░░█ | |
█░░▀▀▀▀░░░░░░░░░░░░█ | |
█░░░░░░░░░░░░░░░░░░█ | |
█░░░░░░░░░░░░░░░░░░█ | |
░█░░▄▄░░▄▄▄▄░░▄▄░░█░ | |
░█░▄▀█░▄▀░░█░▄▀█░▄▀░ | |
░░▀░░░▀░░░░░▀░░░▀░░░ |
NewerOlder