- Documentation: http://www.developers.meethue.com/documentation/getting-started
- Useful Links: https://delicious.com/mathiasschopmans/hue
- visit https://discovery.meethue.com/
- write down bridgeid (id)
- write down internalipaddress
<?php | |
class ObjectSize { | |
protected static $sizes = [ | |
'xxxxl', | |
'xxxl', | |
'xxl', | |
'xl', | |
'l', |
#!/bin/bash | |
# Get the commit message | |
commit_msg=$(cat $1) | |
# Define a regex pattern to match the conventional commit message format | |
pattern='^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z]+\))?!?: .+$' | |
# Test if the commit message matches the pattern | |
if ! [[ $commit_msg =~ $pattern ]]; then |
export function pluckRecursive(input: any, prop: string, collect = []) { | |
collect = collect || []; | |
if (!input) return collect; | |
if (Array.isArray(input)) { | |
input.forEach(function (value) { | |
pluckRecursive(value, prop, collect); | |
}) | |
} else if (typeof input === 'object') { |
name: CI | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
tags: | |
- 'v*' | |
pull_request: | |
branches-ignore: |
/* | |
* RGBa-Mixin with fallback (http://css-tricks.com/rgba-browser-support/) | |
*/ | |
=transparent-backgound($color: #000, $value:0.5) | |
$start: "rgb(" | |
$end: ")" | |
background: #{$start}red($color), green($color), blue($color)#{$end} | |
background: rgba($color, $value) |
<? | |
/* | |
Plugin Name: Meta-Boxes | |
Plugin URI: | |
Description: Bilder, Fotos, Beiträge, etc. | |
Version: 2.0 | |
Author: Rheinschafe - Mathias Schopmans | |
/* ----------------------------------------------*/ | |
$new_meta_boxes = |
/** | |
* Get the latest Tweet Text by Username | |
* | |
* @uses Transient - API for chaching | |
* @copyright Mathias Schopmans - 10/2010 | |
* | |
* @param string $username: Twitter Username | |
*/ | |
function get_last_tweet($username='nasenmann'){ |
javascript:var%20s=document.createElement('script');s.setAttribute('src',%20'http://jquery.com/src/jquery-latest.js');document.getElementsByTagName('body')[0].appendChild(s);alert('thank%20you%20for%20using%20jquery!');void(s); |
mixin input(label, options) | |
- var defaults = {"tag":"input", "type":"text", "labelClass":"form-label", "name":sanitize(label), "placeholder":null, "value":null, "id":sanitize(label).substring(0, 10) + "-" + randomString(), "tabindex":null} | |
- var input = extend({}, defaults, {"label":label, "required":attributes.required}, options, attributes) | |
- var baseClass = input.type == "hidden" ? null : "form-control" | |
- delete attributes.required | |
if input.placeholder === true | |
- input.placeholder = label | |
if input.type == "hidden" |