Skip to content

Instantly share code, notes, and snippets.

@tariqhamid
tariqhamid / Excel VBA - Send GET Request
Created June 16, 2016 18:11 — forked from remoharsono/Excel VBA - Send GET Request
Using Excel VBA to Send HTTP GET Request to Web Server
Private Sub cmdKirimGET_Click()
Dim strResult As String
Dim objHTTP As Object
Dim URL As String
Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
URL = "http://localhost/search.php"
objHTTP.Open "GET", URL, False
objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
objHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
objHTTP.send ("keyword=php")
@smartherd
smartherd / MainActivity.kt
Created May 25, 2022 08:10
Button, OutlinedButton, and TextButton in Jetpack Compose
package com.sriyank.composecomponents
import android.content.Context
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.*
import androidx.compose.material.*