Skip to content

Instantly share code, notes, and snippets.

@SrcFlux
SrcFlux / NamespaceHelper.php
Created October 2, 2015 11:43
Get the namespace of a class in Laravel
<?php
namespace App\Helpers;
class NamespaceHelper
{
/**
* Get the namespace of a class.
*
* @param string $className
@SrcFlux
SrcFlux / TableColumnHelper.php
Last active May 20, 2016 11:05
Table column helper for Laravel 5 and PHP 7
<?php
namespace App\Helpers;
use DB;
use Schema;
class TableColumnHelper
{
/**
@SrcFlux
SrcFlux / wpv10.reg
Created August 10, 2015 14:14
Windows Photo Viewer as default app in Windows 10
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]
".tif"="PhotoViewer.FileAssoc.Tiff"
".tiff"="PhotoViewer.FileAssoc.Tiff"
".bmp"="PhotoViewer.FileAssoc.Tiff"
".dib"="PhotoViewer.FileAssoc.Tiff"
".gif"="PhotoViewer.FileAssoc.Tiff"
".jfif"="PhotoViewer.FileAssoc.Tiff"
".jpe"="PhotoViewer.FileAssoc.Tiff"
@SrcFlux
SrcFlux / Create-Thumbnails.ps1
Created June 10, 2015 09:57
Create image thumbnails with Power Shell
Param (
[Parameter(Mandatory=$True)]
[string] $Type,
[Parameter(Mandatory=$True)]
[string] $Width,
[Parameter(Mandatory=$True)]
[string] $Height
)

Keybase proof

I hereby claim:

  • I am SrcFlux on github.
  • I am srcflux (https://keybase.io/srcflux) on keybase.
  • I have a public key whose fingerprint is C2F2 155B F505 B49F 6EB6 72F8 4A1C 27A6 6C88 0E91

To claim this, I am signing this object: