View Git_Commands.sh
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
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
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
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') |
View NodeMCU_Firebase_LDR_Realtime_Database.ino
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
// 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 |