Skip to content

Instantly share code, notes, and snippets.

Su-Shee / gist:5d1a417fa9de19c15477
Last active April 12, 2024 11:27
Falsehoods Programmers Believe About "Women In Tech"

Falsehoods Programmers Believe About "Women In Tech"

  • We have absolutely no idea what we're doing in tech. Please explain the utmost basic things to us.

  • We only do web design. Our whole reason of being in tech is to make things pretty. Consider us the doilies of the industry.

  • We're not laughing about your joke, so we clearly need you explain it to us. In great detail.

  • We're only in tech to find a husband, boyfriend or generally to get laid.

Su-Shee / perfect-ui.txt
Last active August 7, 2022 12:33
My Perfect (G)UI Random Thoughts
Perfect UI has context
Middle is what I'm doing, surroundings change dynamically
Recently read that somebody wanted middle of their code editor be edit and
surroundings display usage, libraries, source of the code use
Why would I want "a browser" be a real separate window/application, if it
could be just a scalable/dragdrop component around my editing things
Su-Shee / Dockerfile.postgres-build
Last active August 7, 2022 12:00
Build Postgres in Docker
FROM ubuntu:16.10
# update the repository
RUN apt-get update --fix-missing
# install some basics
RUN apt-get install -y vim curl wget dialog net-tools \
build-essential strace \
perl libperl-dev python python-dev libxml2-dev libxslt-dev \
libreadline-dev zlib1g-dev \
Su-Shee / pgtap example
Created January 24, 2014 10:56
basic pgtap testing
SELECT plan(8);
-- does your table even exist and does it have a primary key?
SELECT has_table('users');
SELECT has_pk('users');
-- does it have the column username and what type is it?
SELECT has_column('users', 'username');
SELECT col_not_null('users', 'username');
Su-Shee / osmpostgis
Last active February 1, 2020 11:03
install open street map data via osm2psql in your postgres database
1) make sure you actually HAVE postgres AND postgis AND plsql!
2) enable postgis extension (may be in a different path or already coming from your distribution)
psql -U YOURUSER -d YOURDB -f /usr/share/postgresql/contrib/postgis-2.0/postgis.sql
or, on psql shell:
CREATE extension postgis;
Su-Shee / timeline 1986
Created December 8, 2016 12:50
teenage behavior archeology
unset key
set terminal pngcairo size 900,500 enhanced font "Verdana, 10"
set output "teenage.png"
unset title
#set grid xtics lt 0 lw 2 lc rgb "#990076"
Su-Shee / GnuPlot Coffee Time Plot
Created December 6, 2016 16:15
GnuPlot Coffee Time Plot
unset key
set terminal pngcairo size 900,600 enhanced font "Verdana, 10"
set output "coffee.png"
unset title
set format x ''
#!/usr/bin/env perl
use Mojolicious::Lite;
use Cwd;
@ARGV = qw(daemon --listen http://*:5000);
app->static->paths->[0] = getcwd;
# needed to setup the usual index.html landing
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use ZMQ::LibZMQ4;
use ZMQ::Constants qw/:all/;
file <- 'tageswerte-1948-2012.csv'
data <- read.csv(file, header = TRUE, sep = ',')
timeseries <- xts(data$LUFTTEMPERATUR, as.Date(ymd(data$MESS_DATUM))
plot(timeseries, screens = 1)