Skip to content

Instantly share code, notes, and snippets.

View roniemicro's full-sized avatar

Roni Saha roniemicro

  • eMicroGraph Business Solutions & Right Brain Solution
  • Bangladesh
View GitHub Profile
<?php
include "vendor/autoload.php";
$ID = 12345;
$str = <<<EOD
This is the body
Name : Roni
ID : {$ID}
@roniemicro
roniemicro / git-update.sh
Created September 3, 2014 03:51 — forked from ronisaha/git-update.sh
Update eMicrograph/docudex code if your system does not ask for git password
#!/bin/bash
REPO_NAME="eMicrograph/docudex"
echo -n "Enter github Username: "
read USER_NAME
echo -n "Enter Password for ${USER_NAME}@github.com :"
read -s PASSWORD
echo
CREATE TABLE locations (
geo_code text PRIMARY KEY,
district_id text,
district_name text,
division_id text,
division_name text,
pourashava_id text,
pourashava_name text,
union_id text,
union_name text,
@roniemicro
roniemicro / Location.java
Created August 6, 2014 10:47
Location validator
package org.sharedhealth.mci.validation.constraints;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.sharedhealth.mci.validation.constraintvalidator.LocationValidator;
@roniemicro
roniemicro / Full Create API Fields.json
Created July 16, 2014 06:35
Full Create API Fields
{
"nid" : 1234567890163,
"uid" : 11111111111,
"first_name" : "Mondal",
"middle_name" : "Ali",
"last_name" : "Hosssain",
"full_name_bangla" : " হোসেন মন্ডল",
"fathers_name_bangla" : "এ বি এম আখতার হোসেন মন্ডল",
"fathers_first_name" : "Akhtar",
"fathers_middle_name" : "Hossaine",
@roniemicro
roniemicro / 0_reuse_code.js
Created July 15, 2014 02:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@roniemicro
roniemicro / MCI APIs (19 June 2014)
Last active August 29, 2015 14:02
MCI APIs (19 June 2014)
Create API: /patient (POST)
Input JSON (all fields):
{
"nid" : 123456,
"first_name" : "Roni",
"middle_name" : "Kumar",
"last_name" : "qwe",
"date_of_birth" : "1983-09-21",
"gender" : "1",
@roniemicro
roniemicro / factout100.txt
Created May 22, 2013 02:36
Sample Output for just fact to range 100
37 -> 4
41 -> 2
49 -> 4
51 -> 2
38 -> 2
87 -> 4
23 -> 4
54 -> 8
74 -> 2
78 -> 4
@roniemicro
roniemicro / factout1000.txt
Created May 22, 2013 02:35
Sample Output for just fact to range 1000
709 -> 2
230 -> 4
709 -> 2
989 -> 4
304 -> 4
59 -> 6
318 -> 8
914 -> 4
932 -> 4
622 -> 8
@roniemicro
roniemicro / factout.txt
Created May 22, 2013 02:27
Sample Output for just fact to range 10000
5764 -> 8
9256 -> 6
5481 -> 2
1149 -> 4
6616 -> 8
405 -> 6
4451 -> 6
1839 -> 4
2691 -> 2
9936 -> 2