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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>custom-close</title> | |
<style type="text/css" media="screen"> | |
/* | |
change the background image of the close link | |
TODO: update this url to reference your custom close button | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<p> | |
<a class="cs_import">Add from address book</a> | |
<!-- This textarea will be populated with the contacts returned by CloudSponge --> | |
<textarea id="contact_list" style="width:450px;height:82px"></textarea> | |
</p> |
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
# given a branch like 750-feature-name | |
# gcb 750 | |
# sponge $ gcb 750 | |
# checking out 750-feature-name | |
# Switched to branch '750-feature-name' | |
function gcb() { | |
branches=`git branch` | |
branchName=`echo "$branches" | grep $1` | |
branchName=`echo "$branchName" | sed s/\*//` | |
echo "checking out $branchName" |
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
require 'cloudsponge' | |
class CloudspongeController < ApplicationController | |
def cloudsponge_proxy | |
url = Cloudsponge::URL_BASE + 'auth?' + request.query_string | |
response = Cloudsponge::Utility::get_url(url); | |
if response.is_a?(Net::HTTPRedirection) | |
redirect_to response["location"] | |
else |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
(function(u){ | |
var d=document,s='script',a=d.createElement(s),m=d.getElementsByTagName(s)[0]; | |
a.async=1;a.src=u;m.parentNode.insertBefore(a,m); | |
})('//api.cloudsponge.com/widget/YOUR_WIDGET_SCRIPT.js'); | |
</script> | |
</head> |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<!-- Any link with a class="cs_import" will start the import process --> | |
<a class="cs_import">Add from Address Book</a> | |
<!-- Include the script anywhere on your page --> | |
<script> | |
// set any options here, for this example, we'll simply populate the contacts in the textarea above |
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
#!/usr/bin/env ruby | |
require "httparty" # Yes, I do like to party | |
# constants | |
host = "https://api.cloudsponge.com" | |
debug = 1 | |
# data to send to the server | |
service = ARGV[0] || "gmail" |
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
window.csPageOptions = { | |
beforeImport: function(source, id) { | |
console.log('beforeImport('+source+','+id+')'); | |
cloudsponge.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
<form accept-charset="UTF-8" action="{{ begin_import_response.consent_url }}" enctype="multipart/form-data" id="fileupload" method="post"> | |
<input type="file" name="csv_file" accept="text/csv|text/vcard"> | |
</form> |
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
<script> | |
// Asynchronously include the widget library. | |
// TODO: replace YOUR_WIDGET_SCRIPT with your widget script | |
(function(u){ | |
var d=document,s='script',a=d.createElement(s),m=d.getElementsByTagName(s)[0]; | |
a.async=1;a.src=u;m.parentNode.insertBefore(a,m); | |
})('//api.cloudsponge.com/widget/YOUR_WIDGET_SCRIPT.js'); | |
</script> |
OlderNewer