Skip to content

Instantly share code, notes, and snippets.

Juan Carlos Jiménez Palantir555

Block or report user

Report or block Palantir555

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
View BLE_server.ino
* This sketch is the BLE GATT server for a halloween costume.
* For more information on the project, check this post:
* Create a BLE server that, once we receive a connection, will poll a button and
* an accelerometer. If the button is pressed or the device is moved abruptly,
* the device will send a notification to the BLE clients.
* The service advertises itself as $BLE_STORM_SERVICE_UUID
View ble_client.ino
* This sketch is the BLE GATT client for a halloween costume.
* For more information on the project, check this post:
* Author: Juan Carlos Jimenez Caballero
* License: Fully Open Source. Use at your own peril
* This firmware uses code found in Aruino's ESP32 BLE GATT example, and some
* snippets from other unlicensed open source projects
View .vimrc
"" Custom vim settings
"No need to be vi compatible.
:set nocompatible
:set incsearch "Turn on incremental searching
:set ignorecase "Ignore case when searching
:set smartcase "Ignore case when typing lowercase,
"otherwise match case
Palantir555 / main.cpp
Last active Jan 2, 2016
CookieCheater - Cheat at CookieClicker using a mbed microcontroller
View main.cpp
#include "mbed.h"
#include "USBMouse.h" //The library to work as a mouse
USBMouse mouse; //Declare the object mouse
DigitalIn myInput(p5); //Set an input to control when to send clicks
int main() {
myInput.mode(PullDown); //Internal pull-down in the input pin
while (1) { //Forever:
if( //If the input button/switch is enabled
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
# The path to use the PyQt module and others installed using homebrew
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
#Code copied from:
#And later modified a bit.
from PyQt4 import QtGui
from PyQt4 import QtCore
from PyQt4.QtCore import pyqtSlot,SIGNAL,SLOT
import sys
class MyMainWindow(QtGui.QMainWindow):
View gist:5198993
QTextCursor prev_cursor = myTextEdit->textCursor();
myTextEdit->moveCursor (QTextCursor::End);
myTextEdit->insertPlainText (myString);
myTextEdit->setTextCursor (&prev_cursor);
You can’t perform that action at this time.