Skip to content

Instantly share code, notes, and snippets.

@motephyr
motephyr / gist:87a699c044122f8a7ad8
Last active August 29, 2015 14:14
將canvas圖片發送至FB粉絲專頁
<!DOCTYPE html>
<html>
<head>
<title>Facebook Login JavaScript Example</title>
<meta charset="UTF-8">
</head>
<body>
<script>
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
@motephyr
motephyr / carrierwave.rb
Last active April 13, 2017 07:56
carrierwave upload to S3
CarrierWave.configure do |config|
# For testing, upload files to local `tmp` folder.
if Rails.env.test? || Rails.env.development? || Rails.env.cucumber?
config.storage = :file
else
config.storage = :fog
config.fog_credentials = {
# Configuration for Amazon S3 should be made available through an Environment variable.