Skip to content

Instantly share code, notes, and snippets.

View Lotuashvili's full-sized avatar
🏎️
💨

Levan Lotuashvili Lotuashvili

🏎️
💨
View GitHub Profile
@simonhamp
simonhamp / AppServiceProvider.php
Last active May 20, 2025 18:33
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 <[email protected]>
*/
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; }