Skip to content

Instantly share code, notes, and snippets.

View Lotuashvili's full-sized avatar
🏎️
💨

Levan Lotuashvili Lotuashvili

🏎️
💨
View GitHub Profile
@georgechaduneli
georgechaduneli / laravel-lc.xml
Last active September 17, 2019 16:42
PHPStorm Code style
<code_scheme name="Laravel LC" version="173">
<HTMLCodeStyleSettings>
<option name="HTML_ATTRIBUTE_WRAP" value="4" />
<option name="HTML_ALIGN_TEXT" value="true" />
</HTMLCodeStyleSettings>
<JSCodeStyleSettings version="0">
<option name="ALIGN_OBJECT_PROPERTIES" value="2" />
<option name="REFORMAT_C_STYLE_COMMENTS" value="true" />
<option name="USE_CHAINED_CALLS_GROUP_INDENTS" value="true" />
</JSCodeStyleSettings>
@simonhamp
simonhamp / AppServiceProvider.php
Last active May 8, 2024 17:47
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@jbanety
jbanety / build_pcntl.sh
Last active February 6, 2024 02:50
(Updated) Build PCNTL ext for MAMP PHP 7.4.2
#!/bin/bash
PHP_VERSION=7.4.2
# Command lines tools
xcode-select --install
# Install dependencies
brew install wget autoconf openssl lzlib curl imap-uw readline postgresql gettext libxslt libiconv bison pkg-config krb5 bzip2 openldap tidy-html5
# Dirs
@MishoG
MishoG / quadratic.py
Last active August 29, 2015 14:10
კვადრატული განტოლების ამოხსნა / solving quadratic equation
import math
import os
import sys
def cls():
os.system(['clear','cls'][os.name == 'nt'])
def quadratic():
a = int(input('enter a: '))
b = int(input('enter b: '))
@Stichoza
Stichoza / DeployController.php
Last active November 3, 2017 13:52
Laravel 4.2 Push-to-Deploy controller for GitHub webhooks
<?php
/**
* Deployment controller
*
* @author Stichoza <me@stichoza.com>
*/
class DeployController extends BaseController
{
@mirisuzanne
mirisuzanne / keyframes-sass-output.css
Created January 13, 2012 17:37
A Keyframes Mixin (Sass only)
@-webkit-keyframes bgcolor { 0% { background-color: #ffccf2; }
50% { background-color: #ccffcc; }
100% { background-color: #ccffff; } }
@-moz-keyframes bgcolor { 0% { background-color: #ffccf2; }
50% { background-color: #ccffcc; }
100% { background-color: #ccffff; } }
@-ms-keyframes bgcolor { 0% { background-color: #ffccf2; }
50% { background-color: #ccffcc; }