Skip to content

Instantly share code, notes, and snippets.

View shannah's full-sized avatar

Steve Hannah shannah

View GitHub Profile
#left_column {
display: none;
}
#left_column,
#top-search-form,
#top-section,
#dataface-sections-left-column {
display: none;
}
@shannah
shannah / sample.html
Created August 2, 2013 19:43
Notice the closing </tr> tag on line 69. There is no opening <tr> tag before the next <td> tag on line 74. There needs to be one.
<td>
<div id="product_wrapper" class="products-div p-32637">
<div id="p-image" class="product-image">
<a href="navy-red-toque-no-pompom-p.html?UMParent=0">
<img id="imgThumbgen32637"alt=" Unisync Group 6599&#44; Navy&#47;Red Toque&#44;" src="https://www.uniformmarketstores.com/UMPL/UMSS/graphics/UG/PRDT/UG_6599_SM.jpg" border="0" onerror="setImageURL2gen('imgThumbgen32637','http://purolator.unisyncgroupstores.com//UMSS/Assets/SS0/TemplateSet15/no-image.gif')" >
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jsonbenchmark;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
JAVA_OBJECT org_json_me_JSONObject_toString__(JAVA_OBJECT me)
{
//XMLVM_BEGIN_WRAPPER[org_json_me_JSONObject_toString__]
XMLVM_ENTER_METHOD("org.json.me.JSONObject", "toString", "?")
volatile XMLVMElem _r0;
volatile XMLVMElem _r1;
volatile XMLVMElem _r2;
volatile XMLVMElem _r3;
volatile XMLVMElem _r4;
volatile XMLVMElem _r5;
@shannah
shannah / section_schedule_items.php
Created September 22, 2013 19:59
Delegate class that includes a complex import filter for importing records into a Xataface app. It uses the ImportRecord class to allow for more complex import behaviour.
<?php
class tables_section_schedule_items {
function getRoles(&$record){
if ( isAdmin() ) return null;
if ( isUser() ){
return 'READ ONLY';
}
return null;
}
@shannah
shannah / DrawCircle_Color.frag
Created December 6, 2013 22:51
Shaders for drawing circle in JavaFX
#ifdef GL_ES
#extension GL_OES_standard_derivatives : enable
precision highp float;
precision highp int;
#else
#define highp
#define mediump
#define lowp
#endif
varying vec2 texCoord0;
package com.mycompany.myapp;
import ca.weblite.codename1.mirah.MyForm;
import com.codename1.components.WebBrowser;
import com.codename1.io.Log;
import com.codename1.javascript.JSFunction;
import com.codename1.javascript.JSObject;
import com.codename1.javascript.JavascriptContext;
import com.codename1.ui.BrowserComponent;
@shannah
shannah / MirahCompiler2.java
Created February 27, 2014 19:24
How to declare a new MirahMirror type..... this is just the beginning. Now that I have my mirror type, I can go to town.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ca.weblite.mirah.ant;
import java.util.ArrayList;
import java.util.Map;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication30
/**
*