This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const calcMod = ({ value = '', weights = [], mod = 10 }) => { | |
| const splitted = value.split('').map(x => Number(x)) | |
| const calculed = weights.map((w, idx) => { | |
| const value = splitted[idx] | |
| return value * Number(w) | |
| }).reduce((previous, current) => previous + current, 0) | |
| const result = (calculed % mod) | |
| return result | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const person = { | |
| name: 'Cezar', | |
| age: 28, | |
| city: 'Água Boa', | |
| state: 'MT' | |
| } | |
| /** | |
| * | |
| * Nossa função recebe um objeto como parâmetro. Estamos usando destructuring para |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: dns-sync | |
| # Required-Start: | |
| # Required-Stop: | |
| # Default-Start: S | |
| # Default-Stop: | |
| # Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks | |
| ### END INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "tipo": "Manhã", | |
| "horário": "07:30", | |
| "alimento": "Ovo", | |
| "quantidade": 3 | |
| }, | |
| { | |
| "tipo": "Manhã", | |
| "horário": "07:30", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # initialization file (not found) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rscript decodeCaptcha.R iVBORw0KGgoAAAANSUhEUgAAALQAAAAyCAYAAAD1JPH3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABisSURBVHhe3d1brCZVlQfwNgFBbLSBpsVWuQhyVVCbi4oBOooYQCBARy4BRUFBUBANCIKINjclXBIJ0/QQrgFCoJkEDEFJGC7B6EwCxkyUJ/QJMy88zIOP35xfcdZxnX32rqrv9Gkc55+snO+r2rX3uu+1d1V9Z9nKlSv/c9myZZOSli9f/j977bXX62jt2rX/sW7dun8PuvDCC5/asGHDvSVt2rTpXyaTyY83btx4Txz7y1/+cqNjyOfcHt16660P5r4PP/zwV2LcVatW/XeNtxatXr36DdetWbPmvz7zmc+8esoppzz/s5/97KE333xzffCwpYgsb8c4KPSYdbu59MADD/xr7fg/ghbDy8svv3zbr371q18sW7FixZs15/j/RrvvvvvkpJNOmlxzzTWT5557bjLjfDN6WBrcc8893Rg33HDD7JEti1deeWVy+eWXd+P97W9/mz26EGR84403Zr+1QR/4J8c/GsHLHXfcMdpO9BF2Xjbz/cePPvroZI899vj7wYK23XbbyQc/+MHJvvvuO5nJfJOjjjqqc5Ba22npYx/72OTggw/u+vziF7/YORz68pe/PNfmu9/9btUwjElggqOHH364u/aSSy4ZxaPzp5122mRmluiUsljgwbivv/767JEtj69//eudDBFE5C+dm4Piawj0pi96KPHCCy9MnnrqqdlviwPd/uY3v5n91o/g5dvf/nbHe3ld/k7vjz/++IT/hk07h37r9FtK4QhzJxv08Y9/vHOap59+eoEyKJWS+yIrFP3nP/958tprr3XHMqMc449//GPX7s4775z86U9/6r6XeOKJJ0YZjEL1FY5eyhMkcJ3XJ10sFnQQQTYmwywGv//97zunpiuy4f+8886bN6Zz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div id="inputMoney"> | |
| <money | |
| id="txt1" | |
| class="form-control" | |
| v-model="price" | |
| v-bind:placeholder="placeholder" | |
| :disabled="disabled" | |
| v-bind="money" | |
| @input="change" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /** | |
| app/scripts/services/socket.js | |
| Passos para fazer funcionar: | |
| Ao fazer login vc vai chamar socket.seQuery({ userId: 66, user: 'Fulano de Tal' }) e logo em seguida socket.connect() | |
| Por exemplo: | |
| socket.seQuery({ userId: 66, user: 'Fulano de Tal' }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pacmd set-card-profile 2 a2dp_sink |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Vue from 'vue' | |
| Vue.filter('numberFormat', (value) => { | |
| if (value) { | |
| return parseFloat(value).toLocaleString("pt-BR", { minimumFractionDigits: 2 }) | |
| } | |
| }) |
NewerOlder