Skip to content

Instantly share code, notes, and snippets.

View hygull's full-sized avatar
😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.

Rishikesh Agrawani hygull

😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.
View GitHub Profile
@hygull
hygull / Splitting a string into list of words.go
Last active December 26, 2016 02:23
Splitting a string into list of words created by hygull - https://repl.it/EmUM/10
/*
Date of creation : 10/12/2016.
Aim of program : To use Fields() to split the string into a list words.
Coded by : Rishikesh Agrawani.
*/
package main
import (
"fmt"
"strings"
@hygull
hygull / To display a table from 1 to 10 in tabular form.go
Created December 10, 2016 01:00
To display a table from 1 to 10 in tabular form created by hygull - https://repl.it/EmVN/4
/*
Date of creation : 10/12/2016.
Aim of program : To display a table from 1 to 10.
Coded by : Rishikesh Agrawani.
*/
package main
import "fmt"
func main() {
//In Go i++ is a statement not an expression like in C, so we can't use it in any expression or function call argument
@hygull
hygull / Prime numbers, displaying primes(1-100) in tabular form.go
Created December 10, 2016 01:52
Prime numbers, displaying primes(1-100) in tabular form created by hygull - https://repl.it/EmWQ/10
/*
Date of creation : 10/12/2016.
Aim of program : To display primes(between 1-100) in tabular form.
Coded by : Rishikesh Agrawani.
*/
package main
import "fmt"
func main() {
//We know 1 is not prime but here our intention is tabluar form so that is why I am executing for from 1 to onwards.
@hygull
hygull / Increment & decrement operators (and their alternatives).go
Created December 10, 2016 02:29
Increment & decrement operators (and their alternatives) created by hygull - https://repl.it/EmXC/5
/*
{
"created_at" : "Sat Dec 10 07:27:03 IST 2016",
"aim_of_program" : "Using increment & decrement operators(and their alternatives)"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
@hygull
hygull / Creating a new directory in cwd.go
Created December 10, 2016 16:56
Creating a new directory in cwd created by hygull - https://repl.it/Emak/4
/*
{
"cretaed_after" : "Sat Dec 10 12:01:49 IST 2016"
"aim_of_program" : "To create a new directory in current working directory (On Unix based system)"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
import "os"
@hygull
hygull / plateform independent directory creation.go
Created December 10, 2016 17:05
plateform independent directory creation created by hygull - https://repl.it/Emay/0
/*
{
"cretaed_after" : "Sat Dec 10 12:01:49 IST 2016"
"aim_of_program" : "To create a new directory in current working directory(On MAC/UNIX/Windows)"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
import (
@hygull
hygull / Structure and its use in 3 ways.go
Created December 10, 2016 17:08
Structure and its use in 3 ways created by hygull - https://repl.it/EmYJ/3
/*
{
"created_after" : "Sat Dec 10 07:27:03 IST 2016",
"focus_of_program" : "Structure and its usage in 3 diffferent ways"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
@hygull
hygull / Inserting nodes at beginning of the singly linked list.go
Created December 10, 2016 17:18
Inserting nodes at beginning of the singly linked list created by hygull - https://repl.it/EmbX/2
/*
{ "Date of creation" => "Sat Dec 10 20:28:10 IST 2016" }
{ "Aim of program" => "To create a singly linked list and traversing through it after inserting nodes at front" }
{ "Coded by" => "Rishikesh Agrawani" }
{ "Go version" => "1.7" }
*/
package main
import "fmt"
@hygull
hygull / Inserting nodes at the end of singly linked list.go
Created December 10, 2016 17:41
Inserting nodes at the end of singly linked list created by hygull - https://repl.it/EmcK/0
/*
{ "Date of creation" => "Sat Dec 10 23:08:10 IST 2016" }
{ "Aim of program" => "To create a singly linked list and traversing through it after inserting nodes at end" }
{ "Coded by" => "Rishikesh Agrawani" }
{ "Go version" => "1.7" }
*/
package main
import "fmt"
@hygull
hygull / To print X symbol using * characters.go
Created December 10, 2016 18:10
To print X symbol using * characters created by hygull - https://repl.it/EmdA/4
/*
{
"cretaed_after" : "Sat Dec 10 23:14:26 IST 2016"
"aim_of_program" : "To print X symbol using * characters"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
import "fmt"