Skip to content

Instantly share code, notes, and snippets.

View appcoreopc's full-sized avatar

jeremy woo appcoreopc

  • New Zealand
View GitHub Profile
{
"command": 0,
"data": [
{
"address": "51200 Kuala Lumpur",
"age": 60,
"birth": "",
"bodyTemperature": "36.50",
"certificateNumber": "590703106243",
"certificateType": 111,
{
"command" : 0,
"data" : [
{
"address" : "",
"age" : 0,
"birth" : "",
"bodyTemperature" : "36.33",
"certificateNumber" : "",
"certificateType" : 0,
{"command":0,"data":[{"address":"","age":0,"birth":"","bodyTemperature":"36.33","certificateNumber":"","certificateType":0,"country":"","deviceid":"0500209E","email":"","gender":"0","groupId":"","id":2,"name":"","nation":"","personId":"","phone":"","respirator":0,"timestamp":"2020-05-2311:20:33.894","userid":""}],"detail":"success","recordCount":1,"status":0,"transmit_cast":5}
{
"name" : "jeremy",
"data" : "kepung@gmail.com",
"temperature" :1
}
using Newtonsoft.Json;
using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Drawing;
def overrides(interface_class):
def overrider(method):
assert(method.__name__ in dir(interface_class))
return method
return overrider
class MySuperInterface(object):
def my_method(self):
print('hello world!')
apiVersion: v1
kind: Service
metadata:
name: mysql
spec:
ports:
- port: 3306
selector:
app: mysql
clusterIP: None
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-back
template:
<?xml version="1.0" encoding="utf-8"?>
<!-- This file is used in azure-pipelines.yml -->
<configuration>
<packageSources>
<clear/>
<add key="local" value="NugetPackage" />
</packageSources>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<!-- This file is used in azure-pipelines.yml -->
<configuration>
<packageSources>
<clear/>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>