Skip to content

Instantly share code, notes, and snippets.

Sohan Chowdhury SohanChy

Block or report user

Report or block SohanChy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View secret.json
"request_id": "b48d8212-95eb-dd19-91f3-fd31b93fe3f5",
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": {
"data": {
"password": "123456",
"username": "postgres"
SohanChy / logging.php
Created May 12, 2019
Configuring Laravel for JSON Logging Using Monolog (For Kibana)
View logging.php
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
'single' => [
'driver' => 'monolog',
'path' => storage_path('logs/laravel.log'),
SohanChy / api_doc_gen.html
Last active Feb 11, 2019
Api doc generator for TH wiki format
View api_doc_gen.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Api Doc Gen</title>
<link rel="stylesheet" href="">
<script defer src=""></script>
SohanChy / form.html
Last active Feb 6, 2019
Jquery Frontend Password Strength
View form.html
<!-- Assumes that your project uses bootstrap 3 & jquery -->
<!-- Add this div for displaying the strength/suggestions. -->
<div id="passwordStrengthIndicator">
View ExampleController.php
namespace App\Http\Controllers\Api;
use App\Helpers\JsonRequest;
use App\Helpers\JsonReturn;
use App\Http\Controllers\Controller;
use App\Models\Reading;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Validation\Rule;
SohanChy /
Last active Nov 8, 2018
wrapper for requests module for at-bdd api testing
from config.config import ConfigHolder
import requests
from jsonschema import validate
def get_base_url(api_name):
return ConfigHolder.get_configs(api_name)["DOMAIN"]
def get(endpoint,headers,params = None,api_name = "CORE"):
r = requests.get(get_base_url(api_name) + endpoint, headers = headers, params = params)
SohanChy / bazier.cpp
Created Apr 15, 2018
bohut koshter foshol.
View bazier.cpp
#include <stdio.h>
#include <GL/gl.h>
#include <GL/glut.h>
#include <math.h>
#include <iostream>
long long C(int n, int r) {
if(r > n / 2) r = n - r; // because C(n, r) == C(n, n - r)
View graphics_cpp.cpp
#include <GL/gl.h>
#include <GL/glut.h>
#include <stdio.h>
#include <iostream>
#include <cstdlib>
float camPosX = 5;
float camPosy = 13.0f;
SohanChy /
Last active Apr 7, 2018
Transfer Learning
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
Created on Sat Aug 26 20:40:38 2017
@author: dhaval
Updated to KERAS 2 API on Sat Apr 7 9:53:00 2018
@contrib: sohanchy
View solarsystem.cpp
#include <iostream>
#include <stdlib.h>
#include <GL/glut.h>
using namespace std;
You can’t perform that action at this time.