This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Soberistas\Assets; | |
use Intervention\Image\Constraint; | |
use Intervention\Image\ImageManager; | |
// TODO: We might want to remove this. It was added to deal with large images. | |
ini_set('memory_limit', -1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Resize all png images in a given directory, using pngquant. | |
# Usage: | |
# bash crushPng.sh "path/to/files/" | |
# Check that a path has been provided from the cli. | |
if [ -z "$1" ]; then | |
echo "A path must be provided." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"name": "ReactValidation", | |
"version": "1.0.0", | |
"description": "Validates form elements.", | |
"repository": { | |
"type": "git", | |
"url": "[email protected]:Enijar/reactvalidation.git" | |
}, | |
"dependencies": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Parallax = function () { | |
/** | |
* @type {Parallax} | |
*/ | |
var that = this; | |
/** | |
* Holds all of the elements and their callback | |
* functions inside objects. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('app', ['ngRoute']); | |
/** | |
* Define all routes and any global Angular scopes. | |
* | |
* Note: I am using the templateUrl property to refer to | |
* a URI for Laravel to pick up and serve, instead of | |
* loading a HTML file. This is a cleaner way to use | |
* templates with Angular and Laravel | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!function_exists('http_response_code')) { | |
function http_response_code($code = NULL) { | |
if ($code !== NULL) { | |
switch ($code) { | |
case 100: $text = 'Continue'; break; | |
case 101: $text = 'Switching Protocols'; break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cross-browser supported OOP JS class with methods | |
*/ | |
// Create a class "Config". The self-invoking | |
// function avoids the pollution the global namespace | |
var Config = (function() { | |
// Construct | |
function Config() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery plugin boilerplate | |
* | |
* Inspiration: | |
* http://msdn.microsoft.com/en-us/scriptjunkie/ff608209 | |
* http://www.learningjquery.com/2007/10/a-plugin-development-pattern | |
* http://shichuan.github.com/javascript-patterns/ | |
* | |
* Author: Aki Karkkainen/@akikoo | |
* Licensed under the MIT license |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert video to GIF using ffmpeg | |
ffmpeg -i input.mp4 -pix_fmt rgb24 output.gif |