Skip to content

Instantly share code, notes, and snippets.

View manoj-nandakumar's full-sized avatar

Manoj manoj-nandakumar

  • Dortmund, Germany
View GitHub Profile
@manoj-nandakumar
manoj-nandakumar / Ubuntu 14.04 setup multiple PHP
Last active November 25, 2016 10:29
The Gist describes how to install and use multiple versions of php with Apache in Ubuntu 14.04
**Step 1** – Install supporting necessary libraries:
sudo apt-get install libxml2 libxml2-dev libssl-dev
sudo apt-get install libcurl4-openssl-dev pkg-config
sudo apt-get install libcurl4-gnutls-dev libjpeg-dev libpng12-dev libmysqlcli
**Step 2** – Install the PHPFarm
We grab the PHPFarm from PHPFarm Git repo
@manoj-nandakumar
manoj-nandakumar / visualizer.py
Created April 2, 2016 19:15
Audio Visualizer Script for Blender
#Audio visualisation script
#
#Feel free to modify this script to suit your needs
import bpy
#Iterate through however many bars you want
for i in range(0, 64):
#Add a plane and set it's origin to one of its edges
bpy.ops.mesh.primitive_plane_add(location = ((i + (i*0.5)), 0, 0))
@manoj-nandakumar
manoj-nandakumar / autocomplete.php
Created February 21, 2016 09:00 — forked from imranismail/autocomplete.php
Laravel And JqueryUI's Autocomplete Plugin
//SearchController.php
public function autocomplete(){
$term = Input::get('term');
$results = array();
$queries = DB::table('users')
->where('first_name', 'LIKE', '%'.$term.'%')
->orWhere('last_name', 'LIKE', '%'.$term.'%')
->take(5)->get();
@manoj-nandakumar
manoj-nandakumar / gist:11beb90916dfbdc6af7a
Created February 20, 2016 09:35
Laravel 5.2 And JqueryUI's Autocomplete Plugin
//SearchController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Input;