Skip to content

Instantly share code, notes, and snippets.

View deostroll's full-sized avatar
😄
indeed...!

arun.jayapal deostroll

😄
indeed...!
View GitHub Profile
@deostroll
deostroll / 1-construction.html
Created July 26, 2026 15:29
Angle bisector, interactively: compass construction, equidistance theorem, its converse, and an animated proof that a triangle's angle bisectors meet at the incenter. Self-contained HTML5/JS with GIF export.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Angle Bisector — Compass &amp; Straightedge Construction</title>
<style>
:root {
--bg: #0f172a;
--card-bg: #1e293b;
@deostroll
deostroll / dateformatting
Last active July 21, 2021 11:48 — forked from DevelopKim/dateformatting
javascript date formatting
var today = new Date();
function fmtDate(today) {
return `${today.getFullYear()}${('0' + (today.getMonth() + 1)).slice(-2)}${('0' + today.getDate()).slice(-2)}-${('0' + today.getHours()).slice(-2)}_${('0' + today.getMinutes()).slice(-2)}_${('0' + today.getSeconds()).slice(-2)}`;
}
fmtDate(today);
//ex . Wed Aug 28 2013 17:50:28 GMT+0900 (KST) -> "20130828_17-50-28"
@deostroll
deostroll / x11vnc_server_on_startup.md
Last active September 20, 2020 11:00 — forked from YourFriendCaspian/x11vnc_server_on_startup.txt
Configure your system to have x11vnc running at startup.

Ubuntu 15.04 – Configure your system to have x11vnc running at startup.

Hello World,

If you are following us, you probably remember that we wrote already a post about this topic (see Ubuntu 14.10 – Configure your sytem to have x11vnc running at startup). Since Ubuntu 15.04 is using systemd, the instructions found in the previous post are not applicable anymore. Some of our readers had issues after upgrading to Ubuntu 15.04. The x11VNC is not running at startup anymore.

#include <SoftwareSerial.h>
SoftwareSerial skbd(D1, D2); //RX. TX
#include <dummy.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
skbd.begin(9600);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
:root {
--radius: 7px;
--border-string: 2px solid hotpink;
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "mylbproj1"
},
"basePath": "/api",
"paths": {
"/Users/{id}/accessTokens/{fk}": {
"get": {
@deostroll
deostroll / wait-pid.sh
Created December 14, 2017 04:22
script to wait for a particular pid - bash
#!/bin/bash
pid=$1
me="$(basename $0)($$):"
echo "$me"
if [ -z "$pid" ]
then
echo "$me a PID is required as an argument" >&2
exit 2
fi

Differences in trace output

@deostroll
deostroll / README.md
Last active November 12, 2017 19:51
simple alarm system

Here is the source code for my simple alarm system:

Scripts for the wemos wifi mini:

boot.py
main.py
httpclient.py

Scripts for the web server:

@deostroll
deostroll / .eslintrc
Created June 22, 2017 17:43 — forked from Javiani/.eslintrc
.eslintrc
{
"rules": {
"indent": [2,"tab"],
"quotes": [2,"single"],
"linebreak-style": [2,"unix"],
"semi": [2,"never"],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }]
},
"env": {
"es6": true,