Skip to content

Instantly share code, notes, and snippets.

View luanmuniz's full-sized avatar
:octocat:
Always Building

Luan Muniz luanmuniz

:octocat:
Always Building
View GitHub Profile
### Keybase proof
I hereby claim:
* I am luanmuniz on github.
* I am luanmuniz (https://keybase.io/luanmuniz) on keybase.
* I have a public key ASA5y3TUNXzpWC7ZHaefAw_8K5YRDKG2N5F-lhkmNS47NAo
To claim this, I am signing this object:
@luanmuniz
luanmuniz / gist:bd0624acad668d1757dfcc91b1cc62e5
Created August 14, 2019 15:16
Verifying my Blockstack ID
Verifying my Blockstack ID is secured with the address 14gKyjCgRBSefv5LLiQMysyECnznvJdw4U https://explorer.blockstack.org/address/14gKyjCgRBSefv5LLiQMysyECnznvJdw4U
@luanmuniz
luanmuniz / CODE_OF_CONDUCT.md
Created May 24, 2018 20:54
Code of Conduct

Contributor Covenant Code of Conduct

Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

Our Standards

Examples of behavior that contributes to creating a positive environment include:

@luanmuniz
luanmuniz / LICENSE
Last active May 24, 2018 20:52
MIT License
The MIT License (MIT)
Copyright © 2018 Luan Muniz <luan@luanmuniz.com.br>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@luanmuniz
luanmuniz / jwtRS512.sh
Last active December 16, 2018 20:37 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
openssl genrsa -aes128 -out cert.key 4096
openssl rsa -in cert.key -pubout -out cert.pub
cat cert.key
cat cert.pub
@luanmuniz
luanmuniz / index.html
Created December 31, 2014 04:41
GoogleMaps Easyway
<script src='http://maps.google.com/maps/api/js?sensor=false' type='text/javascript'>
</script>
<script type='text/javascript'>
$(document).ready(function() {
$('#map-container').googleMap("3333 RiverBend Drive, Springfield, OR");
});
</script>
function getTagFromHtmlText(html, tagFind, attrFind, attrValueFind, returnResult, all){
html = html || '',
reg = '';
if(all === undefined){
all = false;
}
html = html.replace(/<!--[\s\S]*?-->/g, ''); // remove comments
if(attrFind === undefined || attrFind === false){
reg = new RegExp('<'+tagFind+'\\b[^>]*(\\1)([^>]*/>|[^>]*>((?:(?:(?!<'+tagFind+'[^>]*>|<\/'+tagFind+'>)[\\s\\S])+|<'+tagFind+'[^>]*>([\\s\\S]*?)<\/'+tagFind+'>)*)<\/'+tagFind+'>)','gi');
@luanmuniz
luanmuniz / customSelect.js
Created February 19, 2014 14:20
Custom select
(function($){
'use strict';
$.fn.extend({
customStyle: function(){
var html = $('html');
if (!html.hasClass('ie') || (html.hasClass('ie') && !html.hasClass('lt-ie7'))) {
return this.each(function () {
var t = $(this),
currentSelectedText = t.find(':selected').text(),
classes = t.attr('class');
@luanmuniz
luanmuniz / gist:da0b8d2152c4877f93c4
Last active August 27, 2018 12:32
Fork Workflow

Development workflow with Git: Fork, Branching, Commits, and Pull Request

1 - Fork a repo

2 - Clone the sevntu.checkstyle project to your local machine (username – your Github user account name.):

$ git clone git@github.com:USERNAME/REPOSITORY.git

3 - Configure remotes: