Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block gangachris

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

Keybase proof

I hereby claim:

  • I am gangachris on github.
  • I am ganga ( on keybase.
  • I have a public key ASCzHpSV-RbN63mksj5o3c6wcD2h6K4N2aOr5IW4KMkligo

To claim this, I am signing this object:


Keybase proof

I hereby claim:

  • I am gangachris on github.
  • I am ganga ( on keybase.
  • I have a public key whose fingerprint is B36F FABA 3B58 5076 13EA DAA5 255C 5FDB BF1F 4395

To claim this, I am signing this object:

View scan.go
f, err := os.Open("salary.txt")
if err != nil {
defer f.Close()
var xs []float64
scan := bufio.NewScanner(f)
for scan.Scan() {
var v float64
gangachris / car_exchange.sol
Last active May 10, 2018
Solution to Introduction to Solidity Scenario Example
View car_exchange.sol
pragma solidity ^0.4.20;
contract Cars {
// we declare a custom type car
struct Car {
bytes32 make;
uint year;
// we create a map that takes ethereum address and maps them to a Cars array
gangachris / docker-compose.yaml
Created Feb 24, 2018
basic network hyperledger fabric docker-compose file
View docker-compose.yaml
version: '2'
image: hyperledger/fabric-ca
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
gangachris / handshake.js
Created Mar 7, 2017
Given x handshakes, get the number of guests in a meeting, and assuming each guest made a handshake to each other guest once. Get the number of guests. Common aptitude problem
View handshake.js
// After studying the problem, you'll see an arithemetic progression like pattern
// Using the sum of arithmetic progression could easily work too.
// But on further inspection, it's a simple consectuive numbers problem.
function getConsecutiveDevisors(num) {
let lowerDevisor = Math.floor(Math.sqrt(num))
let higherDevisor = lowerDevisor + 1;
if (lowerDevisor * higherDevisor === num) {
return [lowerDevisor, lowerDevisor + 1]
gangachris / routes.php
Created Jul 12, 2016
Same Route Defining multiple controllers
View routes.php
Route::group(['middleware' => ['web', 'auth','adminMiddleware']], function () {
Route::get('/panel/home', 'UserAdminController@showAdminHome');
Route::get('/panel/home', 'UserRegionController@showAdminRegionHome');
Route::get('/panel/home', 'UserPlaceController@showAdminPlaceHome');
View .env
View docker-compose.yml
version: '2'
build: .
- "8000:8000"
- .:/opt/app
View Dockerfile
FROM php:7
# Work Dir
WORKDIR /opt/app
ADD . /opt/app
# Install Dependencies
RUN apt-get update && apt-get install -y \
libpq-dev \
&& docker-php-ext-install pdo_pgsql
You can’t perform that action at this time.