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
require('dotenv').config(); | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'); | |
autoprefixer = require('gulp-autoprefixer'), | |
gutil = require('gulp-util'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
sourcemaps = require('gulp-sourcemaps'), | |
imagemin = require('gulp-imagemin'), |
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
// Scope Interface | |
<?php | |
namespace App\Models\Scopes; | |
use Illuminate\Database\Eloquent\ScopeInterface; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Model; | |
class ByUserScope implements ScopeInterface |
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
// Private Routes | |
Route::group(['middleware' => 'auth' , 'prefix' => $prefix, 'namespace' => 'Modules\Screenshot\Http\Controllers'], function() | |
{ | |
Route::controllers([ | |
'/' => 'ScreenshotController', | |
]); | |
}); | |
// Public Routes | |
Route::group(['prefix' => $prefix, 'namespace' => 'Modules\Screenshot\Http\Controllers'], function() |
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
$(document).ready(function() | |
{ | |
// Set active page | |
$('a[href$="'+window.location.origin+window.location.pathname+'"]').parent().addClass('active'); | |
// push the state into the history with its content | |
history.pushState({ | |
"html": $('#content').html() | |
}, | |
'', |
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
server = require('http').createServer(); | |
io = require('socket.io')(server); | |
server.listen(7878, function() | |
{ | |
console.log('listening on '+ 7878); | |
}); | |
io.on('connection', function (socket) |
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
<div class="comment-area"> | |
<nav class="navbar"> | |
<div class="container-fluid"> | |
<div> | |
<ul class="nav navbar-nav"> | |
<li> | |
<p class="navbar-text"><span class="total_count"></span> Comments</p> | |
</li> | |
</ul> | |
<ul class="nav navbar-nav navbar-right"> |
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
<div data-id="{{ $comment->id }}" class="row comment-row"> | |
<div class="col-xs-1"> | |
<img class="pull-right img-responsive" src="{{ empty($comment->user->profile_img) === false ? $comment->user->profile_img : asset('/img/user.svg') }}"> | |
</div> | |
<div class="col-xs-11 reply-area"> | |
<div class="row"> | |
<span class="user-name"> | |
{{ $comment->user->first_name }} | |
{{ $comment->user->last_name }} | |
</span> |
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
#!/usr/bin/env bash | |
sudo -i; | |
apt-get update; | |
apt-get install --yes \ | |
git \ | |
bison \ | |
autoconf \ |
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
server { | |
listen 443 ssl; | |
ssl_certificate /etc/letsencrypt/live/helloworld.letsencrypt.org/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/helloworld.letsencrypt.org/privkey.pem; | |
ssl_trusted_certificate /etc/letsencrypt/live/helloworld.letsencrypt.org/fullchain.pem; | |
ssl_session_timeout 1d; | |
ssl_session_cache shared:SSL:50m; | |
# Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits |
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
sudo apt-get install pkg-config libssl-dev | |
sudo pecl install mongodb | |
echo set completion-ignore-case on | sudo tee -a /etc/inputrc | |
// BASH PROFILE | |
SSH_ENV=$HOME/.ssh/environment | |
# start the ssh-agent |
OlderNewer