Skip to content

Instantly share code, notes, and snippets.

View akki2825's full-sized avatar
🎯
Focusing

Akhilesh akki2825

🎯
Focusing
View GitHub Profile
import tweepy
from textblob import TextBlob
import csv
def Tweep():
consumer_key = ""
consumer_secret = ""
access_token = ""
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' );
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
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
# 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 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
@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)
# These are all the modules we'll be using later. Make sure you can import them
# before proceeding further.
from __future__ import print_function
import matplotlib.pyplot as plt
import numpy as np
import os
import random
import hashlib
import json
import sys
@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!"
#!/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