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
from OpenSSL.crypto import load_certificate, FILETYPE_PEM | |
cert_file_string = open("esx.crt", "rb").read() | |
cert = load_certificate(FILETYPE_PEM, cert_file_string) | |
sha1_fingerprint = cert.digest("sha1") | |
print sha1_fingerprint |
// Usage: | |
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
// then use as follows: | |
// | |
// query(term | [term, term, ...], term | [term, term, ...], ...) | |
// | |
// When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
// | |
// Term is of the format: | |
// ((-)text/RegExp) ( '-' means negation ) |
(ns ^:figwheel-always ramquiz.core | |
(:require [quiescent.core :as q] | |
[quiescent.dom :as d])) | |
(enable-console-print!) | |
(declare render-app) | |
;; the data |
boot -d com.github.jnr/jnr-ffi repl | |
=> (import jnr.ffi.LibraryLoader) | |
=> (definterface LibC (^int puts [^String s])) | |
=> (def libname (if (.contains (.toLowerCase (System/getProperty "os.name")) "windows") "msvcrt" "c")) | |
=> (def libc (.load (LibraryLoader/create LibC) libname)) |
Recent improvements to the ClojureScript compiler have greatly simplified setting up development versus production outputs.
This example uses Figwheel as something that you want to exclude for production, but the pattern is general.
With this simple setup you only need one html file/view and it will work for developement and production.
(require '[clojure.data.priority-map :refer [priority-map]]) | |
(defn map-vals [m f] | |
(into {} (for [[k v] m] [k (f v)]))) | |
(defn remove-keys [m pred] | |
(select-keys m (filter (complement pred) (keys m)))) | |
(defn dijkstra | |
"Computes single-source shortest path distances in a directed graph. |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.provision :shell, :privileged => false, :path => "bootstrap_ubuntu1204.sh" | |
end |