Skip to content

Instantly share code, notes, and snippets.

View misternay's full-sized avatar
🏠
Working from home

MisterNay misternay

🏠
Working from home
View GitHub Profile
///DEVERLOP BY MISTERNAY
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println();
Serial.println("Good Morning");
delay(1000);
Serial.println("Good Night");
//////Deverloper by MisterNay////////
#include <arduino.h>
#include "DataToMaker.h"
#include <ESP8266WiFi.h>
const char* myKey = "--------------";//WebHooksKey
DataToMaker event(myKey, "AllInOne");//key,event
void setup() {
/**
* Created by zerosx on 18/11/2560.
*/
public class UserModel {
private String name;
private int age;
public String getName() {
return name;
}
import com.fasterxml.jackson.databind.ObjectMapper;
import org.json.JSONObject;
import java.io.IOException;
public class TestMapper {
public static void main(String[]args) throws IOException {
String jsonInString = "{\"name\" : \"misternay\" , \"age\" : \"20\"}";
jsonObjectx(jsonInString);
jackSonTest(jsonInString);
import requests
url = "https://jsonplaceholder.typicode.com/users/1" #ประกาศ Url ที่เราต้องการ Request ไป
r = requests.get(url) #เป็นการ Request url โดยใช้ method Get
print(r.status_code) # Status Code หลังจาก Request จะบอกสถานะการ Request
print(r.headers) # แสดง Headers
print(r.json()) # แสดง ข้อมูลที่ Request ไป
import requests
url = "https://portal.speexx.com/login"
payload = {"userName":"----------","password":"----------"}
r = requests.post(url,payload)
print(r.status_code)
print(r.headers)
print(r.content)
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
- (void) keyboardDisplayDoesNotRequireUserAction {
Class class = NSClassFromString(@"WKContentView");
NSOperatingSystemVersion iOS_11_3_0 = (NSOperatingSystemVersion){11, 3, 0};
NSString *sysVer = [[UIDevice currentDevice] systemVersion];
float versionIos = [sysVer floatValue];
if (versionIos >= 12.0) {
SEL selector = sel_getUid("_elementDidFocus:userIsInteracting:blurPreviousNode:activityStateChanges:userObject:");
Method method = class_getInstanceMethod(class, selector);
IMP original = method_getImplementation(method);
#import "AppDelegate+FirebasePlugin.h"
#import "FirebasePlugin.h"
#import "Firebase.h"
#import <IBMMobileFirstPlatformFoundationHybrid/IBMMobileFirstPlatformFoundationHybrid.h>
#import <IBMMobileFirstPlatformFoundation/WLAnalytics.h>
#import <objc/runtime.h>
#import "IonicDeeplinkPlugin.h"
#if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
@import UserNotifications;
- (void)scanBarcode {
NSString* errorMessage = [self setUpCaptureSession];
if (errorMessage) {
[self barcodeScanFailed:errorMessage];
return;
}
self.viewController = [[CDVbcsViewController alloc] initWithProcessor: self alternateOverlay:self.alternateXib];
// here we set the orientation delegate to the MainViewController of the app (orientation controlled in the Project Settings)