Skip to content

Instantly share code, notes, and snippets.

View PDXIII's full-sized avatar
😃
Working on my website.

Peter Sekan PDXIII

😃
Working on my website.
View GitHub Profile
@PDXIII
PDXIII / smallReset.css
Last active April 4, 2023 11:38
Very basic and simple reset CSS.
html {
box-sizing: border-box;
font-size: 16px;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
@PDXIII
PDXIII / keybase.md
Created June 15, 2018 10:25
Gist for verifying myself at keybase.io

Keybase proof

I hereby claim:

  • I am pdxiii on github.
  • I am pdxiii (https://keybase.io/pdxiii) on keybase.
  • I have a public key ASDqiOw2qInbuF1pqgQDziB9mJJjQW8OPriVC9gbVgPh3wo

To claim this, I am signing this object:

@PDXIII
PDXIII / GenerateMathProblems.js
Last active October 8, 2017 21:24
This script generates an array of integer calculations in a range between 0 and 100.
function uuidv4() {
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c=>(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16))
}
function add(num1, num2) {
return num1 + num2;
}
function substract(num1, num2) {
return num1 - num2;
@PDXIII
PDXIII / array-fiddle.markdown
Created September 29, 2017 21:35
Array Fiddle
@PDXIII
PDXIII / GermanElections.json
Created March 21, 2016 16:50
A simple file containing the results of the german elections from 1949 – 2013
{
"title": "Ergebnisse früherer Bundestagswahlen",
"url": "https://www.bundeswahlleiter.de/de/bundestagswahlen/downloads/bundestagswahlergebnisse/btw_ab49_gesamt.pdf",
"elections":
[
{
"id": 1,
"year": "1949",
"date": "1949-08-14",
@PDXIII
PDXIII / imageScraper.py
Last active April 13, 2023 19:33
This script downloads files from a given directory
#-*- coding: iso-8859-1 -*-
import sys
import os
import requests
from sets import Set
'''
This script downloads all images found under a given path
and with the naming schema containing a word, a trailing number and a file extension
@PDXIII
PDXIII / Nice Button Effect
Last active April 13, 2023 19:33
Less mixin for a nice button effect. see it in action http://pdxiii.github.io/JimmyStash
// see it in action http://pdxiii.github.io/JimmyStash
.buttonFX (@color) {
color: darken(@color, 30%);
border-top: solid 2px lighten(@color, 10%);
border-left: solid 2px lighten(@color, 10%);
border-right: solid 2px darken(@color, 10%);
border-bottom: solid 2px darken(@color, 10%);
background-color: @color;
box-shadow: inset 10px 10px 10px lighten(@color, 15%),
@PDXIII
PDXIII / UsingUnfolding-GeoJSONApp-ext02_07.pde
Created April 15, 2013 11:43
Code snippet for my Unfolding tutorial site.
// we need to get right the airport list for the current country
// because airportLists is sorted after the coutries i calls the right one
ArrayList<Marker> currentAirportList = airportLists.get(i);
// iterating through this airport list
for (Marker currentAirport : currentAirportList ){
// tell airport to draw itself
currentAirport.draw(map);
@PDXIII
PDXIII / UsingUnfolding-GeoJSONApp-ext02_05.pde
Created April 15, 2013 11:41
Code snippet for my Unfolding tutorial site.
ArrayList <ArrayList> makeAirportLists(
UnfoldingMap map,
List<Marker> countryMarkers,
List<Marker> airportMarkers){
ArrayList <ArrayList> lists = new ArrayList();
// iterating through the countryMarkers
for (Marker country : countryMarkers){
@PDXIII
PDXIII / UsingUnfolding-GeoJSONApp-ext02_04.pde
Created April 15, 2013 11:33
Code snippet for my Unfolding tutorial site.
ArrayList <ArrayList> makeAirportLists(
UnfoldingMap map,
List<Marker> countryMarkers,
List<Marker> airportMarkers){
ArrayList <ArrayList> lists = new ArrayList();