Skip to content

Instantly share code, notes, and snippets.

View arn-ob's full-sized avatar
☠️
__worker__

Arnob arn-ob

☠️
__worker__
View GitHub Profile
@arn-ob
arn-ob / coin_data_send_with_gps_data.ino
Last active April 13, 2018 10:04
Bottle Cutting Mechine Arduino Source Code [ProjectCity Project Source Code]
#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";
@arn-ob
arn-ob / 4_wheel_car_with_Ultra_sen.ino
Created March 21, 2018 19:24
4 wheel car forward and backward move and Detect obstragle by using Ultra Sonic Sensor And stop the movement
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;
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
type;
@arn-ob
arn-ob / fbget.py
Last active June 3, 2018 14:19
Get Profile Info from facebook
"""
Created on Sun Jun 3 19:55:01 2018
@author: Arnob
"""
# pip install facebook-sdk
# make sure u install this properly
import facebook
"""
@arn-ob
arn-ob / main.c
Last active July 30, 2018 04:54
Atmega32 chip programming with ADC
/*
* LDRCode.c
*
* Created: 7/30/2018 09:47:05 AM
* Author : Arnob
*/
#define F_CPU 8000000UL
#include <avr/io.h>
#include <util/delay.h>
@arn-ob
arn-ob / gui.py
Created September 3, 2018 10:19
Run FullScreen GUI App At Linux
#!/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)
@arn-ob
arn-ob / recycling.ino
Last active August 2, 2021 10:12
Shaibal Final Project [Plastic Bottle Recycling]
#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
@arn-ob
arn-ob / gurd.ts
Last active September 24, 2018 18:12
CanDeactivate interface code
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> {
@arn-ob
arn-ob / router.js
Created September 24, 2018 18:13
For a Medium Blog
const appRoutes: Routes = [
{ path: 'user', component: UserComponent, canDeactivate: [GurdGuard] },
];
@arn-ob
arn-ob / canDeactivate.ts
Last active September 24, 2018 18:18
For the canDeactivate blog at Medium
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;
}