This setup switches to "powersave" if the battery is lower than 75% and to "performance" if it is above and charging.
Copy the files to
- /etc/systemd/system/watch-power-cpufreq.service
- /usr/local/bin/watch-power-cpufreq.sh
and then run
| # Extract frames | |
| ffmpeg -i filename.mov -ss 30 -to 65 -vsync 0 -q:v 2 out%03d.jpg | |
| for i in out*.jpg ; do | |
| echo $i $( convert $i -colorspace gray -statistic StandardDeviation 5X5 - | identify -verbose - | grep deviation ) ; | |
| done | tee deviation.txt | |
| mkdir good | |
| cat deviation.txt | sort -n -t ":" -k 2 | tail -20 | cut -b -10 | xargs cp -t good |
| import turtle | |
| import time | |
| my_window = turtle.Screen() | |
| # my_window.screensize(1000,1000) | |
| my_window.bgcolor("white") # creates a graphics window | |
| # my_window.setworldcoordinates(0,0, 1000,1000) | |
| my_window.delay(0) | |
| my_window.tracer(100,200) | |
| my_pen = turtle.Turtle() |
| <html> | |
| <head> | |
| <style> | |
| h1 { | |
| position: absolute; | |
| display: block; | |
| top: 50%; | |
| left: 50%; | |
| transform: rotate(30deg); |
| function measure (description, fn) { | |
| console.log('Running ' + description); | |
| let start = Date.now(); | |
| fn(100000000); | |
| console.log(`Took ${Date.now() - start}ms\n`); | |
| } | |
| /** | |
| * The scenario is: We want to call a lot of callbacks. | |
| * Which is faster: The usual anonymous callback. |
| import { expect } from "chai"; | |
| import { Writable } from "stream"; | |
| import { logLevel, LogManager, toStream } from "../../src/utils/logger"; | |
| describe("The logger", () => { | |
| describe("The 'for'-function", function() { | |
| const logEntries: any[] = []; | |
| const log = new LogManager(); | |
| let stream: Writable; |
| # Some more dependencies | |
| git clone [email protected]:bootprint/customize.git | |
| git clone [email protected]:bootprint/customize-engine-handlebars.git | |
| git clone [email protected]:bootprint/customize-engine-less.git | |
| git clone [email protected]:bootprint/customize-write-files.git | |
| git clone [email protected]:bootprint/bootprint.git | |
| # Clone the repos | |
| git clone [email protected]:bootprint/bootprint-openapi.git | |
| git clone [email protected]:bootprint/bootprint-json-schema.git |
This setup switches to "powersave" if the battery is lower than 75% and to "performance" if it is above and charging.
Copy the files to
and then run
| // Precompute the number of matching bits by the xor-result of two bytes | |
| const matchingBitsFromXor = [] | |
| for (let i = 0; i < 256; i++) { | |
| matchingBitsFromXor[i] = countMatchingBits(i) | |
| } | |
| class PhashBuffer { | |
| constructor (bytesPerHash, maxSize) { | |
| this.buffer = Buffer.alloc(bytesPerHash * maxSize) |
I hereby claim:
To claim this, I am signing this object:
| First Header | Second Header |
|---|---|
| Content from cell 1 | Content from cell 2 |
| Content in the first column | Content in the `find * |