This file contains hidden or 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
/* | |
Details Element Polyfill 1.1.0 | |
Copyright © 2017 Javan Makhmali | |
*/ | |
(function() {}).call(this), | |
function() { | |
if (document.querySelector('body').getAttribute('class').indexOf('on-page-editor') > -1) { | |
return; | |
} |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Dropdowns</title> | |
<script type="text/javascript" src="http://unpkg.com/vue"></script> | |
<style> | |
.label { |
This file contains hidden or 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
<template> | |
<div> | |
<button @click="show = !show">Toggle</button> | |
<transition name="slide"> | |
<div class="fs" v-if="show"> | |
<button @click.stop="show = false">Close me</button> | |
<div v-html="popupContent" /> | |
</div> | |
</transition> | |
<div v-html="content" /> |
This file contains hidden or 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
# version | |
# INAV/OMNIBUSF4PRO 1.8.0 Nov 1 2017 / 06:34:32 (912d1315) | |
# resources | |
# mixer | |
mixer FLYING_WING | |
mmix reset |
This file contains hidden or 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
Entering CLI Mode, type 'exit' to return, or 'help' | |
# dump | |
# version | |
# INAV/OMNIBUS 1.8.0 Nov 1 2017 / 06:14:28 (912d1315) | |
# resources |
This file contains hidden or 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
import Vue from 'vue' | |
import { compileToFunctions } from 'vue-template-compiler' | |
// Here we define a DynamicContent component that will serve as wrapper | |
// for the body that will actually be "dynamic" | |
const DynamicContent = Vue.extend({ | |
template: '<DynamicContentBody :template="template" :data="data" />', | |
// There are 2 required properties for this component to work | |
props: { |
This file contains hidden or 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
local BUFFER_SIZE = 512 | |
local timings = { } | |
local write = 0 | |
local read = 0 | |
local max = 0 | |
local function count(pos) | |
if pos == read then | |
return 0 | |
elseif pos > read then |
This file contains hidden or 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
public class Chart { | |
private readonly Brush b = new SolidBrush(Color.FromArgb(200, 255, 0, 255)); | |
private readonly Pen p1 = new Pen(Color.Black, 2); | |
private readonly Pen p2 = new Pen(Color.Black, 1); | |
private readonly Pen p3 = new Pen(Color.Red, 2); | |
public Bitmap Draw(Point center, int radius, int max, decimal[] v) { | |
var width = center.X * 2; | |
var height = center.Y * 2; | |
var chart = new Bitmap(width, height); |
This file contains hidden or 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
#!/usr/bin/env groovy | |
noru2bit = [ '0': '00', '1': '11', 'F': '01', 'X': '10' ] | |
def getCodeWord(String group, String device, Boolean status) { | |
char[] result = new char[12]; | |
int idx = 0 | |
for (int i = 0; i < 5; i++) { | |
result[idx++] = (group[i] == '0') ? 'F' : '0' |
This file contains hidden or 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
mqtt_connected = false | |
source = 'NodeMCU' .. node.chipid() | |
data = { | |
version = '1.1', | |
source = source, | |
short_message = 'Sensor data (temperature and pressure)', | |
_temperature = 0, | |
_pressure = 0 | |
} |