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
var url = 'https://rdws.rd.go.th/serviceRD3/vatserviceRD3.asmx?wsdl'; | |
console.log("RD WebService Test\n", url) | |
var request = require('request'); | |
var fs = require('fs'); | |
var specialRequest = request.defaults({ | |
agentOptions: { | |
ca: fs.readFileSync('./adhq1.cer') //path of CA cert file | |
} |
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
from requests import Session | |
import zeep | |
from zeep import Client | |
from zeep.transports import Transport | |
import urllib3 | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
session = Session() | |
session.verify = 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
import json | |
import dialogflow_v2 as dialogflow | |
def detect_intent_texts(project_id, session_id, texts, language_code,verbose=False): | |
"""Returns the result of detect intent with texts as inputs. | |
Using the same `session_id` between requests allows continuation | |
of the conversaion.""" | |
session_client = dialogflow.SessionsClient() |
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 firebase_admin | |
from firebase_admin import ( | |
credentials, db, storage | |
) | |
from google.cloud.storage import Blob | |
if __name__ == '__main__': | |
service_account_json_path = '../../src/service_account.json' | |
cred = credentials.Certificate(service_account_json_path) |
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
'use strict'; | |
angular.module('car2App') | |
.controller('FileUploadCtrl', ['$scope', '$resource', 'Upload', '$timeout', function ($scope, $resource, Upload, $timeout) { | |
$scope.cropper = {}; | |
$scope.cropper.sourceImage = null; | |
$scope.cropper.croppedImage = null; | |
$scope.bounds = {}; | |
$scope.bounds.left = 0; | |
$scope.bounds.right = 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
package edu.au.hr; | |
public class Employee { | |
protected String id; | |
protected String name; | |
protected String dob; | |
static public String org = "AU"; | |
public Employee(String id, String name, String dob) { | |
this.id = id; |
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
package u5715111.adt.queue; | |
import java.util.Arrays; | |
public class Queue { | |
int head; | |
int tail; | |
int data[]; | |
public Queue(int size) { |
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
package edu.au.scitech.sc2101; | |
public class Tree<T> { | |
Node<T> root; | |
public Tree() { | |
root = null; | |
} | |
public boolean hasRoom(Node<T> n) { |
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
package edu.au.scitech.sc2101; | |
import static org.junit.Assert.*; | |
import org.junit.Test; | |
public class DoublyLinkedListTest { | |
@Test | |
public void test01() { |
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
package edu.au.scitech.sc2101; | |
import edu.au.scitech.sc2101.IntegerLinkedList.Node; | |
public class Queue extends IntegerLinkedList { | |
Node tail; | |
@Override | |
public void add(int newValue) { |
NewerOlder