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 bottle import route, template, redirect, static_file, error, request, response, run | |
@route('/home') | |
def show_home(): | |
return template('home') | |
@route('/') | |
def handle_root_url(): |
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 urllib.parse import urlencode | |
import json | |
import requests | |
from bottle import route, template, redirect, static_file, error, request, response, run | |
@route('/home') | |
def show_home(): | |
return template('home') |
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
<bodydiv outputclass="training_videos_embedded"> | |
<xref href="//fast.wistia.net/embed/iframe/{video_id}?popover=true" format="html" scope="external" outputclass="wistia-popover[height=630,playerColor=3ea9f5,width=1120]"> | |
<image href="https://embed-ssl.wistia.com/deliveries/{image_id}?image_play_button=true&image_play_button_color=333333e0&image_crop_resized=260x146"/> | |
</xref> | |
<bodydiv outputclass="training_videos_caption"> | |
{video_title} ({duration}) | |
</bodydiv> | |
</bodydiv> |
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
<bodydiv outputclass="training_videos_embedded"> | |
<xref href="//fast.wistia.net/embed/iframe/drpvo1p0yi?popover=true" format="html" scope="external" outputclass="wistia-popover[height=630,playerColor=3ea9f5,width=1120]"> | |
<image href="https://embed-ssl.wistia.com/deliveries/48154ba03b89b764078wb7b21cd1890e70c716ae.jpg?image_play_button=true&image_play_button_color=333333e0&image_crop_resized=260x146"/> | |
</xref> | |
<bodydiv outputclass="training_videos_caption"> | |
Creating a Personal View (01:11) | |
</bodydiv> | |
</bodydiv> |
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
(function() { | |
return { | |
requests: { | |
taskPost: function(new_task_data) { | |
return { | |
url: 'https://app.asana.com/api/1.0/tasks', | |
headers: {"Authorization": "Basic " + btoa('{api_key}' + ":")}, | |
type: 'POST', |
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
import os | |
from urllib.parse import urlencode | |
import requests | |
from bottle import route, redirect, request, response, template, run | |
@route('/auth/asana') | |
def asana_auth(): | |
params = { |
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
$(function() { | |
var client = ZAFClient.init(); | |
client.invoke('resize', {width: '100%', height: '400px'}); | |
showStart(); | |
$("#check-token").click(function (event) { | |
event.preventDefault(); | |
client.invoke('notify', 'Authenticating...'); |
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 strict; | |
use warnings; | |
use MIME::Base64; | |
use LWP::UserAgent; | |
use JSON; | |
use Time::Piece; | |
use File::Spec::Functions; | |
use File::Path 'make_path'; | |
my $credentials = encode_base64('your_email_address:your_password'); |
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
import os | |
import datetime | |
import csv | |
import requests | |
credentials = 'your_zendesk_email', 'your_zendesk_password' | |
zendesk = 'https://your_subdomain.zendesk.com' | |
language = 'some_locale' |
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
import os | |
import glob | |
import json | |
import requests | |
from bs4 import BeautifulSoup, Comment | |
def main(): | |
subdomain = 'your_subdomain' # setting | |
email = 'your_email' # setting |
OlderNewer