Skip to content

Instantly share code, notes, and snippets.

View frankdors's full-sized avatar

Franciel Dors frankdors

  • iCert soluções inteligentes
  • Lajeado - RS - Brasil
View GitHub Profile
setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@callmeloureiro
callmeloureiro / comoNaoDeixarNoVaucoNoWhatsapp.js
Last active June 5, 2021 13:29
Como não deixar no vácuo no whatsapp
/*
Hoje não deixaremos mais ninguém no vácuo no whatsapp
Para utilizar:
- Abra o web.whatsapp.com;
- Abra o console e cole o código que está no gist;
- Aguarde e verá uma mensagem sendo enviada a cada momento que alguém te enviar alguma mensagem.
Confira também como ser chato no whatsapp: https://gist.github.com/mathloureiro/4c74d60f051ed59650cc76d1da0d32da
e como ser chato no mensseger: https://gist.github.com/mathloureiro/d3f91d19cf148838217e42a0c6df5ed8
*/
@bulfaitelo
bulfaitelo / OneSignal_Bulfaitelo-Project.html
Created June 2, 2017 12:56
OneSignal Configuração PT-br
<!-- OneSignal Push -->
<script async='async' src='https://cdn.onesignal.com/sdks/OneSignalSDK.js'></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(["init", {
appId: "Aqui entra o OneSignal App ID",
subdomainName: 'bulfaitelo-project',
httpPermissionRequest: {
enable: true,
modalTitle: 'Grato pela assinatura',
@vinicius73
vinicius73 / chart.vue
Last active August 17, 2021 08:40
Vue.js + C3.js
<script>
import c3 from 'c3'
import { debounce, cloneDeep, defaultsDeep } from 'lodash'
export default {
name: 'c3-chart',
props: {
config: {
type: Object,
default: () => ({})

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@IgorDePaula
IgorDePaula / cpf.js
Last active November 3, 2021 13:40
vee-validate em pt-br
function calcChecker1 (firstNineDigits) {
let sum = null
for (let j = 0; j < 9; ++j) {
sum += firstNineDigits.toString().charAt(j) * (10 - j)
}
const lastSumChecker1 = sum % 11
const checker1 = (lastSumChecker1 < 2) ? 0 : 11 - lastSumChecker1
anonymous
anonymous / Edit.vue
Created September 5, 2016 14:49
<script>
import Form from './Form'
import { update } from '../services/Users'
export default {
extends: Form,
methods: {
performSave() {
const hideLoad = () => this.$loader.hide()
this.$loader.show()
@vinicius73
vinicius73 / AuthServiceProvider.php
Created March 11, 2016 20:12
Para vc não precisar fazer um loop nas suas permissões :p
<?php
namespace App\Core\Providers;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Support\ServiceProvider;
use App\Domains\Users\User;
class AuthServiceProvider extends ServiceProvider
{
@m4grio
m4grio / Blueprint.php
Last active June 14, 2019 06:45
Extending Laravel 5 Blueprint for MySqlConnection
<?php
namespace App\Database\Schema;
use Illuminate\Database\Schema\Blueprint as ParentBlueprint;
use Illuminate\Support\Facades\DB;
/**
* Class Blueprint
*