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 python2.7 | |
''' | |
Simple PMI calculator for monthly payments. | |
Enter the loan amount, the annual interest rate and the number | |
of years. | |
''' | |
import sys | |
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 | |
# -*- coding: utf-8 -*- | |
''' | |
Report information about Python wheel files. | |
It is useful for analyzing wheels that have not been installed. | |
By default it provides a one-line ls -l like report of each wheel that | |
reports the file name, the size, the wheel name, the version and the | |
summary. |
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
// ANSI terminal color test. | |
// Just run it on your terminal to see the available colors. | |
// CITATION: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors | |
// | |
// $ go build atctest.go | |
// $ ./atctest | |
// | |
// Copyright (c) 2017 Joe Linoff | |
// License: MIT Open Source | |
package main |
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 must be included before index.js to make sure that the | |
// Google closure libraries are loaded correctly. | |
// <script type="text/javascript" src="js/closure-library/closure/goog/base.js"></script> | |
// <script type="text/javascript" src="js/inc.js"></script> | |
// <script type="text/javascript" src="js/index.js"></script> | |
// ================================================================ | |
goog.require('goog.array') | |
goog.require('goog.asserts') | |
goog.require('goog.color') |
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 | |
# -*- coding: utf-8 -*- | |
r''' | |
Ouput the structure and contents of BER and DER encoded ASN.1 files in | |
binary or PEM format. | |
It can be used to analyze the contents of X.509 certificates and key | |
files. | |
It offers two features not avaiable in the openssl ans1parse report: |
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 | |
# | |
# This script demonstrates how to create wheels for distributing the | |
# packages in a virtualenv. | |
# | |
# It first creates a virtualenv named "venv" and populates it with | |
# several packages. After that it creates wheels of all of the | |
# packages in the virtualenv for distribution in the wheel | |
# subdirectory. | |
# |
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 | |
''' | |
Show how gzip compress/uncompress works for in memory string objects | |
for python-2.7 and python-3.x. | |
License: MIT Open Source | |
Copyright (c) 2017 by Joe Linoff | |
''' | |
import base64 | |
import 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
#!/usr/bin/env python | |
''' | |
Implement openssl compatible AES-256 CBC mode encryption/decryption. | |
********************************* | |
UPDATE: 2021-08-28 | |
Apparently this no longer works out of the box. That is probavbly because the | |
pycrypto package is getting stale. | |
I found this hacky workaround to get things working but it is likely not safe: |
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 | |
# | |
# This example sets up two remote repositories named project1 and | |
# project2 in the current directory. | |
# | |
# It assumes a very old version of bash so that it can be used | |
# Mac OS X as well as Linux. | |
# | |
# Run it like this: | |
# |
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
// Simple program to test go regular expressions. | |
// | |
// You specify a regular expression followed by a list of | |
// strings to test against it. The program reports whether | |
// each string matched. | |
// | |
// Here is how you build it: | |
// | |
// $ go build trex.go | |
// |