INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
| const svg = document.getElementById('svg_null'); | |
| // Get the XML content of the SVG | |
| const svgData = new XMLSerializer().serializeToString(svg); | |
| // Create a new Blob object from the SVG data | |
| const blob = new Blob([svgData], { type: 'image/svg+xml;charset=utf-8' }); | |
| // Create a new URL object from the Blob | |
| const url = URL.createObjectURL(blob); |
| import functools | |
| class Field(object): | |
| def __init__(self, *args, **kwargs): | |
| pass | |
| class ChainAbleMixin(object): | |
| def __getattr__(self, item): |
| import sys | |
| import types | |
| import ipdb | |
| """ | |
| Functionality that monkey patches ipdb.set_trace method and allows | |
| adding custom functions and etc for better debugging | |
| usage: | |
| define function and append to globals dictionary like | |
| dictionary key should be unique |
| /* | |
| Arduino 10k resistive termometer reading example | |
| Circuit: 10k pullup | |
| */ | |
| void setup() { | |
| Serial.begin(9600); | |
| } | |
| double Thermister(int RawADC) { |
| /** | |
| * To get started install | |
| * express bodyparser jsonwebtoken express-jwt | |
| * via npm | |
| * command :- | |
| * npm install express bodyparser jsonwebtoken express-jwt --save | |
| */ | |
| // Bringing all the dependencies in | |
| const express = require('express'); |
| <script> | |
| var stream = new EventSource('/api/stream'); | |
| stream.onmessage = function(e) { | |
| console.info(e.data); | |
| }; | |
| </script> |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| window.addEventListener("mousedown", handleClick, false); | |
| window.addEventListener("contextmenu", function(e) { e.preventDefault(); }, false); | |
| //FIXME:disable this when user in ESC view | |
| //TODO:check same for zoom view | |
| function handleClick(e) { | |
| e.preventDefault(); | |
| if(e.button === 0) Reveal.next(); | |
| if(e.button === 2) Reveal.prev(); | |
| } |
| # https://stackoverflow.com/questions/24562590/login-to-webpage-from-script-using-requests-and-django | |
| import requests | |
| import re | |
| import datetime | |
| import time | |
| import subprocess | |
| base_url = 'http://localhost:8000' | |
| url_login= base_url +'/accounts/login/' |