Posts

Showing posts from January, 2021

jQuery Data Table with Static JSON file

Image
  Download

jQuery Data Table with Static HTML Table

Image
  Download

How to make GUI with Red lang?

Image
 

Installing Red console on Windows

Image
Download Red here https://www.red-lang.org/p/download.html  

How to use pointer to function in C program?

Image
  #include<stdio.h> int add(int x, int y){ return (x+y); } int sub(int x, int y){ return (x-y); } void main(){ int (*func)(int, int); int x = 5, y = 6, z; func = &add; z = (*func)(x, y); printf("x = %d, y = %d, z = %d\n", x, y, z); func = &sub; z = (*func)(x, y); printf("x = %d, y = %d, z = %d\n", x, y, z); } Download

How to make HTTP Post request with Go Lang?

Image
  package main import "net/http" import "io/ioutil" import "net/url" func main(){ data := url.Values{} data.Set("name", "value") data.Set("x", "3") data.Set("y", "4") link := "https://unconcealing-gage.000webhostapp.com/add.php" println("connecting ..") println(link) resp, err := http.PostForm(link, data) if nil != err { panic(err) return } defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) if nil != err { panic(err) return } println(string(body)) } Download

How to make HTTP Post request with cURL?

Image