Skip to content

Instantly share code, notes, and snippets.

@garyjohnson
garyjohnson / GABWordnet.h
Created September 30, 2015 15:04 — forked from atduskgreg/GABWordnet.h
Thin wrapper around wordnet sql database for getting definitions of words on iOS. Add the wordnet.sqlite3 file to your project and the sqlite3 dylib to the build phases. I downloaded the sqlite db from here: https://code.google.com/p/synonym/downloads
//
// GABWordnic.h
// WordnicSqliteTest
//
// Created by Greg Borenstein on 8/3/14.
// Copyright (c) 2014 Greg Borenstein. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <sqlite3.h>
@garyjohnson
garyjohnson / gary_prusa_i2_ramps_configuration.h
Last active December 1, 2015 01:10
Configuration for my Prusa i2 (RAMPS, Marlin)
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configurtion file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//User specified version info of this build to display in [Pronterface, etc] terminal window during startup.
//Implementation of an idea by Prof Braino to inform user that any changes made
//to this build by the user have been successfully uploaded into firmware.
@garyjohnson
garyjohnson / gary_prusa_i3_ramps_configuration.h
Last active December 1, 2015 01:10
Configuration for my first Prusa i3 (RAMPS, Marlin)
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configurtion file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//User specified version info of this build to display in [Pronterface, etc] terminal window during startup.
//Implementation of an idea by Prof Braino to inform user that any changes made
//to this build by the user have been successfully uploaded into firmware.
@garyjohnson
garyjohnson / appium-adb-failure.txt
Created April 7, 2016 15:46
Appium failure to connect to android emulator, Android SDK Tools 25.1.1
[Appium] Welcome to Appium v1.5.1 (REV bf20a138788ae2355052619ab59a9b23c3b8e10a)
[Appium] Non-default server args:
[Appium] fullReset: true
[Appium] Deprecated server args:
[Appium] --full-reset => --default-capabilities '{"fullReset":true}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] fullReset: true
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
Error: listen EADDRINUSE 0.0.0.0:4723
at Object.exports._errnoException (util.js:856:11)
@garyjohnson
garyjohnson / 00-header
Created October 6, 2016 23:09
LeanDog MOTD header for AWS instances (drop in as replacement for /etc/update-motd.d/00-header)
#!/bin/sh
#
# 00-header - create the header of the MOTD
# Copyright (C) 2009-2010 Canonical Ltd.
#
# Authors: Dustin Kirkland <kirkland@canonical.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@garyjohnson
garyjohnson / config.json
Created January 29, 2017 02:36
Repetier Firmware Configuration for Prusa i3 / E3D Titan
{
"editMode": 1,
"processor": 0,
"baudrate": 115200,
"bluetoothSerial": -1,
"bluetoothBaudrate": 115200,
"xStepsPerMM": 100,
"yStepsPerMM": 100,
"zStepsPerMM": 4000,
"xInvert": "1",