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 argparse | |
import base64 | |
def main(args): | |
file_content = None | |
with open(args.input, 'rb') as f: | |
file_content = f.read() | |
b64_content = base64.b64encode(file_content) |
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
[ | |
{ | |
"name": "Andaman and Nicobar Islands", | |
"districts": [ | |
{ | |
"name": "Nicobar" | |
}, | |
{ | |
"name": "North and Middle Andaman" | |
}, |
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
FROM ubuntu:cosmic-20190131 | |
LABEL maintainer=Swanav<[email protected]> | |
WORKDIR /home/ | |
RUN apt-get update | |
RUN apt-get install -y gcc git wget make libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-cryptography python-future python-pyparsing | |
This file has been truncated, but you can view the full file.
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
diff --git a/src/Filelists.mk b/../lwip_nat/src/Filelists.mk | |
index 7d30bb8f..513539e6 100644 | |
--- a/src/Filelists.mk | |
+++ b/../lwip_nat/src/Filelists.mk | |
@@ -42,6 +42,8 @@ COREFILES=$(LWIPDIR)/core/init.c \ | |
$(LWIPDIR)/core/raw.c \ | |
$(LWIPDIR)/core/stats.c \ | |
$(LWIPDIR)/core/sys.c \ | |
+ $(LWIPDIR)/core/altcp.c \ | |
+ $(LWIPDIR)/core/altcp_tcp.c \ |
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
clc; clearvars; | |
lambda = 6; | |
a = [0.004 0.006 0.009]; | |
b = [5.3 5.5 5.8]; | |
c = [500 400 200]; | |
Pd = 800; | |
error = 100; | |
tolerance = 0.001; | |
k = 0; |
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
clc; | |
clearvars; | |
t = 0; | |
tf = 0; | |
tfinal = 0.5; | |
tc = 0.125; | |
tstep = 0.005; | |
M = 2.52/(180*50); | |
i = 2; |
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 zBus = Z_Bus_Assembly() | |
% Reads a csv file storing line data | |
% line sending_node receiving_node line_impedance | |
lineData = csvread('z_bus_data.csv', 1, 0); | |
% Find the number of lines and nodes in the imported line data | |
lines = length(lineData(:, 1)); | |
nodes = max(max(lineData(:, 2)), max(lineData(:, 3))); |
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
/*=============================================================================== | |
Lab Assignment 3 | |
Lab 3 (19 Feb 2018) | |
===============================================================================*/ | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> |
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
#include <stdio.h> | |
#include <stdbool.h> | |
/*============================================================== | |
Data Structures: Lab Assignment 1 | |
Lab 1 (5 February 2018) | |
Lab 2 (12 February 2018) | |
==============================================================*/ | |
/************************************************************** |
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
clc; clearvars; | |
% Data from IEEE 5-bus Data | |
% "http://shodhganga.inflibnet.ac.in/bitstream/10603/26549/14/14_appendix.pdf"" | |
lineData = ... | |
[ | |
% line sending bus receiving bus line impedance | |
1 1 2 0.02+0.060j | |
2 1 3 0.08+0.240j | |
3 2 3 0.06+0.250j | |
4 2 4 0.06+0.180j |
NewerOlder