This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |