Skip to content

Instantly share code, notes, and snippets.

@zelenko
zelenko / cgo1.go
Created August 11, 2018 02:07 — forked from tejainece/cgo1.go
Examples of calling C code from Golang
package main
//#include<stdio.h>
//void inC() {
// printf("I am in C code now!\n");
//}
import "C"
import "fmt"
func main() {
@zelenko
zelenko / Things I care about, areas I specialize in.md
Created January 25, 2018 19:22
Things I care about, and/or areas I specialize in

Internet Services, Platforms, Software, Information Technology, Data and Analytics, Privacy and Security, Content and Publishing, Mobile, Apps, Mobile, Commerce and Shopping, Community and Lifestyle, Cloud Computing, Database, Open Source, PaaS, Design, Education.

@zelenko
zelenko / How to list all downloaded Go packages?.md
Last active January 17, 2018 16:27
How to list all downloaded Go packages?

To see a list of downloaded Go packages use this command: go list all

To see Go environmental variables the command is: go env

@zelenko
zelenko / How to Handle Errors in Go?.md
Last active March 6, 2018 22:01
How to Handle Errors in Go?

Handle errors with the error function

package main

import (
	"fmt"
	"errors"
)

func main() {
@zelenko
zelenko / Where to find me.md
Last active July 24, 2018 01:53
Where to find me:
@zelenko
zelenko / How to center content vertically and horizontally?.md
Last active December 13, 2017 20:02
How to center content vertically and horizontally?

Here is one simple way to center content on a HTML page. This method is using the CSS text-align and vertical-align properties.

<!DOCTYPE html>
<html>
    <head>
        <title>Center V2</title>

        <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">

        <style>
@zelenko
zelenko / blog.md
Last active December 13, 2017 16:54
Pick Basic Syntax Highlighting

Overview

Pick is the programing language used with UniVerse database. But PICK has many flavors. The one PICK flavor used with Universe is UniBASIC. More detailed info on it is available in the Rocket UniVerse BASIC Commands Reference. UniVerse is the database that powers Eclipse ERP.


Features

  • MATPARSE
  • LOCATE
  • For Loop
<!doctype html>
<html>
<head>
<title>Center of Page</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
body {
@zelenko
zelenko / How to list all files on C drive?.md
Last active December 13, 2017 19:53
How to list all files on C drive?

On Widows this batch file will export to text file a full list of files and directories on the C drive.

@ECHO OFF

SET dd=%DATE:~7,2%
SET mm=%DATE:~4,2%
SET yyyy=%DATE:~10,4%
SET hh=%TIME:~0,2%
IF "%hh:~0,1%"==" " SET hh=0%hh:~1,1%