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 urllib.request | |
from bs4 import BeautifulSoup | |
import time | |
from datetime import datetime, timedelta | |
data = [] # array to hold listings found | |
seenFirstYesterday = False | |
nextpage = True | |
number = 0 | |
base = "https://www.kijiji.ca" |
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
39 listings found | |
Title: Cash bonus and free truck! | |
Date: 2017-09-09 21:48:35 | |
Price: Please Contact | |
Url: /v-condo-for-sale/ottawa/cash-bonus-and-free-truck/1296412553 | |
Title: Investors!! | |
Date: 2017-09-09 21:44:15 | |
Price: Please Contact |
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
#include<iostream> | |
#include <string> | |
#include <map> | |
#include <utility> | |
using namespace std; | |
/* | |
* Run instruction: `g++ d1.cpp && ./a.out < input.txt` | |
* `input.txt` is the input file from the problem: http://adventofcode.com/2016/day/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
import java.io.*; | |
import java.util.*; | |
/* | |
* @author DarkMarksDoe | |
* @author Strawstack | |
*/ | |
/* sample input | |
6 |
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
{ | |
"2": { | |
"date": "Sun 21 Apr", | |
"level": "medium", | |
"url": "https://leetcode.com/problems/add-two-numbers/" | |
}, | |
"3": { | |
"date": "Tuesday 23 Apr", | |
"level": "medium", | |
"url": "https://leetcode.com/problems/longest-substring-without-repeating-characters/" |
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
Privacy Policy | |
Richard built the C2G app as a Free app. This SERVICE is provided by Richard at no cost and is intended for use as is. | |
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. | |
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. | |
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at C2G unless otherwise defined in this Privacy Policy. |
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
[ | |
{ | |
"question": { | |
"questionId": "1344", | |
"questionFrontendId": "1224", | |
"title": "Maximum Equal Frequency", | |
"titleSlug": "maximum-equal-frequency", | |
"isPaidOnly": false, | |
"difficulty": "Hard", | |
"likes": 69, |
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
<!DOCTYPE html> | |
<html><head> | |
<!-- REQUIRED --> | |
<!-- | |
File called 'graph.json' in the same directory containing | |
list of edges. Example: | |
[ | |
["A", "B"], |
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
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Include the P2P library --> | |
<script src="https://unpkg.com/peerjs@1.0.0/dist/peerjs.min.js"></script> | |
<style> | |
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
# N = RandomPrime[{2^1020, 2^1025}] | |
# G = PrimitiveRoot[N] | |
import random | |
N = 450399019389671650452249084921759078761980896382890703798228170622215717666353 | |
G = 3 | |
def msgToNumber(msg): | |
total = 0 | |
for i in range(len(msg)): |
OlderNewer