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
    
  
  
    
  | package edu.calpoly.android.lab2; | |
| import java.util.ArrayList; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.content.res.Resources; | |
| import android.os.Bundle; | |
| import android.util.TypedValue; | |
| import android.view.KeyEvent; | 
  
    
      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
    
  
  
    
  | .include "m168def.inc" | |
| .LIST | |
| .CSEG | |
| .ORG 0 | |
| .DEF addr1=R17 | |
| .DEF addr0=R16 | |
| .DEF data=R18 | |
| .DEF op1=R19 | |
| .DEF op2=R20 | 
  
    
      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
    
  
  
    
  | /** | |
| * @file Drawing_1.cpp | |
| * @brief Simple sample code | |
| */ | |
| #include <opencv2/core/core.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| #define w 400 | 
  
    
      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
    
  
  
    
  | #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| #include <string.h> | |
| #include <opencv2/opencv.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| int main(int argc, char *argv[]){ | |
| IplImage *frame; | |
| int key = 'a'; | 
  
    
      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
    
  
  
    
  | #include <cstdio> | |
| #include <cstdlib> | |
| #include <vector> | |
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| vector<pair< int, pair<int,int> > > elephant; | 
  
    
      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
    
  
  
    
  | #include <stdio.h> | |
| #define INF 999999 | |
| int mem[1000][1000]; | |
| int X[] = {0,25,50,75,100}; | |
| int N = 3; | |
| int main(){ | |
| for(int L=N; L>=0; L--){ | |
| for(int R=L+1; R<=N+1; R++){ | 
  
    
      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
    
  
  
    
  | #include <cstdio> | |
| #include <cstdlib> | |
| using namespace std; | |
| int m[] = {0,0,1,0,1,1,1,0,0,0,1,1,0,1,1,1,0,0}; | |
| int k[20]; | |
| int length = 17; | |
| int mem[20]; | 
  
    
      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
    
  
  
    
  | #include <cstdio> | |
| #include <cstdlib> | |
| using namespace std; | |
| int m[] = {0,0,1,0,1,1,1,0,0,0,1,1,0,1,1,1,0,0}; | |
| int k[20]; | |
| int length = 17; | |
| int mem[20]; | 
  
    
      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
    
  
  
    
  | /**************************************************************************** | |
| * * | |
| * OpenNI 1.x Alpha * | |
| * Copyright (C) 2011 PrimeSense Ltd. * | |
| * * | |
| * This file is part of OpenNI. * | |
| * * | |
| * OpenNI is free software: you can redistribute it and/or modify * | |
| * it under the terms of the GNU Lesser General Public License as published * | |
| * by the Free Software Foundation, either version 3 of the License, or * | 
  
    
      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
    
  
  
    
  | #include <avr/io.h> | |
| int main (void) | |
| { | |
| DDRB |= (1 << 1); | |
| ADCSRA |= (1 << ADPS2) | (1 << ADPS1) | (1 << ADPS0); // Set ADC prescalar to 128 - 125KHz sample rate @ 16MHz | |
| ADMUX |= (1 << REFS0); // Set ADC reference to AVCC | |
| //ADMUX |= (1 << ADLAR); // Left adjust ADC result to allow easy 8 bit reading | 
OlderNewer