- Upgrade pip globally and in virtualenv and build deps
pip install --upgrade pip
source ./.venv/bin/activate
pip install --upgrade pip
pip install setuptools
deactivate
brew install libxml2
brew install libxslt
function intersect(left, right){ | |
return new Set([...left].filter(x => right.has(x))); | |
} | |
function* chunked(arr, n) { | |
for (let i = 0; i < arr.length; i += n) { | |
yield arr.slice(i, i + n); | |
} | |
} |
pip install --upgrade pip
source ./.venv/bin/activate
pip install --upgrade pip
pip install setuptools
deactivate
brew install libxml2
brew install libxslt
import itertools | |
import re | |
import sys | |
from collections import Counter, defaultdict | |
from functools import reduce | |
import numpy as np | |
from aoc.helpers import timing, loc, Printer, loc_input |
#include "ArduinoMotorShieldR3.h" | |
// https://store.arduino.cc/arduino-motor-shield-rev3 | |
// https://randomnerdtutorials.com/complete-guide-for-ultrasonic-sensor-hc-sr04/ | |
// https://github.com/gallingern/arduino-motor-shield-r3 | |
ArduinoMotorShieldR3 md; | |
int trigPin = 5; // Trigger | |
int echoPin = 4; // Echo | |
int ledPin = 7; |
// Paste in to console when Azure DevOps view is open with some failing tests | |
var a = document.querySelectorAll(".ms-DetailsRow-cell .clickable-text") | |
for(var i = 1; i < a.length; i++) { console.log(a[i].innerHTML) } |
FROM ubuntu:xenial | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends ufraw-batch | |
WORKDIR /app | |
VOLUME ["/app/data"] | |
COPY *.CR2 /app/data/ | |
ENTRYPOINT [ "bash" ] |
#!/usr/bin/env pwsh | |
git fetch --all | |
$branches = ('branch0', | |
'branch1', | |
'branch2', | |
); | |
foreach ($branch in $branches) { |
#include "ArduinoMotorShieldR3.h" | |
// https://store.arduino.cc/arduino-motor-shield-rev3 | |
// https://randomnerdtutorials.com/complete-guide-for-ultrasonic-sensor-hc-sr04/ | |
// https://github.com/gallingern/arduino-motor-shield-r3 | |
ArduinoMotorShieldR3 md; | |
int trigPin = 5; // Trigger | |
int echoPin = 4; // Echo | |
int ledPin = 7; |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace LinefeedPurger | |
{ | |
class Program |
var q = | |
from iu in Items | |
join u in OtherItems on iu.Id equals u.Id into ug | |
from u in ug.DefaultIfEmpty() | |
where u == null | |
orderby iu.Id | |
select iu; | |
var q1 = |