Skip to content

Instantly share code, notes, and snippets.

View Protoneer's full-sized avatar

Bertus Kruger Protoneer

View GitHub Profile
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<MaterialProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<materialz1List>
<MaterialElement>
<Key>0</Key>
<Bget>false</Bget>
<Xlocation>1717</Xlocation>
<Ylocation>66720</Ylocation>
<Zlocation>6703</Zlocation>
<Extendingspeed>30</Extendingspeed>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="filter_x_up" value="1280" />
<add key="filter_y_up" value="4330" />
<add key="filter_x_down" value="1220" />
<add key="filter_y_down" value="4270" />
<add key="filter_machine_x " value="1250" />
<add key="filter_machine_y " value="4550" />
<add key="feeder_space" value="1650" />
<?xml version="1.0" encoding="utf-8"?>
<XmlCoordinate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Leftmark>
<X>36357</X>
<Y>45502</Y>
</Leftmark>
<Rightmark>
<X>36009</X>
<Y>48322</Y>
</Rightmark>
@Protoneer
Protoneer / increment.bat
Created May 22, 2018 02:45 — forked from vurdalakov/increment.bat
Automatically increment version number in Arduino IDE
@echo off
echo ----------------------------------------------- increment.bat script -----------------------------------------------
rem ========================================================================================
rem == This script automatically increments build number in "version.h" file.
rem == Instructions and more information:
rem == http://codeblog.vurdalakov.net/2017/04/autoincrement-build-number-in-arduino-ide.html
rem ========================================================================================
setlocal
Install NodeMCU
https://github.com/nodemcu/nodemcu-flasher/blob/master/Win64/Release/ESP8266Flasher.exe?raw=true
-- Connect via serial port
majorVer, minorVer, devVer, chipid, flashid, flashsize, flashmode, flashspeed = node.info();
print(flashsize)
@Protoneer
Protoneer / Blink.ino.hex
Last active July 22, 2016 09:47
2560Test
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 4
#define NUM_LEDS 16
#define BRIGHTNESS 25
@Protoneer
Protoneer / nodejs-tcp-example.js
Created June 7, 2016 04:19 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@Protoneer
Protoneer / aliexpress-qty-search-fix.js
Created April 19, 2016 21:39 — forked from sleemanj/aliexpress-qty-search-fix.js
Return the Quantity Search on Aliexpress
// ==UserScript==
// @name Return the Quantity Search
// @namespace https://gist.github.com/sleemanj/95035bf2c0141ac72420
// @updateURL https://gist.github.com/sleemanj/95035bf2c0141ac72420/raw/aliexpress-qty-search-fix.js
// @downloadURL https://gist.github.com/sleemanj/95035bf2c0141ac72420/raw/aliexpress-qty-search-fix.js
// @version 0.1
// @description Put the quantity search fields back into the search interface on Aliexpress when they are not present.
// @author You
// @match http://*.aliexpress.com/*
// @grant none
@Protoneer
Protoneer / Email2Kanboard.py
Created January 5, 2015 02:16
Kanboard create task from incoming emails
import imaplib
import email
mail = imaplib.IMAP4_SSL('imap.gmail.com')
mail.login('user','password')
mail.list()
# Out: list of "folders" aka labels in gmail.
mail.select("inbox") # connect to inbox.
mail.select('INBOX', readonly=True)