- 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
| /* | |
| * 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) |
| 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); |
| /** | |
| * 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'){ |
| <? | |
| /* | |
| Plugin Name: Meta-Boxes | |
| Plugin URI: | |
| Description: Bilder, Fotos, Beiträge, etc. | |
| Version: 2.0 | |
| Author: Rheinschafe - Mathias Schopmans | |
| /* ----------------------------------------------*/ | |
| $new_meta_boxes = |
| $default-sprite-dimensions: true | |
| $default-sprite-base-class: ".is" | |
| @import "images/sprites/default/*.png" | |
| @include all-default-sprites($prefix:"is") | |
| .is | |
| background-image: inline-image($default-sprites) | |
| +inline-block | |
| +hide-text |
| 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" |
| #include <Adafruit_NeoPixel.h> | |
| #include <avr/power.h> | |
| #define PIN 0 | |
| Adafruit_NeoPixel strip = Adafruit_NeoPixel(24, PIN); | |
| // IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across | |
| // pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input | |
| // and minimize distance between Arduino and first pixel. Avoid connecting | |
| // on a live circuit...if you must, connect GND first. |
| Capybara.register_driver :webkit_ignore_ssl do |app| | |
| Capybara::Webkit::Driver.new(app).tap {|d| d.browser.ignore_ssl_errors } | |
| end | |
| Capybara::Screenshot.register_driver(:webkit_ignore_ssl) do |driver, path| | |
| driver.save_screenshot(path) | |
| end | |
| Capybara.javascript_driver = :webkit_ignore_ssl | |
| Capybara.default_driver = :webkit_ignore_ssl |
| <?php | |
| class ObjectSize { | |
| protected static $sizes = [ | |
| 'xxxxl', | |
| 'xxxl', | |
| 'xxl', | |
| 'xl', | |
| 'l', |