Skip to content

Instantly share code, notes, and snippets.

View steveliles's full-sized avatar

Steve Liles steveliles

View GitHub Profile
@steveliles
steveliles / approval-1.dot
Created December 10, 2010 19:23
approval-1.dot
digraph {
node [shape=circle,fontsize=8,fixedsize=true,width=0.9];
edge [fontsize=8];
rankdir=LR;
"do" [shape="circle", style="filled", color="green"];
"approved" [shape="circle", style="filled", color="red"];
"do" -> "approval";
@steveliles
steveliles / work-queue-1.dot
Created December 13, 2010 18:01
Work-Queue work-flow pattern diagrams in graphviz dot syntax
digraph {
node [shape=circle,fontsize=8,fixedsize=true,width=0.9];
edge [fontsize=8];
rankdir=LR;
"queue" [shape="doublecircle" color="orange"];
"s1" -> "queue";
"queue" -> "s2";
(function(){var $gwt_version = "2.0.4";var $wnd = window;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = '1D88C1CFC956D9CCF482C24AC7F915B7';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null;var $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'rubiks',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});function r(){}
function F(){}
function E(){}
function D(){}
function C(){}
function mq(){}
function hb(){}
function vb(){}
function Hb(){}
function Lb(){}
@steveliles
steveliles / dabblet.css
Created December 16, 2011 09:27
Untitled
* {
text-rendering: optimizelegibility;
}
p {
padding:40px;
font-size:20px;
}
code {
@steveliles
steveliles / Example2.java
Created August 29, 2013 08:24
hello again, concurrent world!
package concurrency.part1.ch1;
public class Example2 {
public static void main(String[] args)
throws Exception {
Runnable _r = new Runnable() {
public void run() {
System.out.println("Hello again, concurrent world!");
@steveliles
steveliles / Example1.java
Created August 29, 2013 08:13
hello, concurrent world!
package concurrency.part1.ch1;
public class Example1 {
public static void main(String[] args)
throws Exception {
new Thread() {
@Override
public void run() {
package androidconcurrency.chapter4;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
/**
* Adds support for isChangingConfigurations when minSdkVersion
* targets api-levels below 11.
*
* Unfortunately onSaveInstanceState is invoked AFTER onPause,
@steveliles
steveliles / Foreground.java
Last active July 21, 2016 07:50
Class for detecting and eventing whether an Android app is currently foreground or background (requires API level 14+)
/**
* Copyright 2015 Steve Liles
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@steveliles
steveliles / react-numerals-test.md
Last active May 9, 2017 10:44
Javascript developer, technical test

Technical Test - React Developer

Test Part I

The numeric system represented by Roman numerals originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into the Late Middle Ages. Numbers in this system are represented by combinations of letters from the Latin alphabet. Roman numerals, as used today, are based on seven symbols:

| Symbol | I | V | X | L | C | D | M | | --------------------------------------------| | Value | 1 | 5 | 10 | 50 | 100 | 500 | 1000 |

image: node:9.3.0
pipelines:
branches:
production:
- step:
caches:
- node
script:
# build and test the app