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
#include <ESP8266HTTPClient.h> | |
#include <ESP8266WiFi.h> | |
#include <TinyGPS++.h> // Tiny GPS Plus Library | |
#include <SoftwareSerial.h> // Software Serial Library so we can use other Pins for communication with the GPS module | |
const char* ssid = "project123"; | |
const char* password = "project123"; |
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
String readvoice; | |
String readvoicestore; | |
const int f_trig = 13; | |
const int f_echo = 12; | |
const int b_trig = 11; | |
const int b_echo = 10; | |
long duration_f; | |
int distance_f; |
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 { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
type; |
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
""" | |
Created on Sun Jun 3 19:55:01 2018 | |
@author: Arnob | |
""" | |
# pip install facebook-sdk | |
# make sure u install this properly | |
import facebook | |
""" |
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
/* | |
* LDRCode.c | |
* | |
* Created: 7/30/2018 09:47:05 AM | |
* Author : Arnob | |
*/ | |
#define F_CPU 8000000UL | |
#include <avr/io.h> | |
#include <util/delay.h> |
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 | |
import gtk | |
import webkit | |
import gobject | |
gobject.threads_init() | |
win = gtk.Window() | |
bro = webkit.WebView() | |
bro.open("http://www.google.com") | |
win.add(bro) |
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
#include <Servo.h> | |
#include "HX711.h" | |
#include <LiquidCrystal.h> | |
// initialize the library by associating any needed LCD interface pin | |
// with the arduino pin number it is connected to | |
const int rs = 32, en = 30, d4 = 28, d5 = 26, d6 = 24, d7 = 22; | |
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); | |
// Weight |
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 { Injectable, Component } from '@angular/core'; | |
import { CanDeactivate } from '@angular/router'; | |
import { Observable } from 'rxjs/Observable'; | |
export interface CanComponentDeactivate { | |
canDeactivate: () => Observable<boolean> | Promise<boolean> | boolean; | |
} | |
@Injectable() | |
export class GurdGuard implements CanDeactivate<CanComponentDeactivate> { |
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
const appRoutes: Routes = [ | |
{ path: 'user', component: UserComponent, canDeactivate: [GurdGuard] }, | |
]; |
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
canDeactivate() { | |
// if the user name is not null then it will proced | |
if ( this.user.name !== null) { | |
return true; | |
} else { | |
if(confirm("Are you sure!")){ | |
return true; | |
}else{ | |
return false; | |
} |