Skip to content

Instantly share code, notes, and snippets.

View erikusaj's full-sized avatar

Erik Ušaj erikusaj

  • Ljubljana, Slovenia
View GitHub Profile
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
// random pastels with alfa for use on STB
var pastels =
["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"];
function hexToRgb(hex) {
// Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex = hex.replace(shorthandRegex, function(m, r, g, b) {
return r + r + g + g + b + b;
@erikusaj
erikusaj / ljse-pre-formatting
Created February 13, 2013 08:36
LJSE stock ticker pre-formatting With PowerShell
$file = "ljse.txt"
$namefix = @(("NALOZBE", "NALOŽBE"), ("PORTOROZ","PORTOROŽ"), ("LASKO","LAŠKO"), ("CATEZ","ČATEŽ"), ("ZITO", "ŽITO"))
$ft = "{2}"
$eq = "{14}l{2}"
$lt = "{15}î{2}"
$gt = "{16}ì{2}"
Try
{
@erikusaj
erikusaj / XPression_StaticMap.vbs
Created October 18, 2012 07:59
Ross XPression script to generate a Map of your location from Google static maps API
'
' Ross XPression script to generate a Map of your location from Google static maps API
'
' Requires:
' Text1 object on scene as input for your location
' Quad1 object on scene to apply the texture
'
' System requirements:
' Ross XPression, connection to internet, MSXML2, ADODB and FSO available
'