Skip to content

Instantly share code, notes, and snippets.

View marcosrjjunior's full-sized avatar

Marcos RJJunior marcosrjjunior

View GitHub Profile
@marcosrjjunior
marcosrjjunior / test-checkbox.md
Last active August 29, 2015 14:26
test-checkbox.md

List

  1. Test Test Test -[ ] Test
  2. Test
@marcosrjjunior
marcosrjjunior / things-install-linux.md
Last active June 17, 2020 01:46
My environment development after install Linux.
Verifying that +marcosrjjunior is my blockchain ID. https://onename.com/marcosrjjunior
Menu->Tools->Developer->New Snipper..
<!-- dd($object) -->
<snippet>
<tabTrigger>dd</tabTrigger>
<content><![CDATA[
dd(${1:this});
]]></content>
</snippet>
#EXTM3U
#PLAYLISTV: pltv-logo="http://s28.postimg.org/66yw0liml/21312sasdas.png" pltv-name="Pedro Junior Tutoriais" pltv-description=TV ONLINE para PlaylisTV/IPTV" pltv-cover="http://s30.postimg.org/4w34lok2p/canal_pedro_junior_tutoriais.jpg" pltv-author="Pedro Júnior Tutoriais" pltv-site="https://www.youtube.com/user/matamataxiterbr?sub_confirmation=1" pltv-email="" pltv-phone="(51) 98435-1782"
################################################################################# Informações da Lista
#EXTINF:-1 tvg-logo="http://s20.postimg.org/i1p1srlvt/Official_site.png" group-title="Informações da Lista",downloadsdefimes.blogspot.com
https://www.youtube.com/channel/UCojJlqr-L9290l5D63SXTzg?view_as=public
#EXTINF:-1 tvg-logo="http://s20.postimg.org/our9cxj1p/youtube.png" group-title="Informações da Lista",youtube.com/matamataxiterbr
@marcosrjjunior
marcosrjjunior / jsscraping.js
Last active February 4, 2023 01:24
simple web scraping using js
const scraper = {
elements: [],
setElement: (name, el, option = 'textContent') => {
var content = document.querySelector(el);
if (!content) {
return console.log('Element for : '+ name + ' not found 404');
}
return scraper.elements.push({[name]:content[option].trim()});
},
@marcosrjjunior
marcosrjjunior / loading-with-spinner.html
Created February 18, 2020 23:39
loading-overlay-with-spinner
<div className="loading-overlay">
<div className="bouncing-loader">
<div></div>
<div></div>
<div></div>
</div>
</div>
<style>
.loading-overlay {
@marcosrjjunior
marcosrjjunior / webpack.common.js
Last active March 11, 2020 05:58
react simple webpack
// .babelrc
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties"
]
@marcosrjjunior
marcosrjjunior / delete-merged-branchs.sh
Last active February 22, 2022 02:30
Delete merged branchs
#!/usr/bin/env bash
# delete branchs that were merged to main|develop|.....
git branch --merged | egrep -v "(^\*|main|develop|release/1.0.0)" | xargs git branch -d
@marcosrjjunior
marcosrjjunior / RedisService.ts
Last active January 22, 2023 19:58
node redis 4.0.4+
import hash from 'object-hash';
import { createClient } from 'redis';
import { config } from '../config';
import { serialize } from '../utils/objectTransformer';
import { log } from '../utils/errors';
export const REDIS_KEY_PREFIX = `PROJECTPREFIX-${config.env?.toLowerCase()}`;
class RedisService {
client: any;