Skip to content

Instantly share code, notes, and snippets.

Avatar

zelenko

View GitHub Profile
@zelenko
zelenko / cgo1.go
Created Aug 11, 2018 — forked from tejainece/cgo1.go
Examples of calling C code from Golang
View cgo1.go
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 Jan 25, 2018
Things I care about, and/or areas I specialize in
View Things I care about, areas I specialize in.md

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 Jan 17, 2018
How to list all downloaded Go packages?
View How to list all downloaded Go packages?.md

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 Mar 6, 2018
How to Handle Errors in Go?
View How to Handle Errors in Go?.md

Handle errors with the error function

package main

import (
	"fmt"
	"errors"
)

func main() {
@zelenko
zelenko / Where to find me.md
Last active Jul 24, 2018
Where to find me:
View Where to find me.md
@zelenko
zelenko / How to center content vertically and horizontally?.md
Last active Dec 13, 2017
How to center content vertically and horizontally?
View How to center content vertically and horizontally?.md

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 Dec 13, 2017
Pick Basic Syntax Highlighting
View blog.md

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
View center-of-page.html
<!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 Dec 13, 2017
How to list all files on C drive?
View How to list all files on C drive?.md

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%
You can’t perform that action at this time.