// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
/** | |
* Author Milan Divkovic | |
* | |
* You can control the motor with following commands: | |
* 0: Disables the motor | |
* 1: Enables the motor | |
* + or -: Increase or decrease speed in respect to rotation direction | |
*/ | |
#include <Arduino.h> |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
I started a project on a Hobby Dev plan (free, limit 10,000 rows), and then later needed to upgrade it to Hobby Basic ($9/month, limit 10,000,000 rows).
After assigning the new database, I had two databases attached to the application. They looked something like this:
- HEROKU_POSTGRESQL_OLIVE (postgresql-dimensional-3321) Old, free-tier (Hobby Dev) database
CREATE TABLE accounts( | |
id serial PRIMARY KEY, | |
name VARCHAR(256) NOT NULL | |
); | |
CREATE TABLE entries( | |
id serial PRIMARY KEY, | |
description VARCHAR(1024) NOT NULL, | |
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0), | |
-- Every entry is a credit to one account... |
# 1. Create service account | |
#. * Service Account Token Creator | |
#. * Artifact Registry Writer | |
# 2. Generate service account key | |
#. * In GitHub project -> Settings -> Secrets -> Actions -> New Repository Secret | |
#. Name: GCP_CREDENTIALS | |
#. Value: key.json contents | |
# 3. Create repo in artifact repository | |
#. * Name: $env.REPOSITORY below | |
#. * Region: $env.GAR_LOCATION below |
/ The template for the GitLab CE login page is located here: | |
/ /opt/gitlab/embedded/service/gitlab-rails/app/views/layouts/devise.html.haml | |
/ | |
/ The CE admin console lets you only add markdown content to the login page. | |
/ This mod will let you replace it instead. If there is no addition, it will | |
/ display the standard CE greeting. Updates may clobber this file. | |
/ | |
/ After updating it: gitlab-ctl reconfigure && gitlab-ctl restart | |
!!! 5 |
/* | |
Simple HTTP proxy in Rust. Hard coded to proxy rust-lang.org. | |
*/ | |
extern crate hyper; | |
use std::io::Read; | |
use hyper::Client; | |
use hyper::header::Connection; |
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |