Skip to content

Instantly share code, notes, and snippets.

View decoded-cipher's full-sized avatar
💻
Self Learning

Arjun Krishna decoded-cipher

💻
Self Learning
View GitHub Profile
@decoded-cipher
decoded-cipher / NodeMCU_Firebase_LDR_Realtime_Database.ino
Last active April 22, 2021 12:23
Code to send sensor readings (LDR) onto Firebase Real-Time Database.
// 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
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')
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
git commit --amend # Edit the recent commit message