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
| import RPi.GPIO as GPIO | |
| import time | |
| from threading import Timer | |
| import subprocess | |
| GPIO.setmode(GPIO.BCM) | |
| GPIO.setup(11, GPIO.IN) | |
| timer = False | |
| monitor_is_on = True |
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
| on run {input, parameters} | |
| set incoming_card to text returned of (display dialog "Incoming trello" default answer "") | |
| do shell script "mail -s " & quoted form of incoming_card & " __EXCHANGE_WITH_INCOMING_TRELLO_MAIL__ < /dev/null" | |
| return input | |
| end run |
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
| local units = ["", "Wh", "kWh", "MWh", "GWh", "j", "kj", "Mj", | |
| "Gj", "Cal", "kCal", "Mcal", "Gcal", "varh", | |
| "kvarh", "Mvarh", "Gvarh", "VAh", "kVAh", | |
| "MVAh", "GVAh", "kW", "kW", "MW", "GW", | |
| "kvar", "kvar", "Mvar", "Gvar", "VA", "kVA", | |
| "MVA", "GVA", "V", "A", "kV", "kA", "C", | |
| "K", "l", "m3", "l/h", "m3/h", "m3xC", | |
| "ton", "ton/h", "h", "hh:mm:ss", "yy:mm:dd", | |
| "yyyy:mm:dd", "mm:dd", "", "bar", "RTC", | |
| "ASCII", "m3 x 10", "ton x 10", "GJ x 10", |
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
| #include <Bounce2.h> | |
| #include <LiquidCrystal.h> | |
| #define LARGEBTN 10 | |
| #define SMALLBTN 11 | |
| #define BUZZER 9 | |
| //Bounce largeBouncer = Bounce( LARGEBTN, 35 ); | |
| Bounce largeBouncer = Bounce(); |
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 | |
| class Q { | |
| public function __construct() { | |
| $this->hej(); | |
| } | |
| } | |
| class B extends Q { | |
| public function hej() { | |
| echo "hej "; |
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
| var hat = function() { | |
| if(this === hat) { | |
| console.log("Jeg er ens"); | |
| } else { | |
| console.log("Jeg er en anden"); | |
| } | |
| } | |
| hat(); |
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
| ets Jan 8 2013,rst cause:1, boot mode:(3,7) | |
| load 0x40100000, len 23140, room 16 | |
| tail 4 | |
| chksum 0x99 | |
| load 0x3ffe8000, len 2692, room 4 | |
| tail 0 | |
| chksum 0x35 | |
| load 0x3ffe8a90, len 3296, room 8 | |
| tail 8 |
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
| ____ ___ _ __ ___ ___ _ | |
| | _ \_ _| |/ /_ __ / _ \ / _ \| |__ | |
| | |_) | || ' /| '_ \| | | | | | | '_ \ | |
| | __/| || . \| | | | |_| | |_| | |_) | | |
| |_| |___|_|\_\_| |_|\___/ \___/|_.__/ |
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
| program = [[ | |
| wifi.sta.eventMonReg(wifi.STA_GOTIP, function() | |
| pin = 5 | |
| status, temp, humi, temp_dec, humi_dec = dht.readxx(pin) | |
| if status == dht.OK then | |
| -- Integer firmware using this example | |
| sendStr = string.format("DHT Temperature:%d.%03d;Humidity:%d.%03d\r\n", | |
| math.floor(temp), | |
| temp_dec, |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "regexp" | |
| "strconv" | |
| "time" | |
| "github.com/PuerkitoBio/goquery" |