Skip to content

Instantly share code, notes, and snippets.

View inflex13's full-sized avatar
🎯
Focusing

Dinesh Pushparajah inflex13

🎯
Focusing
View GitHub Profile
import 'package:flutter/material.dart';
class GoogleMapsClonePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: <Widget>[
CustomGoogleMap(),
CustomHeader(),
@inflex13
inflex13 / laravel-supervisor.md
Created October 8, 2018 18:05 — forked from vrajroham/laravel-supervisor.md
Installing Supervisor on AWS Elastic Beanstalk manually.

Installing Supervisor on AWS Elastic Beanstalk manually.

This gist may help you to install supervisor Manually on AWS Beanstalk host. I was enable to install and configure referring supervisor docs. Here are the steps by which I was able to use supervisor on my project.

Note: I have performed this steps on Laravel project and my instance was Debian powered. You can change according to your requirement.


  • Check python with easy_install is installed
  • Install supervisor > $ easy_install supervisor
  • Create directory for supervisor workers > mkdir /etc/supervisor/conf.d/
@inflex13
inflex13 / RunScheduler.php
Created May 2, 2017 21:43 — forked from robbydooo/RunScheduler.php
Heroku Laravel Scheduler
<?php
/**
This Scheduler will run once every minute unlike the Heroku scheduler which only runs every 10 mintues.
To use this scheduler with Laravel 5.4+ add this file to /app/Console/Commands/RunScheduler.php
Register this file in app/Console/Kernel.php
let webpack = require('webpack');
let path = require('path');
module.exports = {
entry: {
app: './resources/assets/js/app.js',
vendor: ['vue', 'axios']
},
output: {
@inflex13
inflex13 / .Title
Created February 18, 2017 22:07 — forked from congjf/.Title
Using MongoDB in golang with mgo
Using MongoDB in golang with mgo
@inflex13
inflex13 / mongodb-3.4-view.js
Created February 18, 2017 20:02
Mongodb 3.4 create new view on a collection
db.createView( "view name", "collection name",[
{ $project: { _id: 0, name: 1, team : 1 } }
]);
@inflex13
inflex13 / mongodb-3.4-views-lookup.js
Created February 18, 2017 20:00
Mongoldb 3.4 Views with $looks
/*
Create a view called "peopleSector" on the
people collection
Join companies collection using "$lookup" and assign as
"$company" for to use with "$unwind"
*/
db.createView( "peopleSectors", "people", [
{
@inflex13
inflex13 / main.go
Created February 16, 2017 20:58 — forked from nmerouze/main.go
JSON-API with Go and MongoDB: Part 2
package main
import (
"encoding/json"
"log"
"net/http"
"reflect"
"time"
"github.com/gorilla/context"
@inflex13
inflex13 / main.go
Created February 16, 2017 20:58 — forked from nmerouze/main.go
JSON-API with Go and MongoDB: Part 1
package main
import (
"encoding/json"
"log"
"net/http"
"reflect"
"time"
"github.com/gorilla/context"
@inflex13
inflex13 / .eslintrc
Created February 16, 2017 20:56 — forked from nmerouze/.eslintrc
.eslintrc
{
"parser": "babel-eslint",
/*"plugins": ["react"],*/
"ecmaFeatures": {
/*"jsx": true,*/
"modules": true
},
"env": {
"browser": true,
"node": true,