duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| #!/bin/bash | |
| # see also: https://kvz.io/bash-best-practices.html | |
| set -o errexit | |
| set -o pipefail | |
| set -o nounset | |
| # A script to monitor updates to this web page: | |
| # https://am-i-eligible.covid19vaccine.health.ny.gov/ | |
| # |
| /* Basic Digital Read and Rotary Phone Dial Reader | |
| * ------------------ | |
| * This code reads whether the phone is on the hook by treating that hook like a button that is either open or depressed | |
| AND it reads out the number dialed on a rotary phone dial by counting the pulses made by the spinning dial wheel. | |
| */ | |
| // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| // Hooking up the middleware with the express app | |
| // In app.js | |
| // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| var forceSSL = require('../middleware/ssl').force(config.hostname); | |
| if ('production' == app.get('env')) { | |
| app.use(forceSSL); | |
| } |
| import os | |
| from urlparse import urlparse | |
| from flask import Flask | |
| from pymongo import MongoClient | |
| MONGO_URL = os.environ.get('MONGOHQ_URL') | |
| if MONGO_URL: | |
| # Get client | |
| client = MongoClient(MONGO_URL) |
| #!/bin/bash | |
| ## This shell script will read all names from repos.txt | |
| ## which are names of git repositories located at | |
| ## git@main-reposerver:/path/to/repos | |
| ## if a mirror is not created, it will create | |
| ## | |
| ## other wise it will try to update the mirror | |
| ## | |
| ## Main purpose of having mirrors is backup so pushing |
| web: /usr/local/sbin/nginx -p `pwd`/tmp/nginx/ -c ../../nginx.conf | |
| fastcgi: /usr/local/sbin/php-fpm | |
| db: /usr/local/bin/mysqld |
| import math | |
| import Image | |
| import Levenshtein | |
| class BWImageCompare(object): | |
| """Compares two images (b/w).""" | |
| _pixel = 255 |
| """ base58 encoding / decoding functions """ | |
| import unittest | |
| alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ' | |
| base_count = len(alphabet) | |
| def encode(num): | |
| """ Returns num in a base58-encoded string """ | |
| encode = '' | |