Skip to content

Instantly share code, notes, and snippets.

View vedovelli's full-sized avatar
💭
🚀

Fábio Vedovelli vedovelli

💭
🚀
View GitHub Profile
@vedovelli
vedovelli / gist:cd6b9a99e2ba9ebaaa98
Created June 22, 2015 23:23
Install Sublime Text 2 apt-get
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
[{"id":1,"name":"(512) Brewing Company","address1":"407 Radam, F200","address2":"","city":"Austin","state":"Texas","code":"78745","country":"United States","phone":"512.707.2337","website":"http:\/\/512brewing.com\/","filepath":"","descript":"(512) Brewing Company is a microbrewery located in the heart of Austin that brews for the community using as many local, domestic and organic ingredients as possible.","add_user":0,"last_mod":"2010-07-22 20:00:20","beers":[{"id":5735,"brewery_id":1,"name":"(512) Wit","cat_id":5,"style_id":67,"abv":5.2,"ibu":0,"srm":0,"upc":0,"filepath":"","descript":"Made in the style of the Belgian wheat beers that are so refreshing, (512) Wit is a hazy ale spiced with coriander and domestic grapefruit peel. 50% US Organic 2-row malted barley and 50% US unmalted wheat and oats make this a light, crisp ale well suited for any occasion.","add_user":0,"last_mod":"2010-07-22 20:00:20"},{"id":5736,"brewery_id":1,"name":"(512) Pale","cat_id":3,"style_id":26,"abv":5.8,"ibu":0,"srm":0,"upc":0,"
@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 / webpack.base.conf.js
Created January 29, 2016 21:09
webpack base config for vue cli with support for Bootstrap and Font-awesome
var path = require('path')
module.exports = {
entry: {
app: './src/main.js'
},
output: {
path: path.resolve(__dirname, '../dist/static'),
publicPath: '/static/',
filename: '[name].js'
@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:

$.ajax({
type : "GET",
url : "http://blachblahblah.com/abc.html",
dataType : "text/xml",
data : { xml : escape("<xml version='1.0'><MyTasks><Search></Search></MyTasks>") },
success : function(msg){ alert('Success'); } ,
error : function(msg) { alert('Failed'); }
});
data: escape('<xml version='1.0'><ns2:CalculateRoute xmlns:ns2="http://www.navteq.com/lbsp/Routing-CalculateRoute/4"><Request><CalculateRouteRequestMetaInfo><RequestID>0000003973</RequestID><VerboseMode>1</VerboseMode></CalculateRouteRequestMetaInfo><RepresentationOptions><Language>de-DE</Language><RepresentationMode>overview</RepresentationMode><RouteAttributes>waypoints summary legs</RouteAttributes><LegAttributes>maneuvers waypoint length travelTime</LegAttributes><ManeuverAttributes>position length travelTime</ManeuverAttributes><LinkAttributes>shape speedLimit dynamicSpeedInfo address</LinkAttributes></RepresentationOptions><!-- &waypoint0=geo!53.58888308889949,10.133627234151305 --><Waypoint xsi:type="ns4:GeoWaypointParameterType" xmlns:ns4="http://www.navteq.com/lbsp/Routing-Common/4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Position> <Latitude>53.58888308889949</Latitude> <Longitude>10.133627234151305</Longitude> </Position> <Departure>2012-08-30T12:00:00-05:00</Departure> <Mode> <Type>
Boa tarde a todos! Para quem não me conhece, sou Fábio Vedovelli, um dos palestrantes da LaraconfBrasil.
Lancei hoje um curso básico de Laravel. Será online (ao vivo) nos dias 30/07 e 06/08 (sábados) das 8h as 13h.
O curso é voltado aqueles que possuem interesse no Laravel porém ainda não conseguiram parar para estuda-lo!
A grade é bastante enxuta para que todos os pontos básicos possam ser bem estudados.
Se este for o seu caso, agradeço sua visita (e posterior matrícula, é claro!).
getChartsContents () {
const domEls = jQuery('.oct-chart svg') // acesso todos os SVG da pagina
const quantity = domEls.length
let i = 0
let contents = []
for (i; i < quantity; i++) { // neste loop pegarei o conteudo dos SVG e transformarei para Base64
/**
* Serialize SVG to String