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
@SohanChy
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
SohanChy / api_doc_gen.html
Last active Feb 11, 2019
Api doc generator for TH wiki format
View api_doc_gen.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Api Doc Gen</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
</head>
@SohanChy
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">
</div>
View ExampleController.php
<?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
SohanChy / api.py
Last active Nov 8, 2018
wrapper for requests module for at-bdd api testing
View api.py
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
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
// house.cc
#include <GL/gl.h>
#include <GL/glut.h>
#include <stdio.h>
#include <iostream>
#include <cstdlib>
float camPosX = 5;
float camPosy = 13.0f;
@SohanChy
SohanChy / transfer.py
Last active Apr 7, 2018
Transfer Learning
View transfer.py
#!/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/gl.h>
#include <GL/glut.h>
#include<math.h>
#include<cstring>
using namespace std;
View solarsystem.cpp
#include <iostream>
#include <stdlib.h>
#include<GL/gl.h>
#include <GL/glut.h>
#include<math.h>
#include<cstring>
using namespace std;
You can’t perform that action at this time.