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 main | |
import ( | |
"fmt" | |
"http" | |
"flag" | |
"os" | |
"bytes" | |
"io" | |
"encoding/base64" |
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
// Copyright 2010 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"compress/gzip" |
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
// Written by Dmitry Chestnykh. Public domain. | |
package main | |
import ( | |
"crypto/blowfish" | |
"fmt" | |
"time" | |
) | |
func encrypt(key uint8, src string) string { |
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
/* Written by Dmitry Chestnykh. Public domain. */ | |
#include <err.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include <openssl/blowfish.h> | |
#include <openssl/lhash.h> | |
/* Encryption and decryption */ |
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
div.GOFTCUUBI3 { | |
min-height: 0; | |
} | |
div.GOFTCUUBJ3.GOFTCUUBGW { | |
padding: 5px; | |
height: 30px; | |
} | |
div.GOFTCUUBEE.GOFTCUUBCE.GOFTCUUBE4 { |
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
(defun rst-to-html () | |
"Convert current file from reStructuredText to HTML, outputting to file.html." | |
(interactive) | |
(when (not (stringp (buffer-file-name))) | |
(error "No file name")) | |
(message "Running...") | |
(shell-command | |
(concat "rst2html -d " | |
(shell-quote-argument (buffer-file-name)) |
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
5.5. Using wrong tools | |
Using the wrong tools is obviously an intrinsically bad idea. The trouble is | |
that often one discovers a tool’s inadequacy only after having invested a | |
substantial amount of effort to 24 build and understand it, and the tool thus | |
having become “valuable”. This happened to the author and his team when | |
implementing the first Pascal compiler in 1969. | |
The tools available for writing programs were an assembler, a Fortran and an | |
Algol compiler. The latter was so poorly implemented that we did not dare rely |
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
MASTER CARD format: | |
1 byte | 1 byte | 2 bytes | 2 bytes | 32 bytes | 32 bytes | 16 bytes | 6 bytes | 8 bytes | |
=======|========|=========|=========|==========|***********************|=========|======== | |
version| logN | r | p | salt | enc key | mac key | hash | MAC | |
-------|---------------------------------------|-----------------------|---------|-------- | |
| blakrypt parameters |encrypted with nonce=0 | | |
enc key, mac key -- randomly generated keys for cards | |
(stored in Master card encrypted and authenticated with keys derived from password.) |
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
Мы изучаем каждый чужой автомобиль, | |
который появляется на свет, чтобы открыть детали, которые могут быть | |
разработаны дальше или приспособлены к нашим автомобилям. Если кто-нибудь | |
работает лучше нас, мы, по крайней мере, хотим это знать и для этого | |
покупаем по экземпляру каждого, вновь выходящего автомобиля. Обыкновенно на | |
автомобиле некоторое время ездят и пробуют его, затем разбирают на части и | |
точно исследуют, чтобы установить, как и из чего сконструирована каждая | |
часть. Где-нибудь по соседству от Дирборна можно встретить образец каждого | |
автомобиля, который фабриковался когда-либо на свете. Время от времени, | |
когда мы опять покупаем новый автомобиль, об этом печатают в газетах и |
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
#import <Cocoa/Cocoa.h> | |
@interface CRTransparentSearchFieldCell : NSSearchFieldCell | |
@end |