Skip to content

Instantly share code, notes, and snippets.

View websiddu's full-sized avatar
😎
Cool

Siddhartha websiddu

😎
Cool
View GitHub Profile
<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">
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 = {
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'],
# Install a 3rd party moudle
sudo pip install --ignore-installed --install-option="--prefix=/Users/sid/Desktop/Apps/youtube/lib" google-api-python-client
#!/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
#
@websiddu
websiddu / main.py
Last active December 10, 2015 07:36
import webapp2
import jinja2
import os
import logging
import datetime
from google.appengine.ext import db
from google.appengine.ext.db import Key
{
"name": "test-uwshib",
"version": "0.0.1",
"dependencies": {
"passport-uwshib": "*",
"body-parser": "*",
"chalk": "*",
"cookie-parser": "*",
"express": "*",
"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).
*/
<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"
@websiddu
websiddu / deploy.rb
Last active August 29, 2015 14:21 — forked from ryanray/deploy.rb
# config/deploy.rb
# probably a lot of ways to improve this...
set :application, 'my_app'
set :repo_url, 'git@github.com:USERNAME/my_app.git'
# should set up a deploy user
set :user, 'deploy'
set :deploy_to, '/var/www/my_app'
set :scm, :git