This file contains hidden or 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
let debounceTimer | |
Shelly.addEventHandler(function (event) { | |
console.log(event.name, event.info.event) | |
if (event.name === "input" && event.info.event === "toggle") { | |
let newState = event.info.state | |
Shelly.call("KVS.GetMany",'*', function(kvs,errc, errm) { | |
if(errc) { | |
console.error(errc, errm) | |
return | |
} |
This file contains hidden or 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
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate | |
# message if it wants to stop the commit. | |
# | |
# For branches that follow the following naming it [anything]/[project]/[anything] | |
# or [project]/[anything] it will prepend the project to the commit msg. | |
# |
This file contains hidden or 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
<?php | |
/* | |
* The problem | |
* A user can have many and different types of profiles ( Artist, Manager ...) | |
* Profiles each have a username that should be unique throughout the platform. | |
* There should be a way to retrieve a profile by username knowing only the username | |
* | |
* | |
*/ |
This file contains hidden or 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: donkfather | |
* Date: 02.04.2017 | |
* Time: 23:04 | |
*/ | |
trait CachesAttributes { |
This file contains hidden or 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="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains hidden or 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="../components/polymer/polymer.html"> | |
<polymer-element name="core-slideshow"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
background: white; | |
width: 100%; |