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
| #!/bin/bash | |
| while read word | |
| do | |
| printf 'Trying:%s\n' "$word" | |
| openssl pkcs12 -info -in ../prod_eriemobile.p12 -password pass:"$word" 2>/dev/null </dev/null | |
| done |
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
| + (void)load | |
| { | |
| [self textFieldsCycleInThisOrder:@[@"_name", @"_address", @"_phone"]]; | |
| } | |
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
| ;; FizzBuzz | |
| (define-macro (expect . args) | |
| (if (= 2 (length args)) | |
| (let ((message (car args)) | |
| (test-expression (cadr args))) | |
| `(if (not ,test-expression) | |
| (raise ,message))) | |
| `(if (not ,(car args)) | |
| (raise ',(car args))))) |
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
| // Yields the approximate result of a division by 1000. | |
| // NOTE: Can only be used for numbers less than 140,737,488,290 | |
| unsigned long quickDiv1000(unsigned long num) | |
| { | |
| unsigned long result; | |
| result = num * 65 + (num >> 2) + (num >> 5) + (num >> 8)+ (num >> 11) + 32768; | |
| return (result >> 16); | |
| } |
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
| ;; Digits | |
| (define (digit? c) | |
| (and (char>=? c #\0) | |
| (char<=? c #\9))) | |
| (define (digit->integer c) | |
| (- (char->integer c) | |
| (char->integer #\0))) |
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
| (define (make-generator proc) | |
| (define restart #f) | |
| (define (generator) | |
| (call/cc | |
| (lambda (return-c) | |
| (define (return v) | |
| (set! return-c (call/cc |
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
| (namespace ("generics#" | |
| dispatch-generic | |
| generic-methods-box | |
| )) | |
| (define-macro (define-generic form) | |
| `(define ,(car form) | |
| (let (($methods (box '()))) | |
| (lambda args | |
| (dispatch-generic (unbox $methods) args))))) |
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
| (defstruct start-options | |
| pivotal-story-id) | |
| (defun parse-start-args (args) | |
| (loop with options = (make-start-options) | |
| until (null args) | |
| do (cond | |
| ((equalp "-p" (first args)) | |
| (setf (start-options-pivotal-story-id options) (second args)) | |
| (setf args (cddr args))) |
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
| (defmacro binary (infix-op &key is) | |
| (let ((pattern (cond | |
| ((not is) | |
| `(,infix-op :left :right)) | |
| ((symbolp is) | |
| `(,is :left :right)) | |
| (t | |
| is)))) | |
| `(cons ,infix-op #'(lambda (left right) | |
| `( ; BRAIN FAIL HERE. |
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
| (require 'cl-test-more) | |
| (defpackage infix | |
| (:use :cl :cl-test-more)) | |
| (in-package :infix) | |
| (defun simple-binary (sym) | |
| #'(lambda (left right) | |
| (list sym left right))) |