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 Permutations { | |
public static void main (String args[]) { | |
// Check usage | |
if (args.length < 1) { | |
System.out.println("Usage: java Permutations [word]"); | |
return; |
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()); |
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()); |
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
<?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
# .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
/** | |
* 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
/** | |
* 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
const ENCRYPT_PASSWORD = 'SEbSk7s9AxpUDiPgljlmYpRvr3yNVurYqmBm82swjhU'; | |
let encryptionKey; | |
async function getEncryptionKey() { | |
if (encryptionKey) { | |
return encryptionKey; | |
} | |
const exported = { | |
alg: 'A256GCM', |
OlderNewer