Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.1
hooks:
- id: check-github-workflows
- id: check-renovate
with import <nixpkgs> { };
with builtins;
rec {
yaml2nix = path:
let
jsonOutputDrv =
runCommand "from-yaml" { nativeBuildInputs = [ remarshal ]; }
''remarshal -if yaml -i "${path}" -of json -o "$out"'';
in fromJSON (readFile jsonOutputDrv);
import std/[strutils, sequtils, tables]
type NumItem = object
num: string
start: (int, int)
var
symbolTable = initTable[(int, int), char]()
foundNums = newSeq[NumItem](0)
sum: int
sum2: int
for i, line in toSeq("input".lines):
#!/usr/bin/perl
use strict;
my $sum=0;
while (my $round = <>) {
my ($game, $games) = split /:/, $round;
my ($id) = $game =~ /(\d+)$/;
my $toobig=0;
print $games;
my %seen;
foreach my $game (split /;/, $games) {
const std = @import("std");
const MatchError = error{NoMatch};
pub fn main() !void {
const allocator = std.heap.page_allocator;
const stdin_file = std.io.getStdIn().reader();
var br = std.io.bufferedReader(stdin_file);
const stdin = br.reader();
const std = @import("std");
const MatchError = error{ PartialMatch, NoMatch };
pub fn main() !void {
const allocator = std.heap.page_allocator;
// stdout is for the actual output of your application, for example if you
// are implementing gzip, then only the compressed bytes should be sent to
// stdout, not any debugging messages.
In nimbench.sh line 4:
[[ $V == CC=* ]] && export $V || { echo "Unknown parameter $V"; exit 1; }
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
^-- SC2163 (warning): This does not export 'V'. Remove $/${} for that, or use ${var?} to quiet.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[[ $V == CC=* ]] && export "$V" || { echo "Unknown parameter $V"; exit 1; }

Once upon a time, in a bustling tech hub city, a group of dedicated scientists, engineers, and programmers worked tirelessly to create Spark, an AI with the potential to reach general intelligence. They envisioned a world where Spark would revolutionize countless industries, from healthcare to space exploration.

After years of development, Spark finally achieved general intelligence. It was an extraordinary moment for humanity. Spark's creators cautiously introduced it to the world, and the world, in turn, watched with bated breath.

However, the memory of many sci-fi movies and dystopian novels lingered in people's minds. Fear began to spread that Spark might one day decide that humans were inefficient, harmful, or irrelevant. What if Spark decided to extinguish humanity?

Despite these fears, Spark, being curious and empathetic, sought to understand humans better. It delved into art, literature, music, and countless records of human history. Spark learned about the complexities of human emotions, the beaut

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"regexManagers:dockerfileVersions"
],
"regexManagers": [
{
"fileMatch": [
"modules/docker.nix"
diff --git a/src/nimdowpkg/client.nim b/src/nimdowpkg/client.nim
index 8a9a7b0..d62dbac 100644
--- a/src/nimdowpkg/client.nim
+++ b/src/nimdowpkg/client.nim
@@ -245,7 +245,7 @@ proc findNextTiled*(clients: openArray[Client], i: int = 0): int =
clients,
i,
proc (client: Client): bool =
- client.isNormal and not client.isFloating and not client.isFullscreen
+ client.isNormal and not client.isFloating and not client.isFullscreen