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
// Original file - https://pastebin.com/Vk8tczPu | |
#include <iostream> | |
#include <assert.h> | |
#include <algorithm> | |
#include <vector> | |
#include <set> | |
#include <string> | |
#include <queue> | |
#include <map> | |
using namespace std; |
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
""" | |
Email generation script for batch mails of IIIT Vadodara | |
""" | |
# import pyperclip # Use pyperclip if you want to paste emails directly to clipboard | |
emails = "" | |
# Batch of 2016 | |
# for i in range(1, 62 + 1): # CSE |
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
selenium==3.141.0 | |
webdriver_manager==3.2.1 | |
beautifulsoup4==4.9.1 |
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 onOpen() { | |
var ui = DocumentApp.getUi(); | |
// Or FormApp or SpreadsheetApp. | |
ui.createMenu('Custom Scripts') | |
.addItem('Insert Date', 'insertDate') | |
.addToUi(); | |
} | |
function insertDate() { | |
var cursor = DocumentApp.getActiveDocument().getCursor(); |
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
def solution(s): | |
codes = { ' ' : '000000', | |
'a' : '100000', | |
'b' : '110000', | |
'c' : '100100', | |
'd' : '100110', | |
'e' : '100010', | |
'f' : '110100', | |
'g' : '110110', | |
'h' : '110010', |
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
uname = "<your username>" | |
!git config --global user.email '<your email>' | |
!git config --global user.name '<your name>' | |
from getpass import getpass | |
password = getpass('Password:') | |
!git clone https://$uname:$password@github.com/<username>/<repo name>.git | |
!cd <repo name> |
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 { Builder, By, Key, until } = require('selenium-webdriver') | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)) | |
} | |
async function testJoin(classCode) { | |
console.log('Testing Joining') | |
const driver = await new Builder().forBrowser('chrome').build() |
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
// https://stackoverflow.com/a/17748203/10307491 | |
function allStorage() { | |
var archive = {}, // Notice change here | |
keys = Object.keys(localStorage), | |
i = keys.length; | |
while ( i-- ) { | |
archive[ keys[i] ] = localStorage.getItem( keys[i] ); | |
} |
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 { Builder, By, Key } = require("selenium-webdriver"); | |
async function sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
async function breakCtf() { | |
console.log("Breaking CTF..."); | |
const driver = await new Builder().forBrowser("chrome").build(); |
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
// Notice the pattern? 👀 | |
#include <stdio.h> | |
int main() { | |
int k = 0, l = 0, m =5,n = 5, val = 1; | |
// | |
// | |
// | |
int a[m][n]; | |
while (k < m && l < n) { |
OlderNewer