Skip to content

Instantly share code, notes, and snippets.

View Ravaelles's full-sized avatar
🏠
Working remotely

Ravaelles

🏠
Working remotely
  • Fullstack Laravel developer
  • Poland
View GitHub Profile
@Ravaelles
Ravaelles / Ubuntu server setup script (PHP 5.6)
Last active April 6, 2020 12:13
PHP 5.6 + nginx + MongoDB driver for PHP
#!/bin/bash
######################################################
### README ###########################################
######################################################
###
### One-line server install script for Ubuntu.
### Installs Nginx + PHP5.6 + MongoDB for PHP driver.
###
### Removes previous Apache, PHP, nginx installations.
@tdukart
tdukart / kebabCase.js
Last active February 2, 2020 05:53
JavaScript Kebab Case function
/**
* Given a string, converts it to kebab case (lowercase, hyphen-separated). For example,
* "makeFoo" becomes "make-foo", and "a Multi Word string" becomes "a-multi-word-string".
*
* @param {string} string Your input string.
* @returns {string} Kebab-cased string.
*/
function kebabCase(string) {
var result = string;
@lukevers
lukevers / LaravelInterviewQuestions.md
Created October 23, 2015 15:23
Laravel Interview Questions

Laravel 5 Interview Questions

This is a compiled list of Laravel interview questions. If Laravel is an engineer's PHP framework of choice, they definitely have potential to be a good candidate, but a lot of new PHP engineers have been into Laravel too. The framework itself is very welcoming to newcomers, which makes it easy for beginners to feel that they know more than they really do.

General Questions

1. How long have you been using Laravel?

This question can help decide what level of questions to ask.

@Ravaelles
Ravaelles / pleaseWait.js
Last active September 27, 2022 05:54
Very easy javascript code to display page "Please wait" using bootstrap modal with nice progress bar.
/**
* Displays overlay with "Please wait" text. Based on bootstrap modal. Contains animated progress bar.
*/
function showPleaseWait() {
if (document.querySelector("#pleaseWaitDialog") == null) {
var modalLoading = '<div class="modal" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false" role="dialog">\
<div class="modal-dialog">\
<div class="modal-content">\
<div class="modal-header">\
<h4 class="modal-title">Please wait...</h4>\
@fimak
fimak / delegate.php
Created March 5, 2015 10:33
PHP Delegate pattern. Object instead of performing one of its stated tasks, delegates that task to an associated helper object. It helps us to inherit 2 methods from 2 different classes.
<?php
class A
{
public function aFunc()
{
echo __CLASS__;
}
}