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
ng-options="item.key as item.name=('telecon.entity.' + item.key | translate) for item in profileEditCtrl.keys | orderBy:'name'" |
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
var fs = require('fs'); | |
function savePage(name, content) { | |
console.log('savePage', name) | |
fs.write('pages/' + name + '.html', content, 'w'); | |
} | |
const domain = 'https://algartelecom.com.br' | |
const pages = [ |
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
_.xor([1], [2]); | |
= [1, 2] | |
_.xor([1, 2], [2]); | |
= [1] |
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
class Todo { | |
@observable done = true | |
@observable title = "test" | |
} | |
const todo = new Todo() | |
"done" in todo // true | |
todo.hasOwnProperty("done") // false | |
Object.keys(todo) // [] |
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
$.ajaxPrefilter(function(options, originalOptions, jqXHR) { | |
if ((options.type === 'post' || options.type === 'put') && options.contentType === 'application/json') { | |
options.data = JSON.stringify(originalOptions.data); | |
} | |
options.url = 'baserUrl' + originalOptions.url + '?gw-app-key=' + window.config.gwAppKey; | |
}), |
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
options.files.forEach((pattern) => { | |
files = files.concat(glob.sync(pattern)) | |
}) |
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
<table width="600" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;"> | |
<tr> | |
<td style="width: 600px; height: 430px; background-image: url('https://s3-sa-east-1.amazonaws.com/vivo-invitation/invitation_email/media/img/header-background-full.png');"> | |
<!--[if gte mso 9]> | |
<v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 600px; height: 430px; top: 0; left: 0; border: 0; z-index: 1;' src="https://s3-sa-east-1.amazonaws.com/vivo-invitation/invitation_email/media/img/header-background-full.png" /> | |
<v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 600px; height: 430px; top: -5; left: -10; border: 0; z-index: 2;'> | |
<div> | |
<![endif]--> | |
<table width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; colo |
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
{ | |
password: [ | |
{ | |
code: 'RANGE', | |
pattern: '^.{6,20}$', | |
flags: 'g', | |
message: 'Senha deve ter no mínimo 6 e no máximo 20 caracteres' | |
}, | |
{ | |
code: 'LETTERS_NUMBERS', |
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
git branch -d $(git branch --merged) |
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
// util/history.js | |
import { Router, useRouterHistory } from 'react-router' | |
import { createHashHistory } from 'history' | |
const appHistory = useRouterHistory(createHashHistory)({ queryKey: false }); | |
export default appHistory; | |
// use.js |