Skip to content

Instantly share code, notes, and snippets.

View DarkLotus's full-sized avatar

James DarkLotus

View GitHub Profile
{"r":0}
{"r":0}
{"id":"d95704000682da679dce97a3","claimed":1,"claim_code":"","server_address_type":1,"server_address_domain":"device.spark.io","firmware_version":0,"version_string":"","meta_id":0,"meta_data":"","first_update_domain":"52.37.37.115","first_update_url":"/firmware/firmware_v1.bin","first_update_fingerprint":"17 08 7A 72 63 78 E9 71 53 50 65 85 16 07 C1 03 9C AA 39 D0"}
ets Jan 8 2013,rst cause:2, boot mode:(3,0)
load 0x40100000, len 3632, room 16
@DarkLotus
DarkLotus / craftedSkillJewels.scp
Last active March 3, 2016 01:35
craftedSkillJewels.scp
// Copyright James Kidd 2016
// Changes Licensed under MIT license.
// Based on original code by Lux
[ITEMDEF i_crafted_skill_ring_gold]
defname = i_crafted_skill_ring_gold
ID=i_ring_gold
Name=Magical Crafted Ring
VALUE=200
WEIGHT=10
LAYER=8
VERSION=0.55
[ITEMDEF i_new_deed_vendor]
DEFNAME=i_new_deed_vendor
ID=i_deed
TYPE=t_scroll
NAME=contract of employment
RESOURCES=i_deed, i_gold
VALUE=217500
@DarkLotus
DarkLotus / uonet taming sample
Created February 25, 2016 03:31
uonet example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using uoNet;
namespace uoNetExample
{
class Program
void setup() {
// initialize digital pin 13 as an output.
pinMode(1, OUTPUT);
Serial.begin(74880);
Serial.println("booted");
}
// the loop function runs over and over again forever
void loop() {
Serial.println("loop\n");
B·gC))k%÷sߨÇâCóæB
ÄÄr¤¥Å¤ç¤Dò
c
ÂÆ÷1)
'êB
¦¥Ä
ÄÄ9ë©!ÄDrbF£æ
@DarkLotus
DarkLotus / main.xml
Created February 7, 2015 06:56
main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/imageView"
android:src="@drawable/bg"
@DarkLotus
DarkLotus / 23LCV512 MBED STM32 Driver code
Created November 7, 2014 09:08
23LCV512 MBED STM32 Driver code
/*
* Library to interface with the 23LCV512 SRAM microchip.
*
* Apache2 licensed
* Written by James Kidd 2014
* */
#include "mbed.h"
enum SRAM_MODE {
BYTE_MODE = 0x00,
SEQ_MODE = 0x40
@DarkLotus
DarkLotus / gist:90e6ab625bc9ad5f3fee
Created October 23, 2014 10:55
Arduino Farm Driver
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
#include <pgmStrToRAM.h>
#include <MemoryFree.h>
#include "Controller.h"
#include "Wheat.h"
Controller * _game;// (F("James"));