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
| function getContacts() { | |
| let contatos = document.querySelectorAll("._3afBu"); | |
| var data = []; | |
| for (let index = 0; index < contatos.length; index++) { | |
| const element = contatos[index]; | |
| let nomeElement = element.querySelector("._1wjpf"); | |
| let telElement = element.querySelector(".wRfKo > span") || element.querySelector('.wRfKo'); | |
| let nome = nomeElement.innerHTML; | |
| let tel = (telElement && telElement.innerHTML) || '-----'; | |
| data.push({ nome: nome, tel: tel }); |
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
| [diff] | |
| tool = vs2015 | |
| [difftool] | |
| prompt = true | |
| [difftool "vs2015"] | |
| cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t | |
| keepbackup = false | |
| trustexistcode = true | |
| [merge] | |
| tool = vs2015 |
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
| ko.bindingHandlers.textCursorPosition = { | |
| init:function(element, valueAccessor, allBindingsAccessor) { | |
| var that = this; | |
| if(element.type !="text" && element.type !="textarea") | |
| throw "Sorry, but just text inputs or textareas can be binded to cursor text position. X(" | |
| this.value = valueAccessor(); | |
| $(element).bind("keyup click change",function(teste){ | |
| var pos= $(element).prop("selectionEnd"); | |
| value(pos); | |
| $(element).focus(); |
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
| Array.prototype.sum = function (mapProperty) { | |
| _validateMapProperty(mapProperty) | |
| var list = mapProperty ? this.map(mapProperty) : this; | |
| _validateNum(list); | |
| var result = 0; | |
| for (var i = 0; i < list.length; i++) | |
| result += list[i]; | |
| function _validateNum(list) { | |
| var anyIsntNumber = list.filter(function (item) { | |
| return typeof item != "number"; |
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
| Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Enable-RemoteDesktop | |
| cinst 7zip | |
| cinst 7zip.install | |
| cinst AdobeAIR | |
| cinst adobereader | |
| cinst DotNet4.5.1 | |
| cinst fiddler4 | |
| cinst WindowsLiveWriter |