Skip to content

Instantly share code, notes, and snippets.

View websiddu's full-sized avatar
😎
Cool

Siddhartha websiddu

😎
Cool
View GitHub Profile
<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"
<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'],
@websiddu
websiddu / INTERNET_ERROR_CODES
Last active December 29, 2015 11:09
INTERNET ERROR CODES
INTERNET ERROR CODES
1xx Informational
----------------
100 Continue
101 Switching Protocols
2xx Success
----------------
200 OK
@websiddu
websiddu / 0_reuse_code.js
Created September 29, 2013 03:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# 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": "*",