Skip to content

Instantly share code, notes, and snippets.

View ViliamKopecky's full-sized avatar
🤡
clowning

Viliam Kopecký ViliamKopecky

🤡
clowning
View GitHub Profile
@ViliamKopecky
ViliamKopecky / reboot.styl
Created March 25, 2016 17:05
Stylus port of _reboot.scss
$font-family-sans-serif = -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif
$font-family-serif = Georgia, "Times New Roman", Times, serif
$font-family-monospace = Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
$font-size-root ?= 16px
$font-family-base = $font-family-sans-serif
$font-size-base ?= 1rem
$line-height-base ?= 1.5
$body-color ?= #111
$body-bg ?= #FFF

Keybase proof

I hereby claim:

  • I am viliamkopecky on github.
  • I am viliamkopecky (https://keybase.io/viliamkopecky) on keybase.
  • I have a public key ASDovpmshl5RlF9blUYjcFOGva0XrOU5rqAU7_wP6JPargo

To claim this, I am signing this object:

@ViliamKopecky
ViliamKopecky / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@ViliamKopecky
ViliamKopecky / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@ViliamKopecky
ViliamKopecky / designer.html
Last active August 29, 2015 14:07
designer
<link href="../paper-calculator/paper-calculator.html" rel="import">
<link href="../topeka-elements/theme.html" rel="import">
<link href="../topeka-elements/topeka-resources.html" rel="import">
<link href="../topeka-elements/topeka-app.html" rel="import">
<link href="../topeka-elements/avatars.html" rel="import">
<link href="../core-icon/core-icon.html" rel="import">
<link href="../topeka-elements/topeka-datasource.html" rel="import">
<polymer-element name="my-element">
@ViliamKopecky
ViliamKopecky / designer.html
Last active August 29, 2015 14:07
designer
<link href="../code-mirror/code-mirror.html" rel="import">
<link href="../chart-js/chart-js.html" rel="import">
<link href="../cool-clock/cool-clock.html" rel="import">
<link href="../google-map/google-map.html" rel="import">
<link href="../core-menu/core-submenu.html" rel="import">
<link href="../core-item/core-item.html" rel="import">
<link href="../core-menu-button/core-menu-button.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<polymer-element name="my-element">
@ViliamKopecky
ViliamKopecky / 0_reuse_code.js
Created December 12, 2013 13:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ViliamKopecky
ViliamKopecky / dynamic-font-size.as
Created October 31, 2012 14:20
Dynamická velikost fontu podle maximální výšky
// -- funkce vezme TextField, vyzkouší na něj různý velikosti písma a vybere tu nejbližší maxHeight --
var fit = function(txt:TextField, maxHeight:Number) {
var format:TextFormat = text_txt.getTextFormat();
// -- 300 je největší povolená veliksot písma - to by se asi stávat nemělo --
for(var k=300;1<k;k--) {
format.size = k;
text_txt.setTextFormat(format);
if(text_txt.textHeight <= maxHeight) {
var watch_dir = './www/less';
var files = {
// 'input.less': 'output.css'
'./www/less/screen.less': './www/css/screen.css'
};
var interval = 100; // ms
var fs = require('fs');
@ViliamKopecky
ViliamKopecky / simple_curl.php
Created May 10, 2012 00:57
Simple cURL wrapper function for GET, POST, PUT & DELETE methods
/**
* Wrapper for easy cURLing
*
* @author Viliam Kopecký
*
* @param string HTTP method (GET|POST|PUT|DELETE)
* @param string URI
* @param mixed content for POST and PUT methods
* @param array headers
* @param array curl options