Skip to content

Instantly share code, notes, and snippets.

View rajgit2012's full-sized avatar

Raj Masud Forhad rajgit2012

View GitHub Profile
{
"results": [
{
"phone": "+4476XXXXX345",
"name": "Jim Smith"
},
{
"phone": "+2345XXXX66",
"name": "Kelly Anderson"
},
@rajgit2012
rajgit2012 / Multiple database integration in CodeIgniter
Created December 3, 2015 01:29
Working with multiple database connections in Codeigniter
Connecting to Multiple Databases in the same Codeigniter framework is easy. To use multiple database connections you have to create multiple Configurations Arrays in database.php file.
So you’ll need to set up your database.php file under config folder as below:
$active_group = ‘default’;
$active_record = TRUE;
// First database configuration
$db[‘default’][‘hostname’] = ‘localhost’;
@rajgit2012
rajgit2012 / Import external projects into Android Studio
Last active December 3, 2015 01:28
Import external project or library using Gradle in Android Studio
To import the external project or library in Android Studio using Gradle, there is one easy method that can save your time.
Steps to do this:
To import the project, just create a folder named, lets say “libraries” folder and then paste the external project or library into this folder.
Then go to Android Studio and on the root of your project directory create/modify the settings.gradle file. Then refer the project as
include ‘SampleApp’, ‘:libraries:SampleExternalLibrary’.
Then edit your main app’s build.gradle to add this as followed:
dependencies {
//...