Handy when YQL won't work due to robots.txt blocking.
Derived from prior art by @zeuxisoo: https://gist.github.com/1016047
// 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: | |
// |
// 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); |
// parsed from https://github.com/danielbruce/entypo/blob/master/config.yml | |
[ | |
{ | |
"name": "note", | |
"code": "0x266a", | |
"search": [ | |
"music", | |
"note", | |
"song" |
<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> |
Handy when YQL won't work due to robots.txt blocking.
Derived from prior art by @zeuxisoo: https://gist.github.com/1016047
Drupal 6, Services 3.
Module: services_node_form
Thanks to direct and indirect help from @grzegorzbartman and @entendu.
#Overview
I created this simple Staff Directory App as a demonstration for a small internal staff training workshop. Finished product shown below, goal throughout class was to explain code walkthrough and learning resources in pieces, allowing students to create app as a practical exercise.
My goals:
#! /bin/bash | |
# inspired by Greg McCormick's (@crushmedianet) post | |
# http://crushmedia.net/2012/04/23/automated-build-of-titanium-iconloading-files/ | |
# updated 4 Aug 2012: creates clipped iPad backgrounds by cropping 768x1024, etc. | |
# create following base images + save in APPNAME/Resources/: | |
# appicon-android-512x512.png |
This is a simple CommonJS module to wrap Titanium Ti.Network.HttpClient calls to interact with Drupal Services. | |
NOTE: Code updated at @TiConf using callback functions. | |
Tested using: | |
Drupal 6.24 | |
Services 3.1 | |
Titanium Mobile SDK 1.8.2 (Android 2.2 SDK) |