Skip to content

Instantly share code, notes, and snippets.

View shahidkarimi's full-sized avatar

Shahid Karimi shahidkarimi

View GitHub Profile
@shahidkarimi
shahidkarimi / BookRequest.php
Created November 24, 2020 10:00
Laravel Request validation rules from PUT and POST
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class BookRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
@shahidkarimi
shahidkarimi / operations.erl
Created January 10, 2020 06:42
Asynchronously hit thousands of HTTP endpoints within few seconds.
-module(operations).
-export([start/0]).
start() ->
Token = "BNyG63qWtQc7n6o1yMc5BfpgnupN2L48NkrdwFU5",
BasUrl = "http://mayapp.com/api",
spawn(fun() -> runop("curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer "++ Token ++"' '"++ BasUrl ++"/endpoint-1'") end),
spawn(fun() -> runop("curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer "++ Token ++"' '"++ BasUrl ++"/endpoint-2'") end),
spawn(fun() -> runop("curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer "++ Token ++"' '"++ BasUrl ++"/endpoint-3'") end),
<?php
class Business extends PgModel
{
// your stuff
}

Color Blast!

Use the Left and Right Arrows or A and D keys to move, Spacebar to shoot.

Game starts right away, looks best in full mode.

Hope you like it! ;)

A Pen by Nate Wiley on CodePen.

First try with Masonry for DINOFUN

Not really sure how to get all of this on my website, but I like the way it looks.

A Pen by Tony Owens on CodePen.

License.

Parallax Scroller

Testing some parallax scrolling with css animations. Images from wikipedia

A Pen by Rajanand on CodePen.

License.

Fully responsive chat layout

Modern responsive chat layout complete with a nice preview device simulator, feel free to leave feedback @munkkeli (Best viewed in Chrome)

A Pen by Tuomas Pöyry on CodePen.

License.