Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>AWS Cognito + Facebook Login JavaScript Example</title>
<meta charset="UTF-8">
</head>
<body>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.41.min.js"></script>
<script>
@hlucasfranca
hlucasfranca / gherkin_example.feature
Created June 24, 2017 13:03 — forked from tartalia/gherkin_example.feature
exemplo gherkin (pt-br)
#language: pt-br
Funcionalidade: Pagamento com cartão de crédito
O cliente pode optar pelo pagamento com cartão de crédito ao finalizar a compra. O pagamento via cartão de crédito
deve ser autorizado pela operadora. No caso do pagamento por um cartão de crédito ser negado pela operadora, o cliente
deve ter a opção de selecionar outro cartão de crédito.
Contexto:
Dado que selecionei o produto "Nike Air Vapor Ace"
@hlucasfranca
hlucasfranca / introrx.md
Created September 12, 2016 12:34 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
module.exports = angular.module('com.good.company.directive', []);
angular.module('com.good.company.directive')
.directive('myDirective', [
// directive definition ...
]);
@hlucasfranca
hlucasfranca / thumbnails.sh
Created May 26, 2016 14:42 — forked from zmwangx/thumbnails.sh
Script to generate thumbnails of a video and combine into one tile image. Uses FFmpeg and ImageMagick.
#!/bin/zsh
# Script to generate thumbnails of a video and combine into one tile image.
#
# CAUTION:
# FFprobe might fail to extract duration info from a MKV container. Use
# ffmpeg -i video.mkv -c:v copy -c:a copy video.mp4
# to swap to an MP4 container.
#
# Dependencies:
# 1. ffmpeg

browserify for webpack users

There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.

Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.

I think that longer-term, separability has more benefits from a maintenance and

@hlucasfranca
hlucasfranca / force.csv
Created October 5, 2015 16:27 — forked from d3noob/.block
Basic Directional Force Layout Diagram
source target value
Harry Sally 1.2
Harry Mario 1.3
Sarah Alice 0.2
Eveie Alice 0.5
Peter Alice 1.6
Mario Alice 0.4
James Alice 0.6
Harry Carol 0.7
Harry Nicky 0.8
Harry Sally 1.2
Harry Mario 1.3
Sarah Alice 0.2
Eveie Alice 0.5
Peter Alice 1.6
Mario Alice 0.4
James Alice 0.6
Harry Carol 0.7
Harry Nicky 0.8
@hlucasfranca
hlucasfranca / README.md
Created October 2, 2015 17:12 — forked from mbostock/.block
Draggable Network

This example demonstrates a simple method of hand-tweaking a force-directed layout. Using d3.behavior.drag, the nodes in this network are made draggable; dragging updates the x and y properties of each node. The resulting graph could then be saved back to a JSON file using JSON.stringify.