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
http://www.xtrabulk.com/business-ebooks/how-to-start-your-own-business-as-sms-service-provider
http://www.activexperts.com/sms-component/smpp-specifications/introduction/
http://www.activexperts.com/sms-component/howto/smpp-send/php/
@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 / Jquery validator overrides and defaults for materialize inputs
Created January 7, 2016 09:18
Jquery validator overrides and defaults to properly display against materialize inputs
CSS
label.invalid {
color: red;
font-size: 0.8rem;
left: 0;
position: relative;
top: -15px;
transform: none !important;
}
@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