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
#!/bin/bash | |
# Original source: https://raw.githubusercontent.com/kaihendry/dotfiles/master/bin/dwm_status | |
# Network speed stuff stolen from http://linuxclues.blogspot.sg/2009/11/shell-script-show-network-speed.html | |
print_wifi() { | |
ip=$(ip route get 8.8.8.8 2>/dev/null|grep -Eo 'src [0-9.]+'|grep -Eo '[0-9.]+') | |
if=wlan0 | |
while IFS=$': \t' read -r label value | |
do | |
case $label in SSID) SSID=$value |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Example on how to embed Google Drive PDF inside website</title> | |
<meta charset="UTF-8" /> | |
<link rel="stylesheet" href="bcc.css"> | |
</head> | |
<body> | |
<div class="container"> |
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
#include <LiquidCrystal_I2C.h> | |
const int trigPin = 9; | |
const int echoPin = 10; | |
long duration; | |
int distanceCm, distanceInch; | |
LiquidCrystal_I2C lcd(0x27, 16, 2); | |
void setup() { | |
lcd.begin(); |