Skip to content

Instantly share code, notes, and snippets.

View msonowal's full-sized avatar
I zapp it.

Manash Sonowal msonowal

I zapp it.
View GitHub Profile
@msonowal
msonowal / models.java
Last active August 29, 2015 14:27 — forked from leefsmp/models.java
Basic RESTful API from a Java servlet
package com.autodesk.adn.viewanddata;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.UUID;
import javax.servlet.ServletException;
@msonowal
msonowal / 01_Laravel 5 Simple ACL manager_Readme.md
Created November 2, 2015 10:51 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

@msonowal
msonowal / laravel.md
Created November 2, 2015 10:55 — forked from todiadiyatmo/laravel.md
Laravel
\DB::listen(function($sql, $bindings, $time) {
				    var_dump($sql);
				    var_dump($bindings);
				    var_dump($time);
				});
die();
@msonowal
msonowal / DbSchemadumpCommand.php
Created November 2, 2015 11:12 — forked from greglamb/DbSchemadumpCommand.php
Laravel DbSchemadumpCommand
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Process\Process;
class DbSchemadumpCommand extends Command {
@msonowal
msonowal / .htaccess
Created November 2, 2015 11:13 — forked from feload/.htaccess
Laravel .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
@if ($errors->any())
<p class="alert alert-danger">{{ trans('validation.form_not_valid') }}</p>
@endif
<div class="panel panel-default">
<div class="panel-heading">Référencement</div>
<div class="panel-body">
<div class="form-group @if ($errors->has('seo[title]')) has-error has-feedback @endif">
{!! Form::label('seo[title]', 'Titre', ['class' => 'control-label']) !!}
{!! Form::text('seo[title]', null, ['class' => 'form-control']) !!}
https://github.com/darylrowland/react-native-remote-push
https://facebook.github.io/react-native/docs/pushnotificationios.html
Pubnub can also do realtime chat, but it's a relatively expensive service.
The node.js server can be augmented with socket.io and function as a real-time chat server.
Amazon SNS https://aws.amazon.com/sns/
https://aws.amazon.com/sns/pricing/ (faily cheap and works for all platforms, plus we'd get tech support at the loft)
@msonowal
msonowal / Laravel\app\commands\ViewsCommand.php
Created February 8, 2016 11:08 — forked from cjonstrup/Laravel\app\commands\ViewsCommand.php
Clear Laravel 4.* app/storage/views artisan views:clear
<?php
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
class ViewsCommand extends Command {
/**
* The console command name.
*
* @var string
@msonowal
msonowal / Sublime Text 3 Build 3103 License Key - CRACK
Created September 16, 2016 07:23
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@msonowal
msonowal / The Technical Interview Cheat Sheet.md
Created January 24, 2017 07:25 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.