Skip to content

Instantly share code, notes, and snippets.

View SpeckiJ's full-sized avatar

Jan Speckamp SpeckiJ

View GitHub Profile
@SpeckiJ
SpeckiJ / discordbot.py
Created October 7, 2021 20:30
discordbot.py
#!/usr/bin/python3
from dotenv import dotenv_values
from discord.ext import commands
from tinydb import TinyDB
import random
import discord
db = TinyDB('./db.json')
@SpeckiJ
SpeckiJ / Logarithm.java
Created January 24, 2019 13:16
Implementation of Altklausur WWU Muenster - Informatik 1 - WS 16/17 - Aufgabe 6
/**
* MIT License
Copyright (c) 2019 Jan Speckamp
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@SpeckiJ
SpeckiJ / response.json
Created January 17, 2018 13:07
Example of returned JSON Object by Skylax API
{
"L1C": [
{
"CLOUD_COVERAGE_ASSESSMENT": "99.6987",
"DATATAKE_1_DATATAKE_SENSING_START": "2017-10-19T11:10:51.026Z",
"DATATAKE_1_DATATAKE_TYPE": "INS-NOBS",
"DATATAKE_1_ID": "GS2A_20171019T111051_012146_N02.05",
"DATATAKE_1_SENSING_ORBIT_DIRECTION": "DESCENDING",
"DATATAKE_1_SENSING_ORBIT_NUMBER": "137",
"DATATAKE_1_SPACECRAFT_NAME": "Sentinel-2A",
openapi: 3.0.0
servers:
- url: 'https://example.org/api/v1'
info:
title: 52°North Series API
description: Thin Web binding API to access series data
version: 2.0.0
paths:
/:
get:

Keybase proof

I hereby claim:

  • I am speckij on github.
  • I am speckij (https://keybase.io/speckij) on keybase.
  • I have a public key ASCiP6VnbLY4U-Gu470m_3etNdr6UnAxd_2ie9lH5eBZZgo

To claim this, I am signing this object:

dn: ou=People,dc=example,dc=com
objectClass: organizationalUnit
ou: People
dn: ou=Groups,dc=example,dc=com
objectClass: organizationalUnit
ou: Groups
dn: cn=miners,ou=Groups,dc=example,dc=com
objectClass: posixGroup
inotifywait -m --exclude ".\.hidden" -e \create /home/specki/Desktop/resize_script --format '%w%f'|
while read FILE
do
if [ -e "${FILE}.hidden" ]
then rm "${FILE}.hidden";
else touch "${FILE}.hidden" && mogrify -resize 746x "$FILE";
fi
done
@SpeckiJ
SpeckiJ / CosinusApproximation.java
Created February 1, 2017 15:25
CosinusApproximation using Taylor
import java.lang.Math.*;
public class CosinusApproximation{
public static void main(String args[]){
// Testen der Funktion
System.out.println(cos(3.1415925,0.001));
}
/** Funktion zur Approximierung einer Cosinus Funktion anhand einer Taylor-Reihe
1;
% Implementiert einen Gauss Algorithmus zum lösen eines LGS
function gauss(A,b)
%% Umformen in rechte Dreiecksform
[X,y] = rechtes_Dreieck(A,b);
%% Loesen des LGS
disp("")
[Ergebnis] = loese(X,y)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Erics GPS Finder</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>