Skip to content

Instantly share code, notes, and snippets.

View vinicius33's full-sized avatar
:shipit:
“You get what you git push”

Vinicius Souza vinicius33

:shipit:
“You get what you git push”
View GitHub Profile
@vinicius33
vinicius33 / machine.js
Last active March 3, 2021 12:39
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Coming Soon: 3 New Exciting Javascript Features to Try

Throughout the past years we've witnessed the Javascript Community grow and thrive. It's noticeable that not only the ecosystem has become bigger and more reliable but also the language itself is moving towards a more mature stage in comparison to eight years ago for example. In this article I will introduce you to some new useful features coming to Javascript.

Although these features are still in their experimental stage, we at Delivery Hero Logistics like to try out new things through experimenting carefully with features currently not found in our apps. In fact, you can use them today via Babel. However, be careful when choosing this option. There’s no guarantee that the proposal will remain as-is. It might dramatically change, and therefore you will have to refactor some code (or not).

( The idea behind this post is to provide some examples of real problems we've been facing throughout the years and to show how we can solve them today.)

@vinicius33
vinicius33 / preferences.sublime-settings
Created January 22, 2015 17:03
Sublime Preference Settings User
{
"atomic_save": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_options": "subpixel_antialias",
"font_size": 9,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
@vinicius33
vinicius33 / phonebrazil.js
Created October 29, 2014 19:22
phone brazil directive
.directive('phoneBrazil', [function(){
return {
restrict: 'A',
require: 'ngModel',
transclude: true,
link: function($scope, iElm, iAttrs, ngModel) {
if(!ngModel) return;
ngModel.$formatters.unshift(formatter);
@vinicius33
vinicius33 / index.html
Last active August 29, 2015 14:06
Sticky Footer into main app
<main>
<section class="container">
<footer class="footer"></footer>
</section>
</main>
@vinicius33
vinicius33 / css_resources.md
Last active August 29, 2015 14:06 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@vinicius33
vinicius33 / javascript_resources.md
Last active August 29, 2015 14:06 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@vinicius33
vinicius33 / services.js
Created September 17, 2014 22:03
$global service angularjs
/**
* App Services Module
*/
angular
.module('app.services', [])
.factory('$global', [function () {
this.settings = {
fullScreen: false,
fooProperty: true
@vinicius33
vinicius33 / performance.html
Created July 5, 2014 14:13
udacity-webperf.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Hey ya!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>
@vinicius33
vinicius33 / transition-end-callback
Created July 11, 2013 11:55
Gist for transition end(css3) callback
$(elementWithTransition).on("transitionend webkitTransitionEnd oTransitionEnd otransitionend", function (){
console.log('End! ;)')
});