Skip to content

Instantly share code, notes, and snippets.

View celeron55's full-sized avatar

celeron55 celeron55

View GitHub Profile
#define F_CPU 8000000L
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/io.h>
/*
MCU: ATTINY25
FUSE SETTINGS:
diff --git a/src/itemdef.h b/src/itemdef.h
index 11d5664..a04f9b7 100644
--- a/src/itemdef.h
+++ b/src/itemdef.h
@@ -115,9 +115,9 @@ struct ItemDefinition
*
* getInventoryTexture() and getWieldMesh() act differently depending on
* if called from the main thread or called from another thread.
- * If called from another thread, it will queue up a job to get the
- * inventory texture and wield mesh and wait up to 1 second for it to finish.
diff --git a/minetest.conf.example b/minetest.conf.example
index 7b8ab36..3efccc1 100644
--- a/minetest.conf.example
+++ b/minetest.conf.example
@@ -98,8 +98,6 @@
#show_debug = false
# Enable a bit lower water surface; disable for speed (not quite optimized)
#new_style_water = false
-# Max liquids processed per step
-#liquid_loop_max = 10000

Keybase proof

I hereby claim:

  • I am celeron55 on github.
  • I am celeron55 (https://keybase.io/celeron55) on keybase.
  • I have a public key whose fingerprint is F8AC 417E 71F5 4BCD C3CD 7EB2 3E4B 84C8 7FA2 EB2F

To claim this, I am signing this object:

// Assignment:
var number = 42
var opposite = true
// Conditions:
number = opposite ? -42 : number
// Functions:
var square = function(x){ return x * x }

Unified Website Login API for Password Managers

Version 0.1 by celeron55, 2015-10-10, RFC

An API that relieves browser-integrated password managers from having to understand complex javascript-based forms.

UWLAPI

Each website that supports the Unified Website Login API provides this global object.

diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp
index ad819e7..ff8ef52 100644
--- a/src/content_mapblock.cpp
+++ b/src/content_mapblock.cpp
@@ -492,15 +492,15 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
// -Z towards +Z, thus the direction is +Z.
// Rotate texture to make animation go in flow direction
// Positive if liquid moves towards +Z
- int dz = (corner_levels[side_corners[2][0]] +
- corner_levels[side_corners[2][1]] <
diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp
index 7f7cd84..15d5d2c 100644
--- a/src/playlist/playlistview.cpp
+++ b/src/playlist/playlistview.cpp
@@ -779,6 +779,9 @@ void PlaylistView::MaybeAutoscroll() {
void PlaylistView::JumpToCurrentlyPlayingTrack() {
Q_ASSERT(playlist_);
+ // Usage of the "Jump to the currently playing track" action shall enable autoscroll
+ inhibit_autoscroll_ = false;
diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp
index 7f7cd84..15d5d2c 100644
--- a/src/playlist/playlistview.cpp
+++ b/src/playlist/playlistview.cpp
@@ -779,6 +779,9 @@ void PlaylistView::MaybeAutoscroll() {
void PlaylistView::JumpToCurrentlyPlayingTrack() {
Q_ASSERT(playlist_);
+ // Usage of the "Jump to the currently playing track" action shall enable autoscroll
+ inhibit_autoscroll_ = false;
16:57:01.481 ERROR Database:595 db error: QSqlError(-1, "Parameter count mismatch", "")
16:57:01.481 ERROR Database:596 faulty query: "INSERT INTO musicd_songs (title, album, artist, albumartist, composer, track, disc, bpm, year, genre, comment, compilation, bitrate, samplerate, directory, filename, mtime, ctime, filesize, sampler, art_automatic, art_manual, filetype, playcount, lastplayed, rating, forced_compilation_on, forced_compilation_off, effective_compilation, skipcount, score, beginning, length, cue_path, unavailable, effective_albumartist, etag) VALUES (:title, :album, :artist, :albumartist, :composer, :track, :disc, :bpm, :year, :genre, :comment, :compilation, :bitrate, :samplerate, :directory, :filename, :mtime, :ctime, :filesize, :sampler, :art_automatic, :art_manual, :filetype, :playcount, :lastplayed, :rating, :forced_compilation_on, :forced_compilation_off, :effective_compilation, :skipcount, :score, :beginning, :length, :cue_path, :unavailable, :effect