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
(vips) john@banana ~/pics/jxl $ vips --version | |
vips-8.16.0 | |
(vips) john@banana ~/pics/jxl $ vipsheader -a jxl-layers-e7.jxl | |
jxl-layers-e7.jxl: 490x490 uchar, 4 bands, srgb, jxlload | |
width: 490 | |
height: 490 | |
bands: 4 | |
format: uchar | |
coding: none | |
interpretation: srgb |
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
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar | |
> .toolbar-items { | |
opacity: 0; | |
pointer-events: none; | |
} | |
#main-window:not([tabsintitlebar="true"]) #TabsToolbar { | |
visibility: collapse !important; | |
} | |
#sidebar-header { | |
display: none; |
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
#!/usr/bin/python3 | |
import sys | |
import pyvips | |
from numpy import linalg | |
stain = [ | |
[0.468, 0.023, 0.767], | |
[0.721, 0.141, 0.576], | |
[0.511, 0.990, 0.284] |
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
#!/usr/bin/python3 | |
import random | |
import time | |
import sys | |
import pyvips | |
if len(sys.argv) != 4: | |
print("usage: ./fetch-vs-crop.py IMAGE SIZE N-TILES") |
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
/* compile with | |
* | |
* gcc -Wall createtiff.c `pkg-config libtiff --cflags --libs` | |
*/ | |
#include <tiffio.h> | |
int | |
main (int argc, const char **argv) | |
{ |
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
/* | |
* add-profile.c ... paste an ICC profile into a JPG file, without | |
* decompress/recompress. | |
* | |
* Adapted from wrjpgcom.c | |
* | |
* compile with: | |
* | |
* gcc -g -Wall add-profile.c `pkg-config glib-2.0 --cflags --libs` | |
*/ |
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
You'd think __callStatic() would fire, but I see: | |
$ ./static.php | |
calling try_static_call in object context | |
calling try_static_call in object context | |
calling try_static_call in object context | |
calling try_static_call in object context | |
calling try_method_call in object context | |
$ php --version |
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
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using var image = NetVips.Image.NewFromFile(args[0]); | |
// make a System.Drawing bitmap from it | |
using var bitmap = NetVips.Extensions.BitmapConverter.ToBitmap(image); |
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
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar | |
> .toolbar-items { | |
opacity: 0; | |
pointer-events: none; | |
} | |
#main-window:not([tabsintitlebar="true"]) #TabsToolbar { | |
visibility: collapse !important; | |
} | |
#sidebar-header { | |
display: none; |
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
let numBalls = 13; | |
let spring = 1.01; | |
let balls = []; | |
function setup() { | |
createCanvas(720, 400); | |
for (let i = 0; i < numBalls; i++) { | |
balls[i] = new Ball( | |
random(width), | |
random(height), |
NewerOlder