Skip to content

Instantly share code, notes, and snippets.

View soapdog's full-sized avatar
😸
BlogCatting

Andre Alves Garzia soapdog

😸
BlogCatting
View GitHub Profile
{# Esse é o template para o container box "home-hero-items-box" depende de dois posts #}
{% load static obj_tags images_tags %}
<section class="slice animate-hover-slide bg-3">
<div class="w-section inverse">
<div class="container">
<div class="row">
{% for article in articlebox.ordered_containers %}
<div class="col-md-6">
<div class="w-box">
{% load static mptt_tags %}
<section class="darkGreyBg darkDarkGreyTop">
<div class="container">
<div class="row row-centered cp-nav">
{% recursetree opps_menu %}
{% if not node.is_leaf_node and node.name == "Ediciones" %}
<ul>{{ children }}</ul>
{% endif %}
{% endrecursetree %}
</div>
{% comment %}
Esse é o template utilizado pelo content-box chamado "banner-box".
Ele pegará o primeiro artigo setado no articlebox e utilizará a main imagem
para o banner.
{% endcomment %}
{% load static obj_tags images_tags %}
<section class="darkGreyBg hidden-xs hidden-sm">
<div class="container">
{% for article in articlebox.ordered_containers %}
@soapdog
soapdog / gist:620a580f11a8a5453bcb
Created June 24, 2014 17:13
WebOS TV SDK installation crash
➜ Installer_maxosx ./Install.sh
javax.xml.transform.TransformerException: java.io.FileNotFoundException: /Users/.lgsdkTvregistery/.webosTVregistery.xml (No such file or directory)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:529)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:344)
at com.lge.sdk.ngtv.installer.ConfigurationManager.WriteConfigFile.writeConfig(Unknown Source)
at com.lge.sdk.ngtv.installer.ConfigurationManager.ConfigurationManager.initilizeConfigFile(Unknown Source)
at com.lge.sdk.ngtv.installer.installerscreen.MainUI$4.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
@soapdog
soapdog / manifest.webapp
Created May 27, 2014 16:19
project macaw manifest
{
"name": "Macaw",
"description": "An open source micro-blogging client",
"version": "1.0.0",
"launch_path": "/index.html",
"icons": {
"512": "/icon512.png",
"256": "/icon256.png",
"128": "/icon128.png",
@soapdog
soapdog / gist:9655141
Created March 20, 2014 00:57
direction services enyo kind
/**
* The maps api is loaded using the Google Loader. Include
* <script type="text/javascript" src="https://www.google.com/jsapi"></script>
* in your index.html to use this component.
*/
enyo.kind({
name: 'Google.DirectionsService',
kind: 'Control',
published: {
@soapdog
soapdog / gist:9346409
Created March 4, 2014 13:21
Article about Firefox OS on EFYTimes is completely wrong
The article hosted on http://www.efytimes.com/e1/fullnews.asp?edid=132039 is wrong in many places. There are many misconceptions such as:
Item 3: Swiping to the left doesn't reveal category. Reveals the adaptative app search that allows you to get the content you need without the need of installing apps. It also shows smart collections.
Item 4: Completelly wrong. Hosted apps are not hosted on Mozilla servers, they are hosted in their own server. They can work offline when the developer uses appCache. Packaged app makes no use of HTML5 caching because they are already on the device.
Item 5: The correct way to try out Firefox OS is by using the Firefox OS Simulator add-on or the App Manager.
Item 6: The list is completely wrong. The current devices are: Commercial devices available on retails: LG Fireweb, ZTE Open, Alcatel One Touch Fire. There are some Android devices that can support Firefox OS but this is not the recommended way. Also there is the Geeksphone Keon, Peak and Revolution that are developer d
{
"app-logo": "Appmaker",
"Build App": "Construir aplicativo",
"Cancel remixing this widget.": "Cancelar o remix desse widget.",
"Cancel": "Cancelar",
"Click Me": "Clique em mim",
"Component Description": "Descrição do componente",
"Component Name": "Nome do componente",
"Congratulations!": "Parabéns!",
"Continue": "Continuar",
function fireReadyCallbacks(url) {
// Fire all ready callbacks we have queued up.
console.log("Available callbacks", _readyCallbacks)
while(_readyCallbacks.length > 0) {
var callback = _readyCallbacks.pop()
if (typeof callback === "function") {
console.log("Callback available, firing it", callback);
callback();
} else {
console.log("What?!?!", callback);