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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| interface IERC165 { | |
| function supportsInterface(bytes4 interfaceId) external view returns (bool); | |
| } | |
| contract SimpleERC1155 is IERC165 { | |
| // --- ERC-1155 Events --- |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| // Minimal interface required for wallets/contracts to know this is an ERC721 contract | |
| interface IERC165 { | |
| function supportsInterface(bytes4 interfaceId) external view returns (bool); | |
| } | |
| contract SimpleERC721 is IERC165 { |
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 AutoArchiveLabelOld() { | |
| Logger.log('asdssss') | |
| var AutoArchiveLabel=GmailApp.getUserLabelByName("Automation/AutoArchive") | |
| Logger.log('asd') | |
| Logger.log(AutoArchiveLabel) | |
| var AutoArchivedLabel=GmailApp.getUserLabelByName("Automation/AutoArchived") | |
| var threads=AutoArchiveLabel.getThreads() | |
| for (var i=0;i<threads.length;i++){ | |
| var thread=threads[i] | |
| Logger.log('a=' + thread.getLastMessageDate().valueOf()) |
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 myFunction() { | |
| Logger.log("start") | |
| var labels=GmailApp.getUserLabels() | |
| labels[0].getName() | |
| var forwardedLabel=GmailApp.getUserLabelByName("forwarded") | |
| for(var i =0 ;i<labels.length;i++){ | |
| var name=labels[i].getName() | |
| if (name.match(/fwd:/)) { | |
| Logger.log("label:" + name) | |
| var to=name.match(/fwd:(.*)/)[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
| // Using: ls yadani | xargs -L 1 -I {} node extract yadani/{} cropped/{} | |
| var cp=require("child_process") | |
| var x=new Array(...process.argv) | |
| var target=x.pop().replace(/ /g,'\\ ') | |
| var src=x.pop().replace(/ /g,'\\ ') | |
| console.log({target,src}) | |
| var res=cp.execSync(`face_detection ${src}`).toString().trim() | |
| var a=res.split(',') |
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 list=document.querySelector('.copyable-area').querySelectorAll('.X7YrQ') | |
| // var ar=[]; | |
| for(let i=0;i<list.length;i++) { | |
| var friend=list[i] | |
| var phone=friend.querySelector('[tabindex] > div >div:nth-child(2) > div').textContent | |
| .replace('+972','0').replace(/[ \-]/g,'') | |
| try{ | |
| var image=friend.querySelector('img').src | |
| } |
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 list=document.querySelector('.copyable-area').querySelectorAll('.X7YrQ') | |
| var ar=[]; | |
| for(let i=0;i<list.length;i++) { | |
| var friend=list[i] | |
| var phone=friend.querySelector('[tabindex] > div >div:nth-child(2) > div').textContent | |
| .replace('+972','0').replace(/[ \-]/g,'') | |
| try{ | |
| var image=friend.querySelector('img').src | |
| } |
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 list= document.querySelectorAll('[data-testid="friend_list_item"]') | |
| var ar=[]; | |
| for(let i=0;i<list.length;i++) { | |
| friend=list[i] | |
| var link=friend.querySelector('a[href*=facebook]').href.match(/^[^?]*/)[0] | |
| var image=friend.querySelector('[aria-label]').src | |
| var name=friend.querySelector('[aria-label]').getAttribute('aria-label') | |
| ar.push({link,image,name}) | |
| } | |
| copy(JSON.stringify(ar)) |
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 y=0 | |
| var i=0 | |
| var done=false; | |
| var last | |
| function s(){ | |
| if(done) return; | |
| var current=document.scrollingElement.scrollTop | |
| if(last==current) { | |
| i++ | |
| } else { |
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
| <script> | |
| x=[ | |
| 'https://en.wikipedia.org/wiki/Israel', | |
| 'https://en.wikipedia.org/wiki/United_states' | |
| ] | |
| y=x[parseInt(Math.random()*x.length)] | |
| location.href=y; | |
| </script> |
NewerOlder