Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block soemarko

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
soemarko / o2-analizer.ino
Created Oct 28, 2018
Source code for DIY O2 Analyzer, read the introduction here:
View o2-analizer.ino
#include <SPI.h>
#include <Wire.h>
#include <Piccolino_OLED.h>
#include <Piccolino_RAM.h>
#include <EEPROM.h>
#include <Adafruit_ADS1015.h>
#include <RunningAverage.h>
const int buttonPin=3; // push button
View ClearTextButton.swift
import UIKit
class ClearTextButton: UIButton {
override init(frame: CGRect) {
super.init(frame: frame)
convenience init() {
soemarko / CalculatorViewController.swift
Last active Mar 23, 2017
Dead simple calculator in Swift 3
View CalculatorViewController.swift
// Created by Soemarko Ridwan on 3/23/17.
// Copyright © 2017 Soemarko Ridwan. All rights reserved.
// Dependencies: (to simplify the code)
// - ActionKit:
// For closure style buttons
// - AutoLayout Helper:
// I was never a fan of interface builder, a lot more across devices.
View spark-debugger.html
<!DOCTYPE html>
var source = new EventSource('[DEVICE_ID]/events/?access_token=[ACCESS_TOKEN]');
source.addEventListener('logger', function(e) {
var p = document.createElement('p');
var d = JSON.parse(;
p.innerHTML =;
document.body.insertBefore(p, document.body.firstChild);
soemarko / RoastLoggerMax6675-Behmor.ino
Last active Jan 2, 2019
RoastLogger + MAX6675 + Behmor 1600
View RoastLoggerMax6675-Behmor.ino
This sketch is for use with MAX 6675 thermocouple interface chips. A separate sketch
is available for MAX 31855 chips.
See the "Contributed Libraries" section of
for details of how to install it.
View UIColor+Colours.h
// UIColor+Colours.h
// Created by Soemarko Ridwan on 25/05/13.
// Copyright (c) 2013 Soemarko Ridwan. All rights reserved.
#import <UIKit/UIKit.h>
@interface UIColor (Colours)
soemarko / autopager.js
Created May 20, 2012
tumblr infinite scroll
View autopager.js
A slight variant of
This file has been uploaded to
var tumblrAutoPager = {
url: "",
ver: "0.1.7",
rF: true,
gP: {},
soemarko / app.js
Created Nov 27, 2011
Using webview to use prompt window with Titanium
View app.js
var btn = Ti.UI.createButton({
title: 'Prompt!',
height: 40,
width: 100,
top: 20
var lbl = Ti.UI.createLabel({
text: 'Label',
textAlign: 'center'
soemarko / theme.html
Created Nov 26, 2011
embed github gist to tumblr
View theme.html
<!-- Add the following lines to theme's html code right before </head> -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist"></div>
soemarko / background_demo.js
Created Aug 30, 2011 — forked from kosso/background_demo.js
Background Service notification for Titanium
View background_demo.js
/* Kosso : March 12th 2011
This the only way I managed to do this without the app crashing on resume.
Done slightly differently to the KS example, since they unregister the service and
do not use a setInterval timer.
//############ in app.js :
// test for iOS 4+
You can’t perform that action at this time.