Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Self Learning

Arjun Krishna decoded-cipher

💻
Self Learning
View GitHub Profile
View Git_Commands.sh
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
View pookkalam.py
from joy import *
edge = circle(r=150,fill='#660039',stroke='none')
v1 = rectangle(h=170,w=170,fill='yellow',stroke='none') | rotate(15) | repeat(3,rotate(30))
v4 = rectangle(h=210,w=210,fill='red',stroke='none') | repeat(3,rotate(30))
show(edge+v4+v1)
def t_angle(px,py,pz,color) :
return polygon([px,py,pz],fill=color,stroke='none')
@decoded-cipher
decoded-cipher / NodeMCU_Firebase_LDR_Realtime_Database.ino
Last active Apr 22, 2021
Code to send sensor readings (LDR) onto Firebase Real-Time Database.
View NodeMCU_Firebase_LDR_Realtime_Database.ino
// Code to send sensor readings (LDR) onto Firebase Real-Time Database.
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
#define WIFI_SSID "..................................." // WiFi SSID
#define WIFI_PASSWORD "..................................." //WiFi Password
#define FIREBASE_HOST "..................................." // my-realtime-database.firebaseio.com
#define FIREBASE_AUTH "..................................." // Firebase Authentication Token
#define LIGHT_PIN 0