Skip to content

Instantly share code, notes, and snippets.

View lolek24's full-sized avatar
🏠
Working from home

Tomasz Dygas lolek24

🏠
Working from home
  • IT-TD
  • Warsaw
View GitHub Profile
@dwbapst
dwbapst / bathyplot_rayshader_marmap_example-GoA.R
Last active February 25, 2024 18:20
Plotting a cool Rotatable 3D Bathymetric + Elevation Cube Using rayshader and marmap
## To install the latest version from Github:
# install.packages("devtools")
# devtools::install_github("tylermorganwall/rayshader")
## also marmap
# install.packages("marmap")
## load these libraries (?)
# library(rayshader)
# library(marmap)
## now just imported...
@BERENZ
BERENZ / pkw-onet.R
Last active October 14, 2019 12:51
Krotka analiza na podstawie artykułu z Onetu
## źródło: https://wiadomosci.onet.pl/kraj/sprawdzamy-przedwyborcze-sondaze-ktore-badanie-przewidzialo-wynik-wyborow/4x4qpve
### pakiety
library(tidyverse)
library(rvest)
### sciagamy dane
read_html("https://wiadomosci.onet.pl/kraj/sprawdzamy-przedwyborcze-sondaze-ktore-badanie-przewidzialo-wynik-wyborow/4x4qpve") %>%
html_table(header = TRUE, dec = ",") %>%
.[[1]] %>%
class Node {
constructor(state, node) {
if (arguments.length === 1) {
this.state = state;
this.parent;
this.childArray = [];
} else if (arguments.length === 2) {
this.state = new State(null, node.state);
if (node.parent !== (null || undefined)) {
this.parent = node.parent;

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@brenopolanski
brenopolanski / merge-pdf-ghostscript.md
Last active May 2, 2024 06:56
Merge multiple PDFs using Ghostscript

A simple Ghostscript command to merge two PDFs in a single file is shown below:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf

Install Ghostscript:

Type the command sudo apt-get install ghostscript to download and install the ghostscript package and all of the packages it depends on.

@phoboslab
phoboslab / mousemove.py
Created June 26, 2012 19:44
Python script to move the mouse cursor in windows with constant speed
import sys
import time
import win32api
if (len(sys.argv) < 4):
print "Usage: python mousemove.py dx dy speed"
sys.exit()
current = win32api.GetCursorPos()
cx = sx = current[0]