Skip to content

Instantly share code, notes, and snippets.

View vedovelli's full-sized avatar
💭
🚀

Fábio Vedovelli vedovelli

💭
🚀
View GitHub Profile
@vedovelli
vedovelli / riaSsslider.js
Created September 18, 2012 12:51
Super Simple Slider plugin directive
rialabs.directive('riaSsslider', function(){
return {
restrict: 'A',
link: function link ($scope, $element, $attrs){
var el = jQuery($element),
ng = $scope;
el.children().each(function(index, item){
ng.panes_length.push($(item).data('label') || "");
@vedovelli
vedovelli / gist:08d28c4aa34a0eba5ebb
Last active January 8, 2016 18:54
Gulp + Duo + Browsersync + Uglify
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var uglify = require('gulp-uglify');
var exec = require('child_process').exec;
var srcDir = './src/**/*.js';
var jsIn = './src/main.js';
var jsOut = './build/main.js';
gulp.task('default', ['browser-sync', 'duo', 'watch']);
@vedovelli
vedovelli / gulpfile.js
Last active January 8, 2016 18:54 — forked from juliobitencourt/gulpfile.js
Gulp + Duo + BrowserSync + SASS
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var sass = require('gulp-sass');
var exec = require('child_process').exec;
gulp.task('browser-sync', function() {
browserSync.init({
proxy: "dashboard.eastman.dev",
notify: false
@vedovelli
vedovelli / gulpfile.js
Created June 3, 2015 17:20
Gulpfile.js para rodar duo() sempre que o javascript especificado for salvo.
/**
* gulpfile para automatizar a compilação feita com o Duo.js.
* Author: Fabio Vedovelli <vedovelli@gmail.com>
* http://vedovelli.com.br/
* Inspirado em https://github.com/mozilla/galaxy.js/blob/master/gulpfile.js
*/
var gulp = require('gulp');
/**
@vedovelli
vedovelli / ArrayWalk
Created March 2, 2015 14:52
Array Walk Example
function checkAndConvertToUpper($input)
{
$columns_to_convert = array('descricao', 'logradouro', 'complemento', 'bairro', 'cidade');
array_walk($input, function(&$item, $key, $cols)
{
if(in_array($key, $cols))
{
$item = strtoupper($item);
}
{
ID: 16551
}
{
user: {
ID: 16551,
amount_raised: 977.25
}
}
@vedovelli
vedovelli / gist:3783115
Created September 25, 2012 16:54
HTML: HTML5 Structure
<!doctype html>
<html>
<head>
<title></title>
<meta charset="utf8">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
@vedovelli
vedovelli / package.json
Created January 10, 2016 17:35
package.json for SC components
{
"name": "components",
"version": "1.0.0",
"description": "Screencast demonstração de componentes com Vue.js e Webpack",
"main": "main.js",
"scripts": {
"dev": "webpack-dev-server --inline --hot",
"build": "webpack -p",
"test": "echo \"Error: no test specified\" && exit 1"
},
@vedovelli
vedovelli / webpack.config.js
Created January 10, 2016 18:26
webpack config for screencast components
module.exports = {
// entry point of our application
entry: './main.js',
// where to place the compiled bundle
output: {
path: __dirname,
filename: 'build.js'
},
module: {
// `loaders` is an array of loaders to use.
@vedovelli
vedovelli / GIF-Screencast-OSX.md
Created March 7, 2016 23:19 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: