This file contains 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 <dht.h> | |
dht DHT; | |
#define DHT22_PIN 6 | |
boolean bActive; | |
void setup() | |
{ | |
Serial.begin(9600); | |
pinMode(2, OUTPUT); // ตั้งค่า 2 เป็น Output | |
digitalWrite(2, HIGH); // ตั้งค่า Output เป็น High เพื่อ ปิด Relay | |
bActive = false; |
This file contains 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
public class RedisObject | |
{ | |
public string key { get; set; } | |
public byte[] Object { get; set; } | |
public object Object_Pass { get; set; } | |
public FileReturn Object_FileReturn | |
{ | |
get | |
{ | |
if (key != "") |
This file contains 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
public static async Task<FileReturn> ShowPhoto(string name, CancellationToken cn) | |
{ | |
var key = "PIC" + name; | |
var redisObj = RedisExtensionsPicture.GetData(key); | |
if (redisObj == null) | |
{ | |
// <<<<<<< ReadData from physicaldis and store to byte[] >>>>>>>>>> | |
// byte[] byte = Data | |
RedisObject obj = new RedisObject(); | |
obj.key = key; |
This file contains 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
readStream = gfs.createReadStream({ filename: req.params.param1 }).pipe(res); |
This file contains 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
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; version 2 of the License. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. |
This file contains 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
SELECT d.name dateexpire, FROM_UNIXTIME(l.value) expiredate FROM SubscriptionProperties sp | |
LEFT JOIN Subscriptions s ON s.id = sp.subscription_id | |
LEFT JOIN domains d ON d.id = s.object_id | |
LEFT JOIN Limits l ON l.id = sp.value | |
WHERE sp.`name` = 'limitsId' AND l.limit_name = 'expiration' AND FROM_UNIXTIME(l.value) > CURDATE() | |
ORDER BY l.value desc |
This file contains 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
SELECT d.name dateexpire, FROM_UNIXTIME(l.value) expiredate FROM SubscriptionProperties sp | |
LEFT JOIN Subscriptions s ON s.id = sp.subscription_id | |
LEFT JOIN domains d ON d.id = s.object_id | |
LEFT JOIN Limits l ON l.id = sp.value | |
WHERE sp.`name` = 'limitsId' AND l.limit_name = 'expiration' AND FROM_UNIXTIME(l.value) > CURDATE() | |
ORDER BY l.value desc |
This file contains 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
SELECT dm.name dateexpire, FROM_UNIXTIME(l.value) expiredate FROM domains dm | |
LEFT JOIN Limits l ON dm.limits_id = l.id | |
WHERE l.limit_name = 'expiration' AND FROM_UNIXTIME(l.value) > CURDATE() | |
ORDER BY l.value desc |
This file contains 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
body{ | |
-moz-filter: grayscale(100%) !important; | |
-o-filter: grayscale(100%) !important; | |
-webkit-filter: grayscale(100%) !important; | |
filter: grayscale(100%) !important; | |
} | |
.itopplus-background | |
{ | |
background-blend-mode: luminosity !important; |
This file contains 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
img { | |
-moz-filter: grayscale(100%) !important; /* Chrome, Safari, Opera */ | |
-o-filter: grayscale(100%) !important; /* Chrome, Safari, Opera */ | |
-webkit-filter: grayscale(100%) !important; /* Chrome, Safari, Opera */ | |
filter: grayscale(100%) !important; | |
} | |
body{ | |
-moz-filter: grayscale(100%) !important; | |
-o-filter: grayscale(100%) !important; | |
-webkit-filter: grayscale(100%) !important; |
OlderNewer