Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
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
from __future__ import print_function | |
import numpy as np | |
import tensorflow as tf | |
sess = tf.Session() | |
inp = tf.Variable(np.array([0.0, 0.0, 0.0, 0.0, 1.0]).reshape(1, 1, 5, 1), name="inp") | |
fil = tf.Variable(np.array([0.0, 0.5, 1.0]).reshape(1, 3, 1, 1), name="fil") | |
op = tf.nn.conv2d(inp, fil, strides=[1, 1, 1, 1], padding='SAME') |
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
var Cylon = require('cylon'); | |
Cylon.robot({ | |
connections: { | |
arduino: { adaptor: 'firmata', port: 'COM8' } | |
}, | |
devices: { | |
led: { driver: 'led', pin: 13 } | |
}, |
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
from __future__ import print_function | |
from gensim.models import KeyedVectors | |
import numpy as np | |
from sklearn.manifold import TSNE | |
import matplotlib.pyplot as plt | |
# Loading the vectors | |
## [Warning] Takes a lot of time | |
en_model = KeyedVectors.load_word2vec_format('wiki.en/wiki.en.vec') |
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
from __future__ import print_function | |
from gensim.models import KeyedVectors | |
# Creating the model | |
en_model = KeyedVectors.load_word2vec_format('wiki.en/wiki.en.vec') | |
# Getting the tokens | |
words = [] | |
for word in en_model.vocab: | |
words.append(word) |
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 flask library | |
from flask import Flask | |
# Initialize the application | |
app = Flask(__name__) | |
# Define a route using Python Decorator | |
@app.route('/') | |
def hello_world(): | |
return "<h1>Hello, KUETians!</h1>" |
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
#define baud 115200 | |
#define RX 10 | |
#define TX 11 | |
#include <SoftwareSerial.h> | |
String inputString = ""; | |
bool stringComplete = false; | |
SoftwareSerial wifi(RX, TX); |
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 numpy as np | |
from scipy import linalg | |
from __future__ import print_function | |
K = linalg.toeplitz([-2, 1, 0, 0, 0, 0]) | |
P, L, U = linalg.lu(K) | |
print (linalg.inv(L)) |
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
#include <Servo.h> | |
Servo servoMain; | |
SoftwareSerial gsm(2,3); | |
String outMessage = "Gas Leaking!"; | |
String destinationNumber = "+8801722063216"; | |
void setup() { | |
Serial.begin(4800); | |
pinMode(0, INPUT); |
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
পাইথন | |
বাংলাদেশ |