Skip to content

Instantly share code, notes, and snippets.

View felipepodesta's full-sized avatar
👨‍💻
Stairway To Heaven

Felipe Podestá felipepodesta

👨‍💻
Stairway To Heaven
View GitHub Profile
@felipepodesta
felipepodesta / Checklist para envio de um asset para a Unity Asset Store.md
Created December 26, 2019 22:43
Checklist em português, das coisas que você deve fazer, e evitar para ter seu asset aceito pela Unity! Esse Checklist foi criado com base no "Guia de envio da Unity Asset Store", disponível em: https://unity3d.com/pt/asset-store/sell-assets/submission-guidelines (em inglês).

Restrições Legais

  • Não usar propriedade intelectual de terceiros
  • Não involver, mencionar ou colocar nenhum dos logotipos da Unity, ou de terceiros
  • Não usar o nome da Unity, ou de terceiros no título do Asset
  • Qualquer biblioteca de terceiros (SDK e etc), caso incluidas devem fornecer um arquivo com a licensa de tal (este arquivo deve incluir informações sobre de onde essa biblioteca veio, criador e etc)
  • As fontes de texto inclusas, devem conter um arquivo de licensa caso haja

Geral

@felipepodesta
felipepodesta / overlay.css
Created October 15, 2019 03:52 — forked from larsenwork/overlay.css
Momondo Grid Overlay
:root {
/* Global settings */
--grid-display: block; /* Toggle grid visibility with "block" or "none" */
--grid-z_index: 1000; /* The z-index should be bigger than any used on the site */
/* Grid settings */
--grid-columns: 6;
--grid-baseline: 4px;
--grid-baseline-top: 3px; /* Must be smaller than grid-baseline */
--grid-offset: 16px;
@felipepodesta
felipepodesta / youtube-dl-aliases.sh
Created October 7, 2019 02:24 — forked from Abhinav1217/youtube-dl-aliases.sh
youtube-dl aliases for stuffs
# Some youtube-dl shortcuts and workarounds.
# Download MP3
alias youtube-dl-mp3="youtube-dl --extract-audio --audio-format mp3 "
# Youtube playlist which is organised in folders and Videos are numbered.
# use youtube-dl-playlist -f 22 <link>
alias youtube-dl-playlist='youtube-dl -o "./%(playlist_title)s/%(playlist_index)s_%(title)s.%(ext)s" '
# Youtube-dl to download from hotstar.
/**
* Usage:
*
* $.debounce(function() { alert('heyo'); }, 1000);
* $.debounce(function() { alert('heyo'); }, 1000);
* $.debounce(function() { alert('heyo'); }, 1000);
*/
jQuery.extend({
debounceInt: null,
debounce: function(fn, timeout) {
<?php
use Illuminate\Database\Query\Builder;
Builder::macro('orderByNulls', function ($column, $direction = 'asc', $nulls = 'last', $bindings = []) {
$column = $this->getGrammar()->wrap($column);
$direction = strtolower($direction) === 'asc' ? 'asc' : 'desc';
$nulls = strtolower($nulls) === 'first' ? 'NULLS FIRST' : 'NULLS LAST';
return $this->orderByRaw("$column $direction $nulls", $bindings);
});
php_install_dir=/usr/local/php7
cp php.ini-production $php_install_dir/etc/php.ini
Mem=`free -m | awk '/Mem:/{print $2}'`
if [ $Mem -gt 1024 -a $Mem -le 1500 ];then
Memory_limit=192
elif [ $Mem -gt 1500 -a $Mem -le 3500 ];then
Memory_limit=256
elif [ $Mem -gt 3500 -a $Mem -le 4500 ];then
Memory_limit=320
elif [ $Mem -gt 4500 ];then
@felipepodesta
felipepodesta / gulpfile.js
Created November 11, 2018 21:25 — forked from LoyEgor/gulpfile.js
batch images (resize and compress)
// install
// cd node_modules \
// chmod -R a+rwX .
// run without sudo
// npm i gulp-responsive --unsafe-perm
// npm i del gulp psd2png color
// npm i gulp-imagemin imagemin-pngquant imagemin-zopfli imagemin-mozjpeg imagemin-giflossy -f
@felipepodesta
felipepodesta / README.md
Created October 15, 2018 17:11 — forked from ControlledChaos/README.md
Add srcset and sizes attributes to Advanced Custom Fields image uploads.

ACF Responsive Images

WordPress Snippet

Adds the srcset and sizes attributes to ACF image uploads. Requires installation of the Advanced Custom Fields plugin.

NOTE: ACF image field must be set to return the ID.

NOTE: WordPress needs image sizes with equal aspect ratios in order to generate the srcset, and does not use srcset when images are added as "Full Size".

version: '2'
services:
### Applications Code Container #############################
applications:
image: tianon/true
volumes:
- ${APPLICATION}:/var/www