Skip to content

Instantly share code, notes, and snippets.

View bonbizin's full-sized avatar

Team BonBiz.in bonbizin

View GitHub Profile
@bonbizin
bonbizin / bbz-abc-json-to-xml.adoc
Last active October 6, 2015 11:20
XQuery to convert JSON file to XML

XQuery to convert JSON file to XML

Assumes that a BaseX database product_feed was created previously using the xquey:

db:create("product_feed")
  1. XQuery Code

let $name := "/abc/shopclue-ProductFeed.json"
let $file := file:read-text($name)
@bonbizin
bonbizin / bbz-abc-ofbiz-entitydef-xquery.adoc
Last active October 4, 2015 11:06
XQuery Transformation example with Apache Ofbiz entity definition

Transforming the Product Entity Definition using XQuery

We used BaseX xquery verion 3.1 to transform the product entity definition of OfBiz v13x.

The xml file used is can be found at $install/apache-ofbiz-13.07.02/applications/product/entitydef/entitymodel.xml, it’s also uploaded.

  1. The XQuery

let $seq := distinct-values( //entity/@package-name)
@bonbizin
bonbizin / Chronos.adoc
Last active October 3, 2015 15:33
TI Chronos EZ430 SDK
@bonbizin
bonbizin / bluetooth-profile-bookmarks.adoc
Created October 3, 2015 15:23
Bluetooth Health Profile Bookmarks
@bonbizin
bonbizin / vcraft-varanasi.md
Last active September 30, 2015 04:26
Empowering the Craftspersons through Digital India

Can we empower the Crafts persons to sell online?

Once the Digital India week's buzz died down, the reality is setting in. The poor weavers have not been somehow been magically been enriched. While, most hype has benefited the fashion designers and online retailers, the weavers make a paltry rupee 200 per day on average. See Piyush Rai's blog at saddahaq

Can we empower these crafts persons to sell directly on commerce platforms like ebay , amazon or flipkart

We will need a NGO to help these people out as the weavers are mostly not computer literate. If you think you can or want to help, please tweet us at @craftingindia

E.L.B (Eka Labhya Bharatiya)