Skip to content

Instantly share code, notes, and snippets.

40c40,41
< const API_URL = 'http://chart.apis.google.com/chart';
---
> //const API_URL = 'http://chart.apis.google.com/chart';
> const API_URL = 'https://image-charts.com/chart'; // use image-charts.com free, since Google's charts API is deprecated and being shut off in first half of March 2019
103c104
< protected $_encoding = 'e';
---
> protected $_encoding = 'a'; //
273a275,279
@doctea
doctea / test_graph.php
Created March 12, 2019 10:56
Script to draw Google charts API and image-charts output side-by-side to compare differences
<?php
/**
used for dev/testing in conjunction with https://gist.github.com/doctea/134fa35dd359380071ad426377d28cc5
*/
if (!function_exists('print_rp')) {
function print_rp($data, $message = "output:") {
?><pre><?php print htmlspecialchars($message) ?><?php print_r($data) ?></pre>
<?php
1. Login to r_e_c_u_r terminal as `pi` user
2. `cd r_e_c_u_r`
3. `wget https://patch-diff.githubusercontent.com/raw/langolierz/r_e_c_u_r/pull/132.patch`
4. `patch -p1 < 132.patch`
diff --git a/display_centre/menu.py b/display_centre/menu.py
index da4534f..16232f3 100644
--- a/display_centre/menu.py
+++ b/display_centre/menu.py
@@ -237,6 +237,8 @@ class ShadersMenu(Menu):
indent = ' ' * 4 * (current_level)
for folder in sorted(dirs):
+ if folder[0]=='.':
+ continue
curl https://patch-diff.githubusercontent.com/raw/langolierz/r_e_c_u_r/pull/138.patch | patch -p1
// set your config options here!
// clock source setting
#define DEFAULT_CLOCK_MODE CLOCK_INTERNAL
//#define DEFAULT_CLOCK_MODE CLOCK_EXTERNAL_USB_HOST
// midi settings
//#define TRUE_MIDI_SERIAL // use true MIDI baud rate, for when eg uno controller has been flashed with usbmidiklik
#define TRUE_MIDI_SERIAL true // use true MIDI baud rate, for when eg uno controller has been flashed with usbmidiklik
//#define TRUE_MIDI_SERIAL false // for using Hairless
// set your config options here!
// clock source setting
//#define DEFAULT_CLOCK_MODE CLOCK_INTERNAL
#define DEFAULT_CLOCK_MODE CLOCK_EXTERNAL_USB_HOST
// midi settings
//#define TRUE_MIDI_SERIAL // use true MIDI baud rate, for when eg uno controller has been flashed with usbmidiklik
//#define TRUE_MIDI_SERIAL true // use true MIDI baud rate, for when eg uno controller has been flashed with usbmidiklik
#define TRUE_MIDI_SERIAL false // for using Hairless
#include <Arduino.h>
#include "pico/sync.h"
struct repeating_timer timer;
const int us_interval = 1000 * 1000 * 1;
volatile bool ready_for_phase_2 = false;
volatile bool phase_2_started = false;