Make sure sips (scriptable image processing system) is installed - usually by default.
Only wiorks on first page of pdf
Replace png
with jpeg
to use that format
sips -s format png your_pdf_file.pdf --out your_png_file.png
#!/usr/bin/python | |
from imgurpython import ImgurClient | |
client_id = 'YOUR_CLIENT_ID' | |
client_secret = 'YOUR_CLIENT_SECRET' | |
from PIL import Image | |
from creds import * | |
import PIL | |
from reportlab.pdfgen import canvas | |
from reportlab.platypus import SimpleDocTemplate, Paragraph, Image, Spacer, PageBreak |
Color codes for TFT screens with software to convert 24 bit color codes to 16bit one and viceversa
The 'Converted timestamp' column shows the time for Unix timestamp 1616239800 (Mar 20 2021 11:30:00 UTC/GMT).
To convert from normal/standard time to daylight saving time add 1 hour ( or +3600 seconds ). For example: Eastern Standard Time = GMT-5, add 1 hour: Eastern Daylight Time = GMT-4
Region (time zone) | Converted timestamp 1616239800 | Relative to UTC/GMT | Date in DST | Offset In seconds |
---|---|---|---|---|
Africa |
Set WshShell = CreateObject("WScript.Shell") | |
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) | |
Function ConvertToKey(Key) | |
Const KeyOffset = 52 | |
i = 28 | |
Chars = "BCDFGHJKMPQRTVWXY2346789" | |
Do | |
Cur = 0 | |
x = 14 |
This is a collection of a bunch of implementations of himawari8 live earth desktop in many languages.
The weather satellite Himawari8 posts its view of earth in every ten minutes. Therefore it is often used by the community to build live earth desktop scripts on. It is intersting to see how every implement the script in their favorite language. Also by comparing these scripts, similarities and differences between language can be found.
Among the list not only are there languages normally used for such task like Python and Ruby, but also Java, Haskel, Go, C#, Javascript(CoffesSript) and even Matlab.
title | tags | authors | |||||
---|---|---|---|---|---|---|---|
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily |
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// | |
// Bit manipulation macros // | |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// | |
//Extract bytes from integers, floats & doubles | |
#define Lo(param) ((char *)¶m)[0] //0x000y | |
#define Hi(param) ((char *)¶m)[1] //0x00y0 | |
#define Higher(param) ((char *)¶m)[2] //0x0y00 | |
#define Highest(param) ((char *)¶m)[3] //0xy000 |