This file contains 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 os | |
import pvlib | |
import pandas as pd | |
from matplotlib import pyplot as plt | |
import seaborn as sns | |
sns.set() | |
plt.ion() | |
INVERTERS = pvlib.pvsystem.retrieve_sam('CECInverter') | |
INVERTER_10K = INVERTERS['SMA_America__SB10000TL_US__240V_'] |
This file contains 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 | |
from Tkinter import * | |
from ttk import * | |
root = Tk() # create a top-level window | |
master = Frame(root, name='master') # create Frame in "root" | |
master.pack(fill=BOTH) # fill both sides of the parent |
This file contains 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
""" | |
An open PV system specification | |
""" | |
import json | |
import pathlib | |
import yaml | |
def get_pv_spec(pv_spec_pathlib_file_or_buffer): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
{ | |
"key": "<your-netflix-key>", | |
"secret": "<your-netflix-secret>" | |
} |
This file contains 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
function [fx,fy] = polyDer2D(p,x,y,n,m) | |
%POLYDER2D Evaluate derivatives of 2-D polynomial using Horner's method. | |
% F = POLYDER2D(P,X,Y,N,M) evaluates the derivatives of 2-D polynomial P at | |
% the points specified by X and Y, which must have the same dimensions. The | |
% outputs FX and FY will have the same dimensions as X and Y. N and M specify | |
% the order of X and Y respectively. Polynomial coefficients are in the | |
% following order. | |
% | |
% F(X,Y) = P_1 * X^N * Y^M + P_2 * X^{N-1} * Y^M + ... + P_{N+1} * Y^M + ... | |
% P_{N+2} * X^N * Y^{M-1} + P_{N+3} * X^{N-1} * Y^{M-1} + ... + P_{2*(N+1)} * Y^{M-1} + ... |
This file contains 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
%% initialize workspace | |
close('all'),clear('all'),clc | |
rmdir('keys','s') % delete old keys | |
%% test encryption | |
PANGRAM = 'The quick brown fox jumped over the lazy dog.'; | |
EncryptionUtil.testJschSECSH(PANGRAM) % run test | |
%% make SSH keys in workspace | |
keyFactory = java.security.KeyFactory.getInstance('RSA'); % make a key factory | |
% read public OpenSSH key | |
[keyln, totlines] = EncryptionUtil.readJschKeyFile('keys/publicJschSECSH.key',7); |