Skip to content

Instantly share code, notes, and snippets.

View SerafimArts's full-sized avatar
wazzup?

Kirill Nesmeyanov SerafimArts

wazzup?
View GitHub Profile
{
"dependencies": {
// Babel (ES6, ES7, Flow, etc...)
"babel-core": "5.8.*",
"gulp-babel": "5.2.*",
// CoffeeScript
"gulp-coffee": "^2.3.1",
// Sass and Scss
<?php
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Support\Str;
/**
* Class Message
*/
class Message implements Renderable, \Countable, \IteratorAggregate
{
/**
@SerafimArts
SerafimArts / EnvironmentInstaller.php
Last active October 26, 2016 12:18
Laravel environment installer
<?php
/**
* Put this file to "app/Console/EnvironmentInstaller.php"
*/
namespace App\Console;
use Dotenv\Dotenv;
use Composer\Script\Event;
use Illuminate\Support\Str;
use Composer\IO\IOInterface;
@SerafimArts
SerafimArts / 1_source.php
Last active November 21, 2016 12:38
Yay! Example
<?php
@Some(a = 23, b = 42)
class TestClass
{
public function test($a)
{
}
}
<?php declare(strict_types = 1);
/**
* This file is part of MessageComponent package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Serafim\MessageComponent;
use Illuminate\Contracts\Support\Renderable;
<?php
/**
* This file is part of laravel.su package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
@SerafimArts
SerafimArts / AppKernel.php
Last active April 24, 2017 09:32
Laravel Container for Symfony
<?php
/**
* Add this code into app/AppKernel.php
*/
class AppKernel extends Kernel
{
// ....
/**
* @return string
*/
@SerafimArts
SerafimArts / example.graphqls
Created July 21, 2017 15:54
GraphQL IDL reader based on Yay PHP
type Story implements Test {
id: ID! @test(some: "any")
text: String!
isPublished: Boolean
author: Author!
comments: [Comment!]!
}
type Author {
id: ID!
@SerafimArts
SerafimArts / index.graphqls
Created August 18, 2017 14:08
Railgun example app
#
# file ~/schema/index.graphqls
#
schema {
query: Query
}
type Query {
user: User
@SerafimArts
SerafimArts / grid-system.scss
Last active October 10, 2017 03:24
Simple SASS grid system
/**
* Grid System Core
* Licensed under GPL and MIT.
*
* @version 1.0
* @author Nesmeyanov Kirill aka Serafim
*/
/**