Skip to content

Instantly share code, notes, and snippets.

View hanigamal's full-sized avatar
🎯
Focusing at office

Hani Gamal hanigamal

🎯
Focusing at office
View GitHub Profile
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Post;
class PostController extends Controller{
public function getBlogIndex() {
@rcubetrac
rcubetrac / rcabook-setup.sh
Created April 6, 2016 20:55
Roundcube LDAP Setup
#!/bin/bash
#------------configuration--------------------------------
# the url of the openldap server
server="ldap://localhost:389";
# the static config file of openldap
config="/etc/ldap/slapd.conf";
# the LDAP base suffix and admin rootdn
@btroncone
btroncone / rxjs_operators_by_example.md
Last active March 30, 2025 21:26
RxJS 5 Operators By Example
@aviaryan
aviaryan / zsh-on-windows.md
Last active February 9, 2024 03:22
Installing zsh and oh-my-zsh on Windows
  1. Install zsh from cygwin
  2. Install oh-my-zsh from https://github.com/robbyrussell/oh-my-zsh . Follow the manual instructions
  3. To make zsh default on ConEmu, create a task with C:\cygwin64\bin\mintty.exe /usr/bin/zsh - . Make it the defaut shell.
  4. To start a zsh shell on demand, add this batch script to your path or start menu or wherever.
start C:\cygwin64\bin\mintty.exe /usr/bin/zsh -
@Moccine
Moccine / gulpfile.js
Last active October 26, 2016 23:54
Laravel Gupfile
elixir(function(mix) {
mix.sass('app.scss');
});
/*copy all font */
elixir(function(mix) {
mix.copy('node_modules/bootstrap-sass/assets/fonts/bootstrap/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts/bootstrap')
.copy('public/fonts/bootstrap/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts')
.copy('bower_components/metro-bootstrap/dist/fonts/**/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts/metro-bootstrap')
.copy('public/fonts/metro-bootstrap/font-awesome/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts')
@extends('layouts.app')
@section('content')
@foreach($models as $model)
{{ $model->key }}
@endforeach
{!! Form::open((array('action' => 'ProfilesController@store'))) !!}
{
"name": "ttungbmt/cms",
"description": "CMS - Awesome site",
"type": "cms",
"require": {
},
"license": "MIT",
"authors": [
{
@ttungbmt
ttungbmt / cms_composer.json
Last active October 26, 2016 23:52
Laravel CMS
{
"name": "ttungbmt/cms",
"description": "CMS - Awesome site",
"type": "cms",
"require": {
},
"license": "MIT",
"authors": [
{
@rajikaimal
rajikaimal / laravel-blogController.php
Created December 25, 2015 16:30
Laravel controller
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Tweet;
@rajikaimal
rajikaimal / laravel-routes.php
Last active August 25, 2017 02:56
Laravel routes
//add extra extension to render pure html alongside with php
View::addExtension('html', 'php');
Route::get('/blog', function() {
return view('Blog');
});
//route for inserting
Route::post('/tweets/create', 'BlogController@create');
//route for deleting
Route::post('/tweets/delete', 'BlogController@delete');