This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Media definitions */ | |
@media screen and (max--moz-device-pixel-ratio: 1.5) { | |
html { | |
font-size: 15px; | |
} | |
} | |
@font-face { | |
font-family: 'Keyboard Symbols'; | |
font-weight: 600; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "testee", | |
"description": "testing app", | |
"type": "certified", | |
"launch_path": "/index.html", | |
"developer": { | |
"name": "The Gaia Team", | |
"url": "https://github.com/mozilla-b2g/gaia" | |
}, | |
"datastores-owned": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0d54f904cebce9cad031af8e5dd6b040d3f314f3 Mon Sep 17 00:00:00 2001 | |
From: Olav Nymoen <olav@comoyo.com> | |
Date: Fri, 23 Aug 2013 11:40:57 +0200 | |
Subject: [PATCH] testing datastores | |
--- | |
apps/test/index.html | 2 ++ | |
apps/test/manifest.webapp | 26 ++++++++++++++++++++++++++ | |
apps/test/source.js | 7 +++++++ | |
3 files changed, 35 insertions(+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function type_checker() { | |
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; | |
function getParamNames(func) { | |
var fnStr = func.toString().replace(STRIP_COMMENTS, ''); | |
var result = fnStr.slice(fnStr.indexOf('(')+1, fnStr.indexOf(')')).match(/([^\s,]+)/g); | |
if(result === null) | |
result = []; | |
return result; | |
} | |
return function(types, func) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body></body> | |
<script> | |
var container = document.createElement('div'); | |
for(var i = 0; i<5;i++) { | |
var elem = document.createElement('div') | |
elem.textContent = "I am " + i; | |
container.appendChild(elem); | |
} | |
container.addEventListener('click', function(e) { | |
var clicked = e.target; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'); | |
var express = require('express'); | |
var app = express(); | |
// TODO: derive keys using pbkdf2 and some time step in the salt to get TTLs. | |
var db = {}; | |
var sever_secret = '123456'; | |
var key_salt = '123456' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<polymer-element name="post-card"> | |
<template> | |
<style> | |
:host { | |
display: block; | |
position: relative; | |
background-color: white; | |
padding: 20px; | |
width: 100%; | |
font-size: 1.2rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Summary1 = React.createClass({ | |
render: function(() { | |
var cards = this.props.cards | |
return ( | |
<div> | |
<Notification /> | |
<div> | |
cards.map(function(card, i) { | |
return <Card key={'key' + i} data={card}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<!-- Web Component Polyfill for old browsers --> | |
<script src="https://www.polymer-project.org/platform.js"></script> | |
<!-- Release candidate of next React --> | |
<script src="http://fb.me/react-with-addons-0.12.0-rc1.js"></script> | |
<script src="http://fb.me/JSXTransformer-0.12.0-rc1.js"></script> | |
<!-- Import a web component --> |
OlderNewer