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
d |
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
{ | |
'YResolution': (72, 1), | |
'ResolutionUnit': 2, | |
'Make': u 'Apple', | |
'Flash': 16, | |
'SceneCaptureType': 0, | |
'GPSInfo': { | |
1: u 'N', | |
2: ((40, 1), (41, 1), (4204, 100)), | |
3: u 'W', |
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
<html> | |
<head> | |
<style> | |
body { | |
background: #FF00AA | |
} |
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
<html> | |
<head> | |
<style> | |
body { | |
background: #FF00AA | |
} |
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
/* | |
Optical Heart Rate Detection (PBA Algorithm) using the MAX30105 Breakout | |
By: Nathan Seidle @ SparkFun Electronics | |
Date: October 2nd, 2016 | |
https://github.com/sparkfun/MAX30105_Breakout | |
This is a demo to show the reading of heart rate or beats per minute (BPM) using | |
a Penpheral Beat Amplitude (PBA) algorithm. | |
It is best to attach the sensor to your finger using a rubber band or other tightening |
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 | |
# | |
# ESP8266 & ESP32 ROM Bootloader Utility | |
# Copyright (C) 2014-2016 Fredrik Ahlberg, Angus Gratton, Espressif Systems (Shanghai) PTE LTD, other contributors as noted. | |
# https://github.com/espressif/esptool | |
# | |
# This program is free software; you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation; either version 2 of the License, or (at your option) any later version. | |
# |
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 RPi.GPIO as GPIO | |
import time | |
GPIO.setwarnings(False) | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(11, GPIO.IN) #Read output from PIR motion sensor | |
GPIO.setup(3, GPIO.OUT) #LED output pin | |
while True: | |
i=GPIO.input(11) | |
if i==0: #When output from motion sensor is LOW | |
print "No intruders",i |
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
/* | |
2D Angle Interpolation (shortest distance) | |
Parameters: | |
a0 = start angle | |
a1 = end angle | |
t = interpolation factor (0.0=start, 1.0=end) | |
Benefits: | |
1. Angles do NOT need to be normalized. |
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
// calls for getting a list of paragraphs for an image id from url | |
// api/images/get_paragraphs_for_image_id/?id=374 | |
public function get_paragraphs_for_image_id() { | |
global $json_api; | |
$id = $json_api->query->id; | |
$paragraphs_list = $this->find_matching_paragraphs($id); | |
return $paragraphs_list; | |
} |
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
{ | |
"Chapters": { | |
"Fashion": { | |
"Paragraphs": [ | |
{ | |
"description": "string", | |
"id": 426, | |
"images": [], | |
"title": "Twiggy" | |
} |
NewerOlder