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
| redis-cli --raw dump mykey | head -c-1 > myfile | |
| cat myfile | redis-cli -x restore mynewkey 0 |
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 com.fasterxml.jackson.annotation.JsonAutoDetect; | |
| import com.fasterxml.jackson.annotation.JsonProperty; | |
| import com.fasterxml.jackson.core.JsonProcessingException; | |
| import com.fasterxml.jackson.databind.DeserializationFeature; | |
| import com.fasterxml.jackson.databind.JsonNode; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import org.glassfish.json.JsonUtil; | |
| import javax.json.Json; | |
| import javax.json.JsonObject; |
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 java.util.concurrent.TimeUnit | |
| import static java.util.Arrays.asList | |
| import static java.util.concurrent.TimeUnit.MILLISECONDS | |
| /** | |
| * Limit amount of work according to the provided frequency limitations | |
| * | |
| * Note: Converted from Java | |
| */ |
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 asyncio | |
| import serialio | |
| from sensation.sen0395 import SensorAsync, PresenceHandlerAsync | |
| class Printer: | |
| async def __call__(self, p): |