Skip to content

Instantly share code, notes, and snippets.

View lARSHADl's full-sized avatar
🖤
Seeker | Believer | Achiever

Arshad Ahmed lARSHADl

🖤
Seeker | Believer | Achiever
  • india
View GitHub Profile
@lARSHADl
lARSHADl / trafficblynk.txt
Created December 28, 2022 10:05
traffic leds
/*************************************************************
This is a simple demo of sending and receiving some data.
Be sure to check out other examples!
*************************************************************/
// Template ID, Device Name and Auth Token are provided by the Blynk.Cloud
// See the Device Info tab, or Template settings
#define BLYNK_TEMPLATE_ID "TMPLzKn_S2WG"
#define BLYNK_DEVICE_NAME "Quickstart Device"
@lARSHADl
lARSHADl / play_kitchen.yaml
Created June 15, 2021 12:39 — forked from jesserockz/play_kitchen.yaml
ESPHome Ikea Kitchen Microwave
substitutions:
devicename: play_kitchen
friendly_name: Play Kitchen
ip: '10.5.5.222'
wifi_reboot_timeout: 0s
########### PINS #########
# 3.3V 5V
# GPIO15 GROUND
# dht # GPIO13 GPIO2 LED / buzzer
@lARSHADl
lARSHADl / Ircode-mitv
Created June 3, 2021 08:52
code for mi tc
Protocol=PULSE_DISTANCE Address=0x0 Command=0x0 Raw-Data=0x356 10 bits LSB first
Raw result in internal ticks (50 us) - with leading gap
rawData[24]:
-65535
+ 23,- 11 + 12,- 12 + 14,- 28 + 13,- 29
+ 13,- 12 + 14,- 28 + 14,- 11 + 15,- 27
+ 12,- 13 + 12,- 30 + 12,- 30 + 13
@lARSHADl
lARSHADl / Ircode-vire
Created April 14, 2021 17:10
This file contain ir codes of commonly used ir remote for musicplayer ( in this case vire reemote )
#the codec is in nec format captured by using esphome on a nodemcu
Button_name:
codec
power:
Received NEC: address=0x01FE, command=0x48B7
mode:
Received NEC: address=0x01FE, command=0x58A7
mute:
@lARSHADl
lARSHADl / 3d model
Created April 5, 2021 05:58
3d model for website
<!DOCTYPE html>
<html>
<head>
<meta charset=UTF-8 />
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<script src="./three/three.min.js"></script>
<script type="module" src="three/OrbitControls.js"></script>
# Write code that will count the number of vowels in the sentence s and assign the result to the variable num_vowels.
# For this problem, vowels are only a, e, i, o, and u. Hint: use the in operator with vowels.
s = "singing in the rain and playing in the rain are two entirely different situations but both can be fun"
vowels = ['a','e','i','o','u']
# Write your code here.
num_vowels = sum([1 for i in s if i in vowels])
print(num_vowels)