Skip to content

Instantly share code, notes, and snippets.

View sh0umik's full-sized avatar
💭
Talk is Cheap, Show me the Code

Fahim Shariar Shoumik sh0umik

💭
Talk is Cheap, Show me the Code
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>UI</title>
<style type="text/css">
#loader {
min-height: 100vh;
display: flex;
package main
import (
"net"
"log"
"io"
"fmt"
)
func main() {
@sh0umik
sh0umik / marker_selector.dart
Created November 17, 2019 05:08 — forked from ephrimlawrence/marker_selector.dart
Programmatically selecting a marker on google map - flutter android
/// This example uses google_maps_flutter: ^0.5.21+8
/// For guide on how to setup google maps flutter, visit
/// https://pub.dev/packages/google_maps_flutter
/// Preview of this example is available at https://kutt.it/2VlCi9
import 'dart:async';
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
@sh0umik
sh0umik / bash.sh
Created November 27, 2017 07:36
Gitlab Runner for Docker In Docker
sudo gitlab-runner register -n \
--url https://gitlab.com/ \
--registration-token CI_RUNNER_TOKEN \
--executor docker \
--description "Docker Runner Vultr (Rancher)" \
--docker-image "docker:latest" \
--docker-volumes /var/run/docker.sock:/var/run/docker.sock
@sh0umik
sh0umik / .gitlab-ci.yml
Last active April 20, 2019 20:14
Gitlab CI for Golang and Docker in Docker
image: restra/golang-docker-gitlabci
variables:
DOCKER_REPO: registry.gitlab.com
MAIN_IMAGE_NAME: sh0umik/golang-gitlab-ci
services:
- docker:dind
stages:
@sh0umik
sh0umik / fhir-patient.json
Created October 8, 2017 04:40
Sample FHIR Patient Data
{
"resourceType": "Patient",
"gender": "male",
"birthDate": "1942-01-14",
"id": "3abaceca-6fdd-4735-bff3-6b4830c0dab4"
"identifier": [
{
"type": {
"coding": [
{
@sh0umik
sh0umik / json-example.json
Last active October 8, 2017 04:20
json-example
{
"firstName": "Frank",
"lastName": "Weigel",
"age": 25,
"address":
{
"streetAddress": "21 2nd Street",
"city": "MV",
"state": "CA",
"postalCode": "94040"
@sh0umik
sh0umik / interview-ques-01.go
Created August 30, 2017 03:44
Go Routine Behaviour Controlling using Channel
package main
// Problem :
// Create a go routine that will loop and sleep for 1 second. When it wakes up it will print out the time.
//The main routine will wait for 20 seconds and then sends a termination signal to the go routine.
import (
"time"
"fmt"
)
@sh0umik
sh0umik / Board.java
Created July 31, 2017 18:05
java-mistake
package gametry;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Faiaz
sendEmailTest(from:string, to:string, subject:string, text:string, html:string, inlines:Array<any>):Promise<any> {
var mailgunUrl = "https://api.mailgun.net/v3/" + this.domain + "/messages";
var mailgunApiKey = "api:key-e0b78e9e1c5e1c3135d3dfdf47ec2c60"
var headers = new Headers();
headers.append('Authorization', "Basic " + mailgunApiKey); // base64 encoding is missing
headers.append('Content-Type', "application/x-www-form-urlencoded");
//headers.append("enctype", "multipart/form-data");