For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
Discover gists
This file contains 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat | |
import org.gradle.api.tasks.testing.logging.TestLogEvent | |
import groovy.time.TimeCategory | |
import java.util.Date | |
/** | |
* based on the groovy code by lwasyl: | |
* https://gist.github.com/lwasyl/f5b2b4ebe9e348ebbd8ee4cb995f8362 | |
*/ | |
var testResults by extra(mutableListOf<TestOutcome>()) // Container for tests summaries |
This file contains 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
#-------------------------------------------------------------------------- | |
# Configuration | |
#-------------------------------------------------------------------------- | |
# Use Vi mode | |
setw -g mode-keys vi | |
# Increase scrollback buffer size | |
set -g history-limit 10000 |
An guide how to activate Windows 11 Pro for free
Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet
The answer is yes! You can switch from almost any edition to Pro completely for free!
People which already have Pro, but not activated, can skip to this step.
What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:
This file contains 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
# domain/entities.py | |
from dataclasses import dataclass, field | |
from datetime import datetime | |
from uuid import UUID, uuid4 | |
@dataclass | |
class Account: | |
oid: UUID | |
balance: int = 0 | |
created_at: datetime = field(default_factory=datetime.now) |
A little story about Fli
This is my first contribution to the FsAdvent on Sergey Tihon's Blog, thank you Sergey for making this possible every year.
Back in September 2022, a wonderful idea came to my mind. I kept thinking more and more over it and took a note, here is the original gist:
type Shell =
| BASH
| POWERSHELL
| CMD
This file contains 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
import SwiftUI | |
// MARK: - ContentView | |
// https://x.com/okazz_/status/1870807939944243631 | |
struct ContentView: View { | |
@State private var progress: Double = 0 | |
var body: some View { | |
MyGroup { |
This file contains 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
class Agent: | |
def __init__(self, name, ports=None): | |
self.name = name | |
self.ports = ports if ports else [] | |
# Each element of ports is either None or a tuple (other_agent, other_port_index) | |
def __repr__(self): | |
return f"{self.name}" | |
def connect(a, pa, b, pb): |
NewerOlder