Skip to content

Instantly share code, notes, and snippets.

View tszarzynski's full-sized avatar

Tomasz Szarzynski tszarzynski

View GitHub Profile
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-category.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<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="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@tszarzynski
tszarzynski / gist:6105579
Created July 29, 2013 16:26
Git console helpers
gf() {
git commit -a -m "fixes $1"
}
gci() {
git commit -a -m "$1"
}
gco() {
git checkout "$1"
@tszarzynski
tszarzynski / RandomNumberUtil.js
Created June 26, 2013 11:17
Genrate random number from range.
function RandomNumberUtil() {}
RandomNumberUtil.randomIntRange = function(start, end) {
return Math.round(RandomNumberUtil.randomNumberRange(start, end));
};
RandomNumberUtil.randomNumberRange = function(start, end) {
return start + (Math.random() * (end - start));
};
@tszarzynski
tszarzynski / ISampleInterface.as
Created August 30, 2012 10:14
Lightweight AS3 coding standard example
/*
* Copyright (c) 2012 Agency Republic
*
* Permission is hereby granted to use, modify, and distribute this file
* in accordance with the terms of the license agreement accompanying it.
*/
package com.agencyrepublic.template
{
/**
* Sample interface class.