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 this setup block to configure all options for Bandit. | |
Bandit.setup do |config| | |
bandit_store = ENV['BANDIT_STORE'] || 'redis' | |
bandit_store_config = { } | |
case bandit_store | |
when 'redis' | |
bandit_store_config['url'] = ENV['REDIS_URL'] | |
when 'dalli' | |
bandit_store_config['host'] = ENV['MEMCACHE_SERVERS'] || '127.0.0.1' | |
bandit_store_config['namespace'] = ENV['BANDIT_NAMESPACE'] || 'bandit' |
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
window.jQuery(function() { | |
var $ = window.jQuery; | |
var submittable = $('[data-submittable="true"]'); | |
submittable.find('[data-submit-state]:not([data-submit-state="unsubmitted"])').hide(); | |
submittable.find('[data-submit-state="unsubmitted"]').show(); | |
function watchForSubscriptionSuccess(submittable) { | |
_GT.active_context.on('change', function(changes) { |
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
<form> | |
<fieldset> | |
<div class='form-group'> | |
<input type="email" class='form-control' name="entry[email]" placeholder="Enter Your Email" required> | |
</div> | |
<div class='form-group'> | |
<input type="text" class='form-control' name="entry[name]" placeholder="Enter Your Name" required> | |
</div> | |
</fieldset> | |
<fieldset class='form-group'> |
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
from __future__ import print_function | |
import httplib2 | |
import os | |
from apiclient import discovery | |
import oauth2client | |
from oauth2client import client | |
from oauth2client import tools | |
from oauth2client.service_account import ServiceAccountCredentials |
OlderNewer