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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.8.0; | |
contract AverageStream { | |
uint private count; | |
uint private pre_average; | |
uint public decimal; |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.7.0; | |
interface Registerer { | |
function registerMe() external pure returns(string memory); | |
} | |
// Task #1 from HW 4 | |
contract NamedRegisterer is Registerer { |
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
{ | |
"deploy": { | |
"VM:-": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"main:1": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, |
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 numpy | |
import os | |
import scipy.io.wavfile | |
import python_speech_features | |
import re | |
import wave | |
import matplotlib.pyplot as plt | |
import numpy as np | |
################################################################################ |
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 sys | |
import numpy as np | |
import tensorflow as tf | |
from tensorflow.keras import models, layers, callbacks | |
from tensorflow.keras.utils import to_categorical | |
from tensorflow.keras.optimizers import Adam | |
from tensorflow.keras.datasets import mnist | |
# Change this to the location of the database directories |
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 sys | |
from typing import Counter | |
import tensorflow as tf | |
import numpy as np | |
from tensorflow.keras import models, layers, callbacks | |
from tensorflow.keras.utils import to_categorical | |
from tensorflow.keras.optimizers import Adam | |
from tensorflow.keras.datasets import mnist | |
from matplotlib import pyplot as plt |
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 sys | |
import numpy as np | |
from tensorflow.keras import models, layers, callbacks | |
from tensorflow.keras.utils import to_categorical | |
from tensorflow.keras.optimizers import Adam | |
from tensorflow.keras.datasets import mnist | |
from matplotlib import pyplot as plt | |
# Change this to the location of the database directories |
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 sys | |
import numpy as np | |
from tensorflow.keras import models, layers, callbacks | |
from tensorflow.keras.utils import to_categorical | |
from tensorflow.keras.optimizers import Adam | |
from tensorflow.keras.datasets import mnist | |
# Change this to the location of the database directories | |
DB_DIR = os.path.dirname(os.path.realpath(__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
import os | |
import sys | |
import numpy as np | |
from tensorflow.keras import models, layers | |
from tensorflow.keras.utils import to_categorical | |
from tensorflow.keras.optimizers import Adam | |
from tensorflow.keras.datasets import mnist | |
# Change this to the location of the database directories | |
DB_DIR = os.path.dirname(os.path.realpath(__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
# Mad Libs in Julia | |
# Source: https://github.com/logankilpatrick/10-Julia-Projects-for-Beginners | |
function play_mad_libs() | |
print("Enter a verb (action): ") | |
verb1 = readline() | |
print("Enter an adjective (descriptive word): ") | |
adj1 = readline() |