Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

// https://github.com/microsoftgraph/microsoft-graph-explorer/blob/master/src/app/base.ts
export type AuthenticationStatus = "anonymous" | "authenticating" | "authenticated";
export type RequestType = "GET" | "PUT" | "POST" | "GET_BINARY" | "POST" | "PATCH" | "DELETE";
export interface GraphApiCall {
statusCode?: number
duration?: number
method?: RequestType
calendars.read calendars.readwrite files.read files.readwrite mail.read mail.send user.read user.readbasic.all user.readwrite
package com.example.dan_silver.figdemo;
import android.content.Context;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
@dan-silver
dan-silver / tips.md
Last active July 17, 2017 22:26
Generating Haar Classifiers

####Resources

####Goals

@dan-silver
dan-silver / opencv.py
Created August 31, 2014 23:12
opencv python live video demo
import cv2
import numpy as np
cap = cv2.VideoCapture(0)
while(1):
# Take each frame
_, frame = cap.read()
ORG $B000
DATA1 FCB 5
DATA2 FCB 6
RESULT RMB 1
ORG $C000
LDS #$A000
LDX #DATA1
PSHX
/* Photocell simple testing sketch.
Connect one end of the photocell to 5V, the other end to Analog 0.
Then connect one end of a 10K resistor from Analog 0 to ground
Connect LED from pin 11 through a resistor to ground
For more information see http://learn.adafruit.com/photocells */
int photocellPin = 0; // the cell and 10K pulldown are connected to a0
int photocellReading; // the analog reading from the sensor divider
int LEDpin = 11; // connect Red LED to pin 11 (PWM pin)
<div class="et-wrapper et-rotate" et-out="scaleDown" et-in="scaleUpDown delay300">
<div class="et-page">
<h5>In:</h5>
scaleUpDown delay300
<h5>Out:</h5>
scaleDown
</div>
<div class="et-page">
<h5>In:</h5>
scaleUpDown delay300
<link rel="stylesheet" type="text/css" href="elementTransitions.min.css" />
<script src="elementTransitions.min.js"></script>
<div class="et-wrapper">
<div class="et-page">
<h2>Page 1</h2>
<button class="et-rotate" et-in="rotateCarouselRightIn" et-out="rotateCarouselRightOut">Next</button>
</div>
<div class="et-page">
<h2>Page 2</h2>
<button class="et-rotate" et-in="rotateCarouselLeftIn" et-out="rotateCarouselLeftOut">Back</button>
</div>
</div>