Skip to content

Instantly share code, notes, and snippets.

View lanzay's full-sized avatar
🎯
Focusing

Lanzay lanzay

🎯
Focusing
View GitHub Profile
package main
import (
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
Fetch(url string) (body string, urls []string, err error)
@dannko
dannko / ZennoPoster POST-запрос
Created July 22, 2014 20:31
POST-запрос в ZennoPoster через C#
string str = project.Variables["keyword"].Value;
var resultHttpPost = ZennoPoster.HttpPost("https://lc-api.sdl.com/translate", str, "application/json", "", "utf-8", ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.HeaderAndBody, 30000, "", "", true, 5, new[] { "Authorization: LC apiKey=" });
return resultHttpPost;
@chrisgillis
chrisgillis / ssl_smtp_example.go
Created April 16, 2014 14:48
Golang SSL SMTP Example
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)