Skip to content

Instantly share code, notes, and snippets.

View sentiasa's full-sized avatar
👊
Focused

sentiasa

👊
Focused
View GitHub Profile
@JustinByrne
JustinByrne / laravel-ci-cd-workflow.yml
Last active May 9, 2024 14:34
Github Action to test laravel and then compile the assets to a production branch
name: CI/CD workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
testing:
@calebporzio
calebporzio / error_blade_directive.php
Created March 28, 2019 20:34
A little Blade directive to make working with validation errors a bit nicer.
<?php
// Usage:
// Before
@if ($errors->has('email'))
<span>{{ $errors->first('email') }}</span>
@endif
// After:
@samolabams
samolabams / TransformData.php
Created June 14, 2018 17:43
A laravel middleware that can transform request data
<?php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformData
{
/**
@seco
seco / aws-afterfx-video.md
Created September 21, 2017 01:50
Setting up After Effects on AWS with Windows Server 2012

Setting up After Effects on AWS with Windows Server 2012

Hold on to your pants. This is a bit nuts.

Generating an Adobe After Effects installer:

  • Sign in to our Adobe Team account, go to 'Manage Team', download CCPLauncher.exe for windows.
  • This can be used to create a promptless installer for After FX.
  • Boot up a windows VM, preferably Windows 7 or newer.
  • Copy the CCPLauncher.exe to the VM's Desktop
  • Run the program. Follow the prompts in a windows box to generate the installer package.
@mchirico
mchirico / twotableviewsInOneView.swift
Last active June 5, 2023 08:47
Creating multiple tableViews in one ViewController...this just starts out as a view controller
//
// ViewController.swift
// Delete
//
// Created by Mike Chirico on 10/21/15.
// Copyright © 2015 Mike Chirico. All rights reserved.
//
import UIKit
@gre
gre / easing.js
Last active May 17, 2024 03:33
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {