Skip to content

Instantly share code, notes, and snippets.

View dogamak's full-sized avatar

Mitja Karhusaari dogamak

View GitHub Profile
@dogamak
dogamak / tkoaly-events-blocklist.user.js
Created March 5, 2024 14:40
Removes events matching the given RegExes from the event calendar's sidebar, optionally preserving the first matching event.
// ==UserScript==
// @name TKO-äly Event Calendar Blocklist
// @version 1
// @grant none
// @include https://members.tko-aly.fi/
// ==/UserScript==
const members = [
{ pattern: /chess/, keepFirst: true },
{ pattern: /liikuntavuoro/, keepFirst: true },
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index f3c1d9b..75fc902 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1203,21 +1203,16 @@ tok_get(struct tok_state *tok, const char **p_start, const char **p_end)
}
}
tok_backup(tok, c);
- if (c == '#' || c == '\n' || c == '\\') {
+
@dogamak
dogamak / main.rs
Created June 27, 2017 10:39
My xcbars
extern crate xcbars;
use xcbars::{
BarBuilder,
Color,
Slot,
Position,
Geometry,
};
error[E0119]: conflicting implementations of trait `std::convert::From<&str>` for type `main::SubComponent`:
--> /home/dogamak/Code/xcbars/examples/bar.rs:84:37
|
84 | .add_component(Slot::Right, composite!("Down: ", down_speed))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| first implementation here
| conflicting implementation for `main::SubComponent`
|
= note: this error originates in a macro outside of the current crate

Keybase proof

I hereby claim:

  • I am dogamak on github.
  • I am dogamak (https://keybase.io/dogamak) on keybase.
  • I have a public key whose fingerprint is 5677 6018 EEAA 133C 42D2 9E81 233C 8440 1A6F 9A24

To claim this, I am signing this object:

@dogamak
dogamak / Cargo.toml
Created September 8, 2016 16:57
Diesel macro error
[package]
name = "notehub"
version = "0.1.0"
authors = ["Mitja Karhusaari <monttu300@gmail.com>"]
[dependencies]
diesel = { git = "https://github.com/diesel-rs/diesel.git" }
diesel_codegen = { git = "https://github.com/diesel-rs/diesel.git" }
diesel_codegen_syntex = { git = "https://github.com/diesel-rs/diesel.git" }
custom_derive = "*" # Cargo.lock: 0.1.5