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
#include <MD_Parola.h> | |
#include <MD_MAX72xx.h> | |
#include <SPI.h> | |
#include <DS3231.h> | |
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW | |
#define MAX_DEVICES 16 | |
#define NUM_ZONES 4 | |
#define CLK_PIN 13 |
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
# https://raspberrytips.nl/tm1637-4-digit-led-display-raspberry-pi/ | |
import sys | |
import os | |
import time | |
import RPi.GPIO as IO | |
IO.setwarnings(False) | |
IO.setmode(IO.BCM) |
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 React from "react" | |
import { | |
useTable, | |
useSortBy, | |
useGlobalFilter, | |
useAsyncDebounce, | |
} from "react-table" | |
function Table({ columns, data }) { | |
// Define a default UI for filtering |
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
name: github pages | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: |
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
function sym() { | |
var args = Array.prototype.slice.call(arguments); | |
var flattened; | |
if (args.length>1){ | |
flattened = args.reduce(function(previousValue, currentValue) { | |
var pre = clearIntersection (previousValue,true); | |
var cur = clearIntersection (currentValue,true); |
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
function pairwise(arr, arg) { | |
var markerArr = []; | |
for (i=0;i<=arr.length-1;i++){ | |
for (x=i+1;x<=arr.length-1;x++){ | |
if ( !markerArr[x] && !markerArr[i]){ | |
if (arr[x]+arr[i]==arg){ | |
markerArr[x] = markerArr[i]= true; | |
} | |
} |
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
/** | |
* A distance widget that will display a circle that can be resized and will | |
* provide the radius in km. | |
* | |
* @param {google.maps.Map} map The map on which to attach the distance widget. | |
* | |
* @constructor | |
*/ |
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
var NorthEast = new google.maps.LatLng( | |
DefaultMapLocation.NorthEast.Latitude, | |
DefaultMapLocation.NorthEast.Longitude | |
); | |
var SouthWest = new google.maps.LatLng( | |
DefaultMapLocation.SouthWest.Latitude, | |
DefaultMapLocation.SouthWest.Longitude | |
); | |
var bounds = new google.maps.LatLngBounds(); |
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
'use strict'; | |
/** | |
* @ngdoc directive | |
* @name directive:distanceWidget | |
* @description | |
* # distanceWidget for angular-google-maps | |
*/ | |
angular.module('app') | |
.directive('distanceWidget', function (uiGmapIsReady, $filter) { |
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 class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body ng-app="playground"> |
NewerOlder