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 { useEffect, useState } from 'react' | |
| const PREFIX = 'app-name-' | |
| export default function useLocalStorage(key, initialValue) { | |
| const prefixedKey = PREFIX + key | |
| const [value, setValue] = useState(() => { | |
| const jsonValue = localStorage.getItem(prefixedKey) | |
| if (jsonValue != null) return JSON.parse(jsonValue) | |
| if (typeof initialValue === 'function') { |
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
| // add this to test in your login route. | |
| var jsonData = JSON.parse(responseBody); | |
| postman.setEnvironmentVariable("token", jsonData.token.accessToken); | |
| // change the 'jsonData.token.accessToken' according to your response body. | |
| /* | |
| ============================ | |
| ============================ | |
| */ |
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
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
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 requests | |
| import re | |
| import random | |
| url = "http://earn500.fun/m_data.php" | |
| s = """SumonKabirNazmulArafatAkbarSajjadSohailKosikBibaJarifM | |
| irjaRabeyaSlmanSabiqRubiyaNusratNahidHasanSirazamnMuniraswanS | |
| omanjanBigyaniAnikhAriteshPrJahanaraKanizMirjaHasnaInzamaulSh | |
| arminTaziaAfrinShornaSabrinaTaimurRizwanIpshitaTasnimSnehaNazi | |
| nMaksudaSultanaNilimaawarParvikPuspanshuDebtanuSochinSowmikDi | |
| ptarsikaNoinaSriyamiAtyamajaKoushukiSomdeeptiSairatiRiptyRipt |
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 requests | |
| import re | |
| import random | |
| url = "http://earn500.fun/m_data.php" | |
| s = """SumonKabirNazmulArafatAkbarSajjadSohailKosikBibaJarifM | |
| irjaRabeyaSlmanSabiqRubiyaNusratNahidHasanSirazamnMuniraswanS | |
| omanjanBigyaniAnikhAriteshPrJahanaraKanizMirjaHasnaInzamaulSh | |
| arminTaziaAfrinShornaSabrinaTaimurRizwanIpshitaTasnimSnehaNazi | |
| nMaksudaSultanaNilimaawarParvikPuspanshuDebtanuSochinSowmikDi | |
| ptarsikaNoinaSriyamiAtyamajaKoushukiSomdeeptiSairatiRiptyRipt |
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
| { | |
| "editor.fontFamily": "'Victor Mono', 'Courier New', monospace", | |
| "editor.fontLigatures": true, | |
| "editor.fontWeight": "600", | |
| "workbench.colorTheme": "Panda Syntax", | |
| "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe", | |
| "files.associations": { | |
| "**/templates/*.html": "django-html", | |
| "**/templates/*": "django-txt", | |
| "**/requirements{/**,*}.{txt,in}": "pip-requirements" |
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
| //vscode settings sycn |
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
| //Go to news feed Preferences then Unfollow Option then Open console... | |
| // paste this code | |
| var unf = document.querySelector('[data-testid ="unfollow"]'); | |
| var scr = unf.querySelector(".scrollable"); | |
| setInterval(function(){ | |
| scr.scrollTop = scr.scrollHeight; | |
| }, 500 | |
| ); | |
| // ==================================================== |
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
| #a simple way to click all button with specific inner text.... | |
| var click_all = ()=> { | |
| [].slice.call(document.querySelectorAll('button')).filter(x=>x.innerText.indexOf('Liked') !=-1).map(x=>{x.click()}); | |
| window.scrollTo(0,document.body.scrollHeight); | |
| window.setTimeout(click_all, 3 * 1000) | |
| }; | |
| click_all(); |
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
| /*! | |
| * Bootstrap v3.3.7 (http://getbootstrap.com) | |
| * Copyright 2011-2016 Twitter, Inc. | |
| * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
| */ | |
| /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | |
| html { | |
| font-family: sans-serif; |
NewerOlder