Skip to content

Instantly share code, notes, and snippets.

View bob-sims's full-sized avatar

Bob Sims bob-sims

View GitHub Profile
@bob-sims
bob-sims / 00-readme.md
Last active October 12, 2015 22:08
Module to return node form as Services resource in Drupal 6.

Module to return Drupal node create Form as Services resource.

Drupal 6, Services 3.

Module: services_node_form

Thanks to direct and indirect help from @grzegorzbartman and @entendu.

@bob-sims
bob-sims / 00-readme.md
Last active December 10, 2015 08:18 — forked from zeuxisoo/app.js
Common-JS screenscraping in Titanium Mobile using htmlparser.js + soupselect.js
@bob-sims
bob-sims / index.xml
Last active December 10, 2015 08:28
Test case for Titanium Alloy error, cannot add View as child of TabGroup, although allowed through traditional Ti.UI API. Attempting to re-create Titans Community App UI.
<Alloy>
<TabGroup class="tabgroup" platform="ios">
<Tab id="streamTab">
<Window class="container">
<Label class="label" onClick="doClick">Hello, World</Label>
</Window>
</Tab>
<Tab id="groupsTab">
<Window class="container">
<Label class="label" onClick="doClick">Hello, World</Label>
@bob-sims
bob-sims / entypo-map.js
Last active March 21, 2016 17:49
Entypo icon font UTF map as JSON
// parsed from https://github.com/danielbruce/entypo/blob/master/config.yml
[
{
"name": "note",
"code": "0x266a",
"search": [
"music",
"note",
"song"
@bob-sims
bob-sims / demo.js
Last active December 12, 2015 09:19
// demo to parse JSON feed
// response to https://twitter.com/Saucerdk/status/300691053743316992
// https://twitter.com/Saucerdk/status/300690859253448704
var xhr = Ti.Network.createHTTPClient();
xhr.open('GET','http://www.achorsens.dk/custom_api.php?format=json&type=spillere');
xhr.send();
xhr.onload = function(){
var response = JSON.parse(xhr.responseText);
@bob-sims
bob-sims / alloy.js
Last active December 28, 2015 11:28
Authenticate to Azure Mobile BaaS with Titanium Mobile's native Facebook module (Alloy framework)
// The contents of this file will be executed before any of
// your view controllers are ever executed, including the index.
// You have access to all functionality on the `Alloy` namespace.
//
// This is a great place to do any initialization for your app
// or create any global variables/functions that you'd like to
// make available throughout your app. You can easily make things
// accessible globally by attaching them to the `Alloy.Globals`
// object. For example:
//