Skip to content

Instantly share code, notes, and snippets.

View akki2825's full-sized avatar
🎯
Focusing

Akhilesh akki2825

🎯
Focusing
View GitHub Profile
@akki2825
akki2825 / mfa_dockerfile
Last active March 2, 2024 19:50
mfa_dockerfile
## This is a Dockerfile that installs MFA v1.0.1
FROM ubuntu:18.04
RUN apt update
RUN apt install software-properties-common -y
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt install python3.6 -y
RUN apt install wget -y
RUN echo "deb http://gb.archive.ubuntu.com/ubuntu/ bionic main universe" >> /etc/apt/sources.list
RUN apt install g++-6 -y
#!/bin/sh
# Aeneas (python3.6+) installation that works only for MacOS.
echo "Cloning the py3-aeneas repository..."
git clone https://github.com/akki2825/aeneas
cd aeneas/
echo "Installing system dependencies..."
brew install python3
#!/bin/sh
# Aeneas (python3.6+) installation that works only for Debian distros (including WSL with Ubuntu)
echo "Updating OS..."
sudo apt-get update
sudo apt-get upgrade
echo "Cloning py3-aeneas..."
git clone https://github.com/akki2825/aeneas
@akki2825
akki2825 / run.sh
Created February 15, 2020 18:08
openedx installation
#!/bin/bash
sudo systemctl start docker
echo "Docker is running!"
sudo make dev.checkout
sudo make dev.clone
sudo make dev.provision
echo "Updating devstack, sit back and enjoy!"
@akki2825
akki2825 / min-char-rnn.py
Created February 1, 2017 08:59 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
from __future__ import print_function
import numpy as np
import tensorflow as tf
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
# In this example, we limit mnist data
from __future__ import print_function
import tensorflow as tf
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
# Parameters
learning_rate = 0.01
from __future__ import print_function
import tensorflow as tf
import numpy
import matplotlib.pyplot as plt
import random
#parameters
learning_rate = 0.01
training_epochs = 1000
display_step = 50
from __future__ import print_function
import tensorflow as tf
a= tf.constant(2)
b = tf.constant(3)
with tf.Session() as sess:
print("a=2, b=3")
print("Addition with constants: %i" % sess.run(a+b))
print("Multiplication with constants: %i" % sess.run(a*b))
from __future__ import print_function
import tensorflow as tf
hello = tf.constant('Hello, Tensorflow!')
sess = tf.session()
print(sess.run(hello))
sess.close()
wp_embed_register_handler( 'gist', '/https?:\/\/gist\.github\.com\/([a-z0-9]+)(\?file=.*)?/i', 'bhww_embed_handler_gist' );