Skip to content

Instantly share code, notes, and snippets.

View arcturus's full-sized avatar

Francisco Jordano arcturus

View GitHub Profile
@arcturus
arcturus / js yql table template
Created October 8, 2010 12:48
YQL execute table template
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<sampleQuery>select * from {table}</sampleQuery>
<description>
YQL execute template
</description>
<author>[email protected]</author>
</meta>
<bindings>
<select itemPath="" produces="XML">
@arcturus
arcturus / appcache.sh
Created April 13, 2012 07:48
Simple bash script to generate .appcache file from your web app
#!/bin/bash
echo "CACHE MANIFEST"
echo "#Generated: $(date)"
echo "CACHE:"
echo "/"
find . -type f |
while read i; do
if [ "${i:2}" != "$(basename $0)" ]; then
if [[ $i == \./* ]]; then
@arcturus
arcturus / compiling.txt
Created May 21, 2012 17:04
Compiling B2G on your mac
# Before start, download and install the macosx build prerequisites (there are web pages for all OS)
# https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites
# Using brew ...
brew install yasm mercurial libidl
# Install autoconf 2.13 (this specific version)
brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
# Now we are ready for getting the mozilla code https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial
@arcturus
arcturus / gaia.txt
Created May 21, 2012 20:34
Compiling gaia
# Clone the official gaia repo, or just clone it
git clone https://github.com/mozilla-b2g/gaia.git
cd gaia
# Make will 'build the project'.
# This means that the app cache manifest for each app will be create automatically (for those that have a manifest.webapp)
# Offline cache will be build with the current apps
# The user profile will be fill with the relevant information and the permissions per application
make
@arcturus
arcturus / crossdomainrequest.js
Created December 28, 2012 20:34
How to do a cross domain request in Firefox OS
/*
YOU'LL BE ABLE TO PERFORM A CROSS DOMAIN REQUEST IF YOUR APP IS CERTIFIED OR PRIVILEDGED.
FOR MORE INFO CHECK THE PERMISSIONS MATRIX: https://docs.google.com/spreadsheet/ccc?key=0Akyz_Bqjgf5pdENVekxYRjBTX0dCXzItMnRyUU1RQ0E#gid=0
First you'll need to setup the permission for doing the cross domain request on your application manifest.
Go to your app manifest, to the permissions section and add the following:
"systemXHR": {}
diff --git a/apps/communications/contacts/js/utilities/sdcard.js b/apps/communications/contacts/js/utilities/sdcard.js
index fadae20..b51c885 100644
--- a/apps/communications/contacts/js/utilities/sdcard.js
+++ b/apps/communications/contacts/js/utilities/sdcard.js
@@ -38,7 +38,7 @@ if (!utils.sdcard) {
/**
* Check whether there is a SD card inserted in the device.
- * @return {Boolean}
+ * @return {Boolean} true if sdcard available, false otherwise.
@arcturus
arcturus / london_at_war.json
Created October 14, 2016 12:56
Photos with latitude and longitude within the flickr group: London at War
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.