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
| <?php | |
| /** | |
| * Returns a pre-signed URL to access a restricted AWS S3 object. | |
| * | |
| * @param string $access_key the AWS access key | |
| * @param string $secret_key the AWS secret key associated with the access key | |
| * @param string $bucket the S3 bucket | |
| * @param string $canonical_uri the object in the S3 bucket expressed as a canonical URI. | |
| * This should begin with the / character, and should not be URL-encoded | |
| * @param int $expires the time that the pre-signed URL will expire, in seconds |
| # DUBSTEP | |
| # Combines ideas from my other gists | |
| current_bpm = 140.0 | |
| use_bpm current_bpm | |
| # WOBBLE BASS | |
| define :wob do | |
| use_synth :dsaw | |
| lowcut = note(:E1) # ~ 40Hz | |
| highcut = note(:G8) # ~ 3000Hz |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| # Flask related imports | |
| from flask import Flask, render_template, jsonify, abort, request, make_response, session, redirect, url_for | |
| # Flask extensions | |
| from flask.ext.mongoengine import MongoEngine | |
| from flask_debugtoolbar import DebugToolbarExtension | |
| # Flask blueprints | |
| import companies | |
| from companies.views import companies |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Node struct { | |
| Value int | |
| } |
| <?php | |
| namespace HelloWorld; | |
| use InvalidArgumentException; | |
| /** | |
| * This class is somewhere in your library | |
| * @Entity | |
| * @Table(name="users") | |
| */ |