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
///DEVERLOP BY MISTERNAY | |
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
Serial.println(); | |
Serial.println("Good Morning"); | |
delay(1000); | |
Serial.println("Good Night"); |
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
//////Deverloper by MisterNay//////// | |
#include <arduino.h> | |
#include "DataToMaker.h" | |
#include <ESP8266WiFi.h> | |
const char* myKey = "--------------";//WebHooksKey | |
DataToMaker event(myKey, "AllInOne");//key,event | |
void setup() { |
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
/** | |
* Created by zerosx on 18/11/2560. | |
*/ | |
public class UserModel { | |
private String name; | |
private int age; | |
public String getName() { | |
return name; | |
} |
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
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); |
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
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 ไป |
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
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) |
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
/* | |
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 |
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
- (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); |
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
#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; |
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
- (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) |