Skip to content

Instantly share code, notes, and snippets.

View nikijiandani's full-sized avatar
🌐

Niki Jiandani nikijiandani

🌐
View GitHub Profile
@nikijiandani
nikijiandani / setup.sh
Created October 11, 2020 17:45 — forked from martinlaws/setup.sh
New Mac Setup Script
#!/bin/sh
start=`date +%s`
bold=$(tput bold)
normal=$(tput sgr0)
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
// Highcharts CheatSheet Part 1.
// Create interactive charts easily for your web projects.
// Download: http://www.highcharts.com/download
// More: http://api.highcharts.com/highcharts
// 1. Installation.
// Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks.
// <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
// <script src="https://code.highcharts.com/highcharts.js"></script>
{
code: 200,
status: "OK",
message: "Successfully retrieved all actions plans.",
datetime: "2020-02-10T15:25:51.032Z",
data: {
actions: [
{
entity_name: "Information Technology",
action_id: 1,
@nikijiandani
nikijiandani / portfolio_projects.json
Created November 4, 2019 02:44
Json data for my portfolio projects
{
"name": "Critter Sitter",
"description": "Critter Sitter is a full-stack application that connects users to pet sitters in their area. It is built with React on the front-end, talking to an API built with NodeJS and Express on the back-end.",
"project-link": "https://github.com/nikijiandani/critter-sitter-app",
"image-url": "https://github.com/nikijiandani/critter-sitter-app/raw/master/public/screenshots/landing_page_screenshot.png"
}

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

@nikijiandani
nikijiandani / README.md
Last active February 28, 2019 21:17
Added the Migrating to Docker section to the README.md file in the lh-toolkit-docs-devguide repo

Introduction

LibreHealth is an open source health technology platform, a community formed by individuals from different verticals of the health care IT system. Not every corner of this world is equipped with the best health services and LibreHealth aims at being that bridge connecting the challenged environments to the well equipped ones. It can act as a platform between users and health care professionals too where the users/individuals can directly rely on doctors/clinicians completely on a different side of the world. This system boasts a diverse community of doctors, academic professionals, software developers etc.

LibreHealth aims to unify the world under a single roof built with technology. In this new age of technology revolution, the accessibility to basic amenities is still a dream to some communities in under developed/developing countries, proper health care being one of them. As a community LibreHealth focuses and works for communities like these. It strives toward achieving this goal.

Migr

@nikijiandani
nikijiandani / librehealth_toolkit_installation.md
Last active February 27, 2019 17:58
Typo and grammar correction for the librehealth_toolkit_installation.md file

LibreHealth toolkit installation

The installation procedure first requires that the user has a MySQL installed in the system and a root password is to be provided which was set during the installation of MySQL. After opening the URL provided in the previous chapter and going through the next step after selecting the desired language, a screen as shown below appears.

Here I will describe the process to install Simple and Advanced types. The Simple type, as shown creates a demo database and is recommended when running in the local machines. The advanced gives more flexibility over selection of database url, name etc.

Simple

After selecting the simple option, the application asks for a root password to initiate database creation and update. After entering the root password, it also gives the admin id and password which is to be noted down by the user. On entering the root password, a content list giving the details about the database appears.