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
import board | |
import busio | |
import adafruit_ads1x15.ads1115 as ADS | |
from adafruit_ads1x15.analog_in import AnalogIn | |
import time | |
# Create the I2C bus | |
i2c = busio.I2C(board.SCL, board.SDA) | |
# Create the ADC object using the I2C bus |
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
<div class="modal fade" id="exitModal{{ vehicle.id }}" tabindex="-1" role="dialog" aria-labelledby="exitModalLabel{{ vehicle.id }}" aria-hidden="true"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title" id="exitModalLabel{{ vehicle.id }}">Exit Vehicle {{ vehicle.vehicle.registration_number }}</h5> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> | |
</div> | |
<div class="modal-body"> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" |
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 "stm32f10x.h" | |
#include "stm32f10x_gpio.h" | |
GPIO_InitTypeDef GPIO_InitStructure; | |
void delay(__IO unsigned long mval){ | |
int i=0; | |
for(mval;mval>0;mval--){ | |
for(i=0;i<5000;i++); | |
} |
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
/* | |
Here is the complete tutorial for this code | |
http://www.fypsolutions.com/examples/ds18b20-interfacing-with-esp8266-nodemcu-board/ | |
*/ | |
#include <DallasTemperature.h> | |
#include <OneWire.h> | |
#define ONE_WIRE_BUS D1 //D2 pin of nodemcu |
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
/* | |
for compelete blog | |
http://www.fypsolutions.com/arduino/lm35-temperature-sensor-arduino | |
*/ | |
#include <LiquidCrystal.h> | |
// Pin Definitions |
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
---------------------------------------------------------------------------------- | |
-- Company: | |
-- Engineer: | |
-- | |
-- Create Date: 12:35:24 02/29/2020 | |
-- Design Name: | |
-- Module Name: sevensegment_ex01 - Behavioral | |
-- Project Name: | |
-- Target Devices: | |
-- Tool versions: |
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
function new_im = im2imhisteq(I) | |
% takes an Input Image and | |
%http://www.osmanoglu.org/supplement/unpublishedWork/DigitalImageProcessing_HistogramEqualizationMatching.pdf | |
%Manhas, Pratima & Thakral, Shaveta. (2018)... | |
% Comparative analysis of different wavelet ... | |
% filters and Image enhancement using Histogram Equalization. | |
L=256; | |
[m,n]=size(I); | |
len=m*n; %number of pixels |
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
# import statments | |
import numpy | |
import re | |
''' | |
Tokenize each the sentences, example | |
Input : "John likes to watch movies. Mary likes movies too" | |
Ouput : "John","likes","to","watch","movies","Mary","likes","movies","too" | |
''' | |
def tokenize(sentences): |
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
import android.annotation.SuppressLint | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.view.View | |
import android.webkit.WebView | |
import android.webkit.WebViewClient | |
import kotlinx.android.synthetic.main.activity_webview_pdf.* | |
class WebviewPDFActivity : AppCompatActivity() { |
NewerOlder