Skip to content

Instantly share code, notes, and snippets.

Jason Chaney jchaney01

Block or report user

Report or block jchaney01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jchaney01 / UtilityController.php
Last active Dec 21, 2015
Angular.js Uploadify Directive with Image Editor and Laravel Backend
View UtilityController.php
class UtilityController extends BaseController {
public function upload()
$file = Input::file('Filedata');
$name = Date("now").'-'.$file->getClientOriginalName();
$uploadSuccess = $file->move(public_path().'/uploads',$name);
if( $uploadSuccess ) {
return Response::json(array(
jchaney01 / gist:6127665
Created Aug 1, 2013
Angular directives for scrolling to an element and to the bottom of the page. Just add to an element and clicking the element will do it.
View gist:6127665
app.directive('scrollTo', ['$document',function ($document) {
var body = $($document[0].body);
return function (scope, element, attributes) {
var target = angular.element(attributes.scrollTo);
setTimeout(function () {
element.bind('click touchstart', function(e) {
jchaney01 / perfectTableBorders.scss
Created Jul 25, 2013
Sass Mixin to produce even table borders. Table borders get doubled up when a border is simply applied to a table element. This will do it in isolate.
View perfectTableBorders.scss
@mixin perfectTableBorders($color, $width){
tr{&:last-child{border-bottom: $width solid $color;}
border-top: $width solid $color;
td{&:first-child{border-left: $width solid $color;}
border-right: $width solid $color;
jchaney01 / _mixins.scss
Last active Dec 6, 2017
SaaS Mixin for mobile-first responsive styling
View _mixins.scss
With Bootstrap 4 values:
@mixin breakpoint($point) {
@if $point == sm {
@media (min-width: 576px) { @content; }
@if $point == md {
@media (min-width: 768px) { @content; }
@else if $point == lg {
You can’t perform that action at this time.