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
<div id="snowfall-overlay"></div> | |
<style> | |
#snowfall-overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
pointer-events: none; |
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 | |
git commit --amend # Edit the recent commit message |
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') |
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 |