Dashing widget to display random girls. Check out this video to see how it works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is licensed under the terms of the MIT license https://opensource.org/license/mit | |
| # Copyright (c) 2021-2025 Marat Reymers | |
| ## Golden config for golangci-lint v2.1.6 | |
| # | |
| # This is the best config for golangci-lint based on my experience and opinion. | |
| # It is very strict, but not extremely strict. | |
| # Feel free to adapt it to suit your needs. | |
| # If this config helps you, please consider keeping a link to this file (see the next comment). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use anyhow::anyhow; | |
| use anyhow::Result; | |
| use std::mem::swap; | |
| type Child = Option<Box<Node>>; | |
| #[derive(Debug, Eq, PartialOrd, PartialEq, Clone)] | |
| pub struct Node { | |
| pub value: i32, |
Any other languages or suggestions? Comment below.
Clojure:
C++:
Elixir
Dashing widget to display first two coming-up Google Calendar events.
Basically, you do not need more than two events on your dashboard, but it can be easily extended to the neighboring cells and show, say, 4 events instead of 2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package log | |
| import ( | |
| "fmt" | |
| "io" | |
| stdlog "log" | |
| "strings" | |
| ) | |
| type stdlibLogger struct { |
- Healthy Open Source
- explicit goal to be a lightweight process
- concrete ability to scale to hundreds of contributors
- good fundamental goals
- transparency
- participation
- efficacy
- ecosystem projects encouraged but not required to adopt foundation governance templates
- creation of projects under TSC explicity delegates authority from TSC to project TC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // addOrMax performs safe addition: if result overflows, it returns MaxUint64 | |
| func addOrMax(accum, value uint64) uint64 { | |
| if (accum + value) < accum { | |
| return math.MaxUint64 | |
| } else { | |
| return accum + value | |
| } | |
| } | |
| // subOrZero performs safe subtraction: if result underflows, it returns 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -spec do(any(), [fun((...) -> any())]) -> any(). | |
| do(Arg, []) -> | |
| Arg; | |
| do(Arg, [Fun | Funs]) -> | |
| case Fun(Arg) of | |
| {error, Data} -> | |
| Data; | |
| Data -> | |
| do(Data, Funs) |
NewerOlder

