Skip to content

Instantly share code, notes, and snippets.

@manishk3008
manishk3008 / .htaccess
Last active January 3, 2016 17:29
.htaccess file for routing
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [L]
@manishk3008
manishk3008 / mobile.user.create
Last active January 3, 2016 19:49
Showing laravel routing
@extends('mobile.main')
@section('content')
{{Form::open(array('action' => 'user.store'))}}
{{Form::close()}}
@stop
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@manishk3008
manishk3008 / Android Persistent Cookies Store
Last active December 29, 2020 09:17
CookieStore for dealing with persistent cookies in Android
//HOW TO USE
SiCookieStore2 siCookieStore = new SiCookieStore2(context);
CookieManager cookieManager = new CookieManager((CookieStore) siCookieStore, CookiePolicy.ACCEPT_ALL);
CookieHandler.setDefault(cookieManager);