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
<div class="container"> | |
<aside class="side"> | |
<button (click)="createDoc()">Create Doc</button> | |
<ul> | |
<li *ngFor="let file of files"> | |
{{file.name}} – {{file.id}} | |
</li> | |
</ul> | |
</aside> | |
<main class="main"> |
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
import { Injectable } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
declare var gapi: any; | |
declare var firebase: any; | |
const CLIENT_ID = '1asdfasdf.apps.googleusercontent.com'; | |
const SCOPES = ['https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/documents']; | |
const AUTH_PROPERTIES = { |
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
import { Component, OnInit } from '@angular/core'; | |
import { ApiService } from '../shared/services/api/api.service'; | |
import { DocframeComponent } from '../shared/docframe/docframe.component'; | |
import {DomSanitizationService, SafeResourceUrl} from '@angular/platform-browser'; | |
@Component({ | |
moduleId: module.id, | |
selector: 'app-doc', | |
templateUrl: 'doc.component.html', | |
styleUrls: ['doc.component.css'], |
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
# Install a 3rd party moudle | |
sudo pip install --ignore-installed --install-option="--prefix=/Users/sid/Desktop/Apps/youtube/lib" google-api-python-client |
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 python | |
# | |
# Copyright 2007 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
import webapp2 | |
import jinja2 | |
import os | |
import logging | |
import datetime | |
from google.appengine.ext import db | |
from google.appengine.ext.db import Key |
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
{ | |
"name": "test-uwshib", | |
"version": "0.0.1", | |
"dependencies": { | |
"passport-uwshib": "*", | |
"body-parser": "*", | |
"chalk": "*", | |
"cookie-parser": "*", | |
"express": "*", |
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
"use strict;" | |
/* | |
Example script for the passport-uwshib module | |
This should be run on a server that will be or | |
already has been registered with the UW Shibboleth | |
Identity Provider (IdP). | |
*/ | |
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
<SPConfig xmlns="urn:mace:shibboleth:2.0:native:sp:config" | |
xmlns:conf="urn:mace:shibboleth:2.0:native:sp:config" | |
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" | |
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" | |
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | |
clockSkew="180"> | |
<UnixListener address="/var/run/shibd.sock"/> | |
<ApplicationDefaults entityID="https://green-certification.uw.edu" |
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
# config/deploy.rb | |
# probably a lot of ways to improve this... | |
set :application, 'my_app' | |
set :repo_url, '[email protected]:USERNAME/my_app.git' | |
# should set up a deploy user | |
set :user, 'deploy' | |
set :deploy_to, '/var/www/my_app' | |
set :scm, :git |
NewerOlder