https://desertbot.io/blog/ssh-into-pi-zero-over-usb
$ ssh pi@raspberrypi.local
$ passwd
#include <DmxSimple.h> | |
#include <FastLED.h> | |
// How many leds in your strip? | |
#define NUM_LEDS 12 | |
// For led chips like Neopixels, which have a data line, ground, and power, you just | |
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock, | |
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN | |
#define DATA_PIN 8 |
https://desertbot.io/blog/ssh-into-pi-zero-over-usb
$ ssh pi@raspberrypi.local
$ passwd
{% macro dataset_link(id, name) -%} | |
<a href="{{h.url_for(controller='dataset', action='read', id=id)}}">{{name}}</a> | |
{%- endmacro %} | |
{% macro resource_link(dataset_id, resource_id, resource_name) -%} | |
{% set resource_url = h.url_for( | |
qualified=True, | |
controller='resource', | |
action='read', | |
id=dataset_id, |
import ReactDOM from 'react-dom'; | |
import React from 'react'; | |
import App from './src/App'; | |
const componentElement = | |
document.getElementById('BulkFileUploaderComponent'); | |
const getAttr = key => { | |
const val = componentElement.getAttribute(`data-${key}`); | |
return ['None', ''].includes(val) ? null : val; | |
}; |
Edit the existing bootstrap-variables.less
and variables.less
files from /home/ubuntu/fjelltopp/dms/ckan/ckan/public/base/less
. For an example, see the attached two files on this gist
Then compile the less into css
$ lessc \
/home/ubuntu/fjelltopp/dms/ckan/ckan/public/base/less/main.less \
/home/ubuntu/fjelltopp/dms/ckanext-dms/ckanext/dms/assets/css/dms-main.css
This gist looks at integrating Datopioan's data explorer with our ckan instance https://tech.datopian.com/data-explorer/