Skip to content

Instantly share code, notes, and snippets.

View vital-edu's full-sized avatar

Eduardo Vital Alencar Cunha vital-edu

View GitHub Profile
@vital-edu
vital-edu / gist:5665e135dc96dde0f032c2acdc54d132
Created March 16, 2018 14:50 — forked from ingramchen/gist:e2af352bf8b40bb88890fba4f47eccd0
ffmpeg convert gif to mp4, for best cross browser compatibility
### Full command line options
```
ffmpeg -f gif -i FOO.gif -pix_fmt yuv420p -c:v libx264 -movflags +faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' BAR.mp4
```
### Notie
* output mp4 is encoded with h264, support Firefox/Chrome/Safari in Windows, Mac OSX, Android, and iOS.
@vital-edu
vital-edu / designer.html
Last active June 10, 2016 18:57
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
@vital-edu
vital-edu / gist:b9e1dace996acb10b218
Created May 27, 2015 21:25
Formulário Noosfero
Dentro da pasta do noosfero, digite o comando no terminal:
$ ./script/noosfero-plugins enable custom_forms
Atualize o banco de dados com o comando
$ rake db:migrate
Reinicie o noosfero:
$ sudo service noosfero restart
Logue no site