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
package main | |
import ( | |
"io" | |
"log" | |
"net" | |
"time" | |
) | |
func reader(r io.Reader) { |
#! /bin/bash | |
if [ -z "$1" ]; then | |
echo "please supply at least one server to connect to" >&2 | |
exit 1 | |
fi | |
target=multi-ssh-$$ | |
if [ -z "$TMUX" ]; then |
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.
package main | |
import ( | |
"bufio" | |
"fmt" | |
"net" | |
"os" | |
"syscall" | |
) |
class Array | |
# Returns a proc which calls [] with the array's contents as arguments | |
# | |
# ====Usage | |
# [[1, 2], [3, 4], [5, 6]].map(&[0]) | |
# # => [1, 3, 5] | |
# | |
# [{ hello: 'world' }, { hello: 'sun', goodbye: 'moon' }].map(&[:hello]) | |
# # => ['world', 'sun'] |
math.randomseed(os.time()) | |
local charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | |
function string.random(length) | |
if length > 0 then | |
return string.random(length - 1) .. charset:sub(math.random(1, #charset), 1) | |
else | |
return "" | |
end |
#!/usr/bin/env ruby | |
def Inherits(*classes) | |
klass = Class.new classes.shift # inherit from the last clas | |
while refine_with = classes.shift # include the others as module refinements just so we can turn them into modules | |
klass.include Module.new { include refine(refine_with) { } } | |
end | |
klass | |
end |
To remove a submodule you need to:
#!/usr/bin/env ruby | |
# | |
# This code snippet shows how to enable SSL in Sinatra+Thin. | |
# | |
require 'sinatra' | |
require 'thin' | |
class MyThinBackend < ::Thin::Backends::TcpServer | |
def initialize(host, port, options) |