- 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
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
: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; |
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
# 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. |
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
/** | |
* Usage: | |
* | |
* $.debounce(function() { alert('heyo'); }, 1000); | |
* $.debounce(function() { alert('heyo'); }, 1000); | |
* $.debounce(function() { alert('heyo'); }, 1000); | |
*/ | |
jQuery.extend({ | |
debounceInt: null, | |
debounce: function(fn, timeout) { |
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 | |
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); | |
}); |
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_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 |
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
// 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 |
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".
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
version: '2' | |
services: | |
### Applications Code Container ############################# | |
applications: | |
image: tianon/true | |
volumes: | |
- ${APPLICATION}:/var/www |