I hereby claim:
- I am albertzak on github.
- I am albertzak (https://keybase.io/albertzak) on keybase.
- I have a public key ASAnBNnvobaG3vg5KZ7mebwPLzcNhd2N4aDD8eVpNAP5nwo
To claim this, I am signing this object:
| blueprint: | |
| name: Switch Off At Sunrise | |
| description: Turn off the following switches at sunset | |
| domain: automation | |
| input: | |
| # Create a variable for identifying the light to act upon | |
| target_switch: | |
| name: Switches | |
| description: This is the switch (or switches) that will be turned off at sunset | |
| # Use a selector, to pick the light(s) |
| (defn on-konami-code [] | |
| (prn :konami-code-detected)) | |
| (defn setup-konami-code-listener! [] | |
| (let | |
| [key | |
| {37 :left | |
| 38 :up | |
| 39 :right | |
| 40 :down |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| is_container () { | |
| cgroup_output=$(cat /proc/self/cgroup 2>&1) | |
| echo "$cgroup_output" | grep -E '/docker/|/lxc/' > /dev/null | |
| return $? | |
| } | |
| if is_container; then | |
| echo "I'm trapped inside a container." |
| :- initialization(main). | |
| main :- | |
| routes(vie, nrt, R), | |
| write(R), halt. | |
| % data | |
| flight(vie, nrt, 1000). | |
| flight(vie, fra, 40). | |
| flight(vie, cdg, 50). |
| package gq.icctv.webviewdemo; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.webkit.JavascriptInterface; | |
| import android.webkit.WebResourceRequest; | |
| import android.webkit.WebView; | |
| import android.webkit.WebViewClient; | |
| import android.widget.Toast; |
| letsencrypt: | |
| environment: | |
| - [email protected] | |
| image: 'jrcs/letsencrypt-nginx-proxy-companion:v1.3' | |
| volumes: | |
| - '/root/certs:/etc/nginx/certs' | |
| - '/var/run/docker.sock:/var/run/docker.sock:ro' | |
| volumes_from: | |
| - nginx |
| #include "stdlib.h" | |
| #include "stm32f4xx.h" | |
| // This morse code implementation uses the standard as defined | |
| // by the International Telecommunication Union (ITU) in 1865 | |
| // T is short for "Time Unit" | |
| int T = (100 * 100000); |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define MAX_NODES 8 | |
| #define INFINITE 0xffff | |
| // structure for a node | |
| typedef struct _node { | |
| int node; |
| /***************************** | |
| * Fernlehre Semaphore Example | |
| * File: main.c | |
| * Author: Granzer Wolfgang | |
| * Version: 1.0 | |
| * Date: 30.4.2012 | |
| **/ | |
| #include <stdio.h> | |
| #include <stdlib.h> |