For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
# | |
# Copyright (C) 2010-2012 Vinay Sajip. All rights reserved. Licensed under the new BSD license. | |
# | |
import ctypes | |
import logging | |
import os | |
class ColorizingStreamHandler(logging.StreamHandler): | |
# color names to indices | |
color_map = { |
# | |
# usage, convert this work method to a Runnable anonymous class | |
# | |
# @anonymous_class(Runnable, 'run') | |
# def work(dummy): | |
# print 'hello world' | |
# | |
# work.run() | |
# | |
import types |
#!/usr/bin/clisp | |
(defconstant ticks (list "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█")) | |
(defun spark (data-list) | |
(let ((max-value (apply #'max data-list)) | |
(ticks-length (length ticks))) | |
(let ((ticks-unit (/ max-value (- ticks-length 1)))) | |
(map 'list (lambda (x) (elt ticks (ceiling (/ x ticks-unit)))) data-list)))) |
; Final pre-processed "transcriptions" of several Coltrane "Giant Steps" solos | |
; are here: https://github.com/daveray/yardbird | |
; Please take the data and do something fun with it! | |
; TODO | |
; Incorporate changes | |
; Convert to concert pitch | |
; Convert to correct octave | |
(use 'overtone.live) |
(defproject foo "1.0.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:dependencies [[org.clojure/clojure "1.3.0"] | |
[org.clojure/clojurescript "0.0-927"]]) |
∴ 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. |
#### | |
# Description:a ruby script to monitor metaq queue size | |
# Requirements: zookeeper | |
# sudo gem install zookeeper | |
# | |
##### | |
require 'rubygems' | |
require 'zookeeper' | |
require 'socket' |
public abstract class RightDrawableOnTouchListener implements OnTouchListener { | |
Drawable drawable; | |
private int fuzz = 10; | |
/** | |
* @param keyword | |
*/ | |
public RightDrawableOnTouchListener(TextView view) { | |
super(); | |
final Drawable[] drawables = view.getCompoundDrawables(); |
(defun vulpea-project-p () | |
"Return non-nil if current buffer has any todo entry. | |
TODO entries marked as done are ignored, meaning the this | |
function returns nil if current buffer contains only completed | |
tasks." | |
(seq-find ; (3) | |
(lambda (type) | |
(eq type 'todo)) | |
(org-element-map ; (2) |