Skip to content

Instantly share code, notes, and snippets.

@github-polymer-user
github-polymer-user / i18n.js
Created March 19, 2016 14:52
Polymer i18n alpha
app.LocalizationBehavior = {
properties: {
locale: {
type: String,
reflectToAttribute: true
},
/*localized: {
type: Boolean,
value: false
},*/
<dom-module id='x-datepicker'>
<template>
<style>
:host {
min-height: 67px;
}
.mdl-layout {
align-items: center;
justify-content: center;
<i18n datepicker$="{{locale}}.{{id}}">{{title}}</i18n>
@github-polymer-user
github-polymer-user / install.sh
Last active January 29, 2017 09:48
full install for android dev
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
npm install -g nativescript
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
# to install wine see:
# 1. https://www.davidbaumgold.com/tutorials/wine-mac/
# 2. http://stackoverflow.com/questions/41918405/libtiff-dependancy-fails-when-installing-wine-with-homebrew-osx-10-12-3
npm -g install yo bower grunt grunt-cli grunt-bowercopy grunt-oraclejet load-grunt-config oraclejet-tooling generator-oraclejet npm-check-updates cordova
--yo oraclejet FixItFast --template=http://www.oracle.com/webfolder/technetwork/jet/public_samples/FixItFast.zip
yo oraclejet:add-sass
yo oraclejet:add-theme extranet
npm-check-updates -u
npm install
grunt build --theme=extranet --platform=web