Skip to content

Instantly share code, notes, and snippets.

Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Flash: Software only. Hardware acceleration disabled
Flash Stage3D: Software only. Hardware acceleration disabled
Flash Stage3D Baseline profile: Software only. Hardware acceleration disabled
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Out-of-process Rasterization: Disabled
function checkIntersection(interval, tree){
var currentNode = tree.root;
var intersection = {};
while(currentNode){
console.log("Searching...", currentNode);
if (currentNode.list.length > 0){
for (var i = 0; i < currentNode.list.length; i++){
if (interval[0] < currentNode.list[i].interval[1] && currentNode.list[i].interval[0] < interval[1]){
intersection.interval = currentNode.list[i].interval;
function Node(interval, id){
this.interval = interval;
this.value = interval[0];
this.max = interval[1];
this.list = [];
this.left = null;
this.right = null;
this.id = id;
}
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{
font-family: 'Roboto-Thin', sans-serif;
margin:0;
<!DOCTYPE html>
<html>
<head>
<title>Simple Splash</title>
<style>
.box{
height:50px;
width:100px;
background-color:red;
overflow:hidden;
/**
* Sample React Native App with GraphQL
*/
'use strict';
var Lokka = require('lokka').Lokka;
var Transport = require('lokka-transport-http').Transport;
// Create a lokka client against SWAPI GraphQL API...changed so android queries localhost (needs to be 10.0.2.2)
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Dimensions,
View,
TouchableOpacity,
//Create Objects.
private ListView myList;
private ListAdapter todoListAdapter;
private TodoListSQLHelper todoListSQLHelper;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
public class TodoListSQLHelper extends SQLiteOpenHelper {
public static final String DB_NAME = "chaos.list.db";
public static final String TABLE_NAME = "LIST";
public static final String COL1_TASK = "item";
final ArrayList<String> list = new ArrayList<>();
final MyCustomAdapter adapter = new MyCustomAdapter(this, list);