This file contains 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(){function e(e,t){return new Promise(n=>setTimeout(()=>n(t),e))}!function t(){let n=document.querySelector('a[href="/compose/tweet"]');n.click(),e(500).then(()=>{let t=document.querySelector(".public-DraftEditor-content[contenteditable=true]"),n=new Event("textInput",{bubbles:!0});return n.data="emohgnamu@ // elosnoc s'resworb ym ni tpircSavaJ yrartibra gnitucexe fo snoitacilpmi ytiruces eht dnatsrednu ton od I".split("").reverse().join(""),t.dispatchEvent(n),e(500,{input:t})}).then(({input:e})=>{let t=e.closest("[role=dialog]"),n=t.querySelector("[data-testid=tweetButton]");n.click()})}()}(); |
This file contains 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 setUsernames(description) { | |
return description.replace(/@(\w){1,15}/g, function(username) { | |
return `<a href="https://twitter.com/${username.replace( | |
'@', | |
'' | |
)}" target="_blank">${username}</a>`; | |
}); | |
} | |
function setUrls(description, entities) { |
This file contains 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 ENCRYPT_PASSWORD = 'SEbSk7s9AxpUDiPgljlmYpRvr3yNVurYqmBm82swjhU'; | |
let encryptionKey; | |
async function getEncryptionKey() { | |
if (encryptionKey) { | |
return encryptionKey; | |
} | |
const exported = { | |
alg: 'A256GCM', |
This file contains 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
/** | |
* run `npm init -y` | |
* run `npm i node-fetch` | |
* run `node index.js` | |
* turn Slack notifications on | |
* | |
* Get cowinUrl from the DevTools' network tab | |
* Get authorization string from the Request Headers as the value of authorization header of the network request for cowinUrl. If this expires, the script will stop working. You'll have to log in again and get a new value for this. | |
*/ |
This file contains 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
/** | |
* This could probably be done in like three lines of shell script | |
* but I have no idea how to write those. | |
* | |
* run `npm init -y` | |
* run `npm i node-fetch jsdom` | |
* run `node index.js` | |
* turn Slack notifications on | |
* and go to bed. | |
* |
This file contains 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
# .github/workflows/publish.yml | |
name: Generate a build and push to another branch | |
on: | |
push: | |
branches: | |
- master # Remove this line if your primary branch is "main" | |
- main # Remove this line if your primary branch is "master" | |
jobs: |
This file contains 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
<?php | |
define('ELASTIC_MAIL_API_KEY', ''); | |
/** | |
* Sends an email using Elastic Mail. | |
* @param {String} $to Receiver's email address. | |
* @param {String} $subject Email submit. | |
* @param {String} $body_text Text body. | |
* @param {String} $body_html HTML body. |
This file contains 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
9 | |
I1 I2 I5 | |
I2 I4 | |
I2 I3 | |
I1 I2 I4 | |
I1 I3 | |
I2 I3 | |
I1 I3 | |
I1 I2 I3 I5 | |
I1 I2 I3 |
This file contains 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 java.util.*; | |
public class Apriori { | |
public static void main (String args[]) { | |
// Get input | |
Scanner terminal = new Scanner(System.in); | |
System.out.print("Number of transactions: "); | |
int numberOfTransactions = Integer.parseInt(terminal.nextLine()); |
NewerOlder