Skip to content

Instantly share code, notes, and snippets.

Moritz Stückler pReya

Block or report user

Report or block pReya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pReya
pReya / Configuration.h
Created Aug 13, 2019
Welcome Werkstatt 3D Printer Marlin Config
View Configuration.h
/**
* ************** How to use this firmware - READ THIS, yes actually read this. *********************************
*
* Uncomment means removing the 2 // in front of #define.
*
* FLASHING NOTES:
* ALL slicers (Simplify3D, Cura, Slic3r, etc) or anything else that connects to the COM port must be CLOSED for the firmware to be flash.
* If anything is connected to the COM port when flashing it will fail, typically "access denied" is listed in the error section of the Arduino IDE.
* You MUST use the Included Arduino IDE to flash the firmware if on Windows and if you are on a Mac or Linux follow the guide in our knowledgebase to setup your IDE to work with the firmware.
*
View ESP8266MQTTNeopixel.ino
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Adafruit_NeoPixel.h>
#define LEDPIN D4
#define NUMBER_PIXELS 1
Adafruit_NeoPixel led = Adafruit_NeoPixel(NUMBER_PIXELS, LEDPIN, NEO_RGB + NEO_KHZ800);
@pReya
pReya / startPaperspace.html
Last active Jun 13, 2018
Start your cloud computer from Paperspace (http://www.paperspace.com/) using a regular web browser (e.g. on a Fire TV stick). Just upload this to your server or webspace and then call it from your desired browser. You need to add the machine id and the api-key to the URL (e.g. startPaperspace.html?machine=ab1c2n345&key=1234567890). Save this to …
View startPaperspace.html
<!DOCTYPE html>
<html>
<head>
<title>Start Paperspace machine</title>
<meta charset="UTF-8">
<style>
body {
background-color: black;
}
#main {
@pReya
pReya / palindrome.js
Last active Oct 22, 2017
Simple node.js palindrome checker for the command line.
View palindrome.js
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('Please enter potential palindrome: ', checkForPalindrome);
function checkForPalindrome(str)
@pReya
pReya / Wohnungssuche.json
Last active Oct 6, 2017
This is a "scenario" for apartment hunting in Hamburg, Germany to be used with the Huginn scraper (https://github.com/huginn/huginn). It includes a list of about 20 building companies who publish new rental ads on their own website, as well as an agent for the two big real estate platforms Immobilienscout and Immowelt. However it is customised t…
View Wohnungssuche.json
{
"schema_version": 1,
"name": "wohnungssuche",
"description": "This scenario is for apartment search in Hamburg, Germany. It has several event sources from building companies who have their own property ads on their website.",
"source_url": false,
"guid": "b157be4c66ae64b92ae4725fee342313",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "home",
"exported_at": "2017-10-06T07:33:37Z",
@pReya
pReya / tempAlarm.c
Created Oct 30, 2016
Arduino Temperature Alarm and bar LED script
View tempAlarm.c
#include <math.h>
float tempRaw, tempAvg;
uint8_t tempPin = 7;
uint8_t speakerPin = 2;
uint8_t barLedPins[] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
uint8_t barLedPinsLength = sizeof(barLedPins) / sizeof(barLedPins[0]);
uint8_t lowTempLimit = 24;
@pReya
pReya / keybase.md
Last active Feb 14, 2016
Verification for keybase.io
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

You can’t perform that action at this time.