Skip to content

Instantly share code, notes, and snippets.

From 4f2c0ddcb3f402a4ec7dcb57dfec78c2719e4004 Mon Sep 17 00:00:00 2001
From: FeepingCreature <[email protected]>
Date: Fri, 4 Sep 2020 14:33:17 +0000
Subject: [PATCH] Mines: add mass-flag shortcut.
Right-click on a tiles where the count of covered adjacent tiles
matches the number of the tile - so that they are obviously all
bombs - and all covered adjacent tiles are flagged.
This provides symmetry with the left-click mass-reveal option.
local term = require("term")
local robot = require("robot")
local computer = require("computer")
function split(str, marker)
local res = {}
if str:len() == 0 then return res end
local from = 1
while true do
From 4f2c0ddcb3f402a4ec7dcb57dfec78c2719e4004 Mon Sep 17 00:00:00 2001
From: FeepingCreature <[email protected]>
Date: Fri, 4 Sep 2020 14:33:17 +0000
Subject: [PATCH] Mines: add mass-flag shortcut.
Right-click on a tiles where the count of covered adjacent tiles
matches the number of the tile - so that they are obviously all
bombs - and all covered adjacent tiles are flagged.
This provides symmetry with the left-click mass-reveal option.
From 4f2c0ddcb3f402a4ec7dcb57dfec78c2719e4004 Mon Sep 17 00:00:00 2001
From: FeepingCreature <[email protected]>
Date: Fri, 4 Sep 2020 14:33:17 +0000
Subject: [PATCH] Mines: add mass-flag shortcut.
Right-click on a tiles where the count of covered adjacent tiles
matches the number of the tile - so that they are obviously all
bombs - and all covered adjacent tiles are flagged.
This provides symmetry with the left-click mass-reveal option.
--- rubocop.yml
Metrics/LineLength:
Max: 120
--- test.rb
# frozen_string_literal: true
def bla
if i > 1 # rubocop:disable Style/IfUnlessModifier
raise '_____________________________________________________________'
end
let unstable = import <unstable> {}; in
self: super:
{
pulseaudioFull = super.pulseaudioFull.overrideAttrs (oldAttrs: rec {
buildInputs = oldAttrs.buildInputs ++ [ unstable.alsaLib ];
});
}
import asyncio
async def main():
condition = asyncio.Condition()
async def condition_loop():
while True:
await condition.wait()
assert not condition.locked()
Build : dso 102/1901735 22:46 - Thu Jul 16 2020
Internal system error occured.
An Access Violation (C0000005h) has occurred in thread 'Background 3' at instruction location 00000001416A1C35h
CallStack : 138251381
0. 0x00007BCDB36E NtRaiseException
1. 0x00007BCD458A raise_func_trampoline
# bind ctrl-E to "edit fuzzy"
function edit_fuzzy() {
TARGET=$(fzf)
if [ $? -eq 0 ]
then
echo -e "${PS1@P}edit $TARGET"
edit "$TARGET"
history -s "edit $TARGET"
READLINE_LINE=""
fi
#!/bin/sh
GIT="/usr/bin/git"
set -eu
CMD=""
if [ $# -gt 0 ]
then
CMD=$1
fi