This file contains hidden or 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
(ns foo | |
(:import (java.util Properties) | |
javax.mail.internet.MimeMessage | |
(javax.mail.internet MimeMessage InternetAddress) | |
(javax.mail Session Transport Authenticator | |
PasswordAuthentication Message$RecipientType))) | |
(defn send-gmail [{:keys [from to subject text user password]}] | |
(let [auth (proxy [Authenticator] [] | |
(getPasswordAuthentication [] |
This file contains hidden or 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
;; Datomic example code | |
;; | |
;; The extent of entity ?x is all datoms that are about ?x. | |
;; Drop this into your rules. | |
;; | |
;; Demonstrates | |
;; | |
;; 1. recursive query (extent calls itself) | |
;; 2. disjunction (different extent bodies are ORed) | |
;; 3. component attributes (e.g. your arm is a component, your brother isn't) |
This file contains hidden or 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
Security Alert - Please reset your npm registry account | |
================================================== | |
The security of the npm registry has just been upgraded. This corrects a known | |
flaw which led to the leakage of the password_sha and salt fields. The good | |
news is that the leak is plugged. The bad news is that it existed for quite a | |
while. | |
tl;dr |
This file contains hidden or 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
∴ lein2 all test | |
Performing task 'test' with profile(s): 'dev,1.2' | |
Testing clj-http.test.client | |
Testing clj-http.test.cookies | |
Testing clj-http.test.core | |
Ran 47 tests containing 175 assertions. |
This file contains hidden or 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
#!/usr/bin/env python | |
# Look! It's Statementless Python | |
# Copyright Peter Corbett 2005 | |
# NO WARRANTY: If you use this for anything important, you're mad! | |
# Credits to: Ian Jackson for having the idea, Ken Slonneger for | |
# "Syntax and Semantics of Programming Languages" (large parts this program | |
# were hand-translated from one of the examples), and fanf, with whom I | |
# cannot hope to compete. | |
# Unlike most Python programs, whitespace matters little here. It could | |
# be a one-liner if you had a monitor long enough. |
This file contains hidden or 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
{-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses, TemplateHaskell, OverloadedStrings #-} | |
import Yesod | |
-- Versions installed: 0.9.3.4 | |
data HelloWorld = HelloWorld | |
mkYesod "HelloWorld" [parseRoutes| | |
/ HomeR GET | |
|] |
This file contains hidden or 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
;; requires [com.cemerick/pomegranate "0.0.2"] | |
;; i.e. https://github.com/cemerick/pomegranate | |
(use '[cemerick.pomegranate.aether :only (dependency-hierarchy resolve-dependencies)]) | |
=> (pprint | |
(dependency-hierarchy | |
'[[incanter "1.2.3"]] | |
(resolve-dependencies {:coordinates '[[incanter "1.2.3"]] | |
:repositories (merge cemerick.pomegranate.aether/maven-central {"clojars" "http://clojars.org/repo"})}))) |
This file contains hidden or 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
;; | |
;; SELECT-MATCH macro (and IN macro) | |
;; | |
;; Copyright 1990 Stephen Adams | |
;; | |
;; You are free to copy, distribute and make derivative works of this | |
;; source provided that this copyright notice is displayed near the | |
;; beginning of the file. No liability is accepted for the | |
;; correctness or performance of the code. If you modify the code | |
;; please indicate this fact both at the place of modification and in |
This file contains hidden or 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
;;; -*- Package: User; Syntax: Common-Lisp; Mode: Lisp; Base: 10 -*- | |
;;; unify.lisp | |
(in-package "USER") | |
;;; **************************************************************** | |
;;; Unification Algorithm ****************************************** | |
;;; **************************************************************** | |
;;; | |
;;; Random implementations of unification. |
This file contains hidden or 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
;;; rewriting.lisp | |
;;; Directed equations as reductions: rewrite rules and normal forms. | |
;;; Created: 13-11-99 Last revision: 10-04-2001 | |
;;; ==================================================================== | |
#| To certify this book: | |
(in-package "ACL2") | |
(certify-book "rewriting") |