Skip to content

Instantly share code, notes, and snippets.

View blpraveen's full-sized avatar

B L Praveen blpraveen

View GitHub Profile
@blpraveen
blpraveen / .block
Created November 6, 2023 13:08 — forked from adkdev/.block
D3 - Thailand Map
license: mit
@blpraveen
blpraveen / jupyter_kernel_list.md
Created December 28, 2022 15:54 — forked from chronitis/jupyter_kernel_list.md
Updated Jupyter Kernels page

What is a kernel?

The kernel lets you run code in a particular programming language using one of the Jupyter tools, such as the Notebook, Jupyterlab or nteract. Installing additional kernels will let you run code in more languages using your existing jupyter installation.

Technically, the kernel is an application which speaks the Jupyter Messaging Protocol, to receive code input from the frontend and respond with the results.

Which kernels do I have installed?

In the Notebook or JupyterLab, the list of available kernels will be shown when trying to create a new notebook.

@blpraveen
blpraveen / phpzmqinstall.sh
Created December 27, 2022 09:34 — forked from Kamisama666/phpzmqinstall.sh
Installation of ZeroMQ and php-zmq extension on Ubuntu 14.04. Must be run as root
#!/bin/bash
cd /tmp
apt-get update
apt install -y libtool pkg-config build-essential autoconf automake uuid-dev git wget
git clone git://github.com/jedisct1/libsodium.git
cd libsodium/
./autogen.sh
./configure && make check
make install
ldconfig
@blpraveen
blpraveen / spark-csv.ipynb
Created August 22, 2022 13:53 — forked from parente/spark-csv.ipynb
Use spark-csv from Jupyter Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blpraveen
blpraveen / decision_tree.py
Created August 17, 2022 15:21 — forked from BenjaminFraser/decision_tree.py
Python implementation of a Decision Tree using numpy.
class DecisionTree():
""" Form a basic decision tree """
def __init__(self, x, y, idxs=None, oob_idxs=None,
min_leaf=5, feat_proportion=1.0):
if idxs is None:
idxs = np.arange(len(y))
self.x = x
self.y = y
self.idxs = idxs
self.oob_idxs = oob_idxs
@blpraveen
blpraveen / activelink_codeigniter.md
Created March 9, 2022 10:43 — forked from sadanandkenganal/activelink_codeigniter.md
Add active class to menu in codeigniter.
@blpraveen
blpraveen / countries.json
Created November 19, 2021 03:09 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@blpraveen
blpraveen / index.md
Created May 29, 2021 17:00 — forked from safoorsafdar/index.md
Multiple Tenancy (with separate database) Migration Management (Laravel 5.*)

Multiple Tenancy (with separate database) Migration Management for Laravel 5.*

Problem

The existing system used migration mechanism to handle all of the database schema version handling using console command php artisan migrate. By default this migration mechanism allow version for single database. Which is not appropriate when you are dealing with multi-tenancy with separate database application, you might need to handle migration for all available tenants/customers available in your system, and you might also need a master database with separate migration and schema. Thats why, we need to modify default migration mechanism by overriding the migration console commands.

Solution

Laravel ship by default with couple of available useful commands which might help to utilize such mechanism, Following of the option can use for such problem:

@blpraveen
blpraveen / TypeScript
Created May 29, 2021 16:58
Live Streaming
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { LoginService, AzureService } from '../services'
import { User, LiveSession } from '../models'
import { SharedService } from "app/services/shared.service";
//declare var SimpleWebRTC;
declare var io;
declare var conference;
@Component({
@blpraveen
blpraveen / m2-install.md
Created May 15, 2021 04:30 — forked from viktorpetryk/m2-install.md
Magento 2 installation on Laragon (Windows 10)
  1. Create root directory for project:
mkdir magento2.test
  1. Cd to created directory:
cd magento2.test