Skip to content

Instantly share code, notes, and snippets.

View shivakrishna9's full-sized avatar
🎯
Focusing

Shiva Krishna Yadav shivakrishna9

🎯
Focusing
  • Hyderabad
View GitHub Profile
@shivakrishna9
shivakrishna9 / README.md
Created January 9, 2018 06:23 — forked from tyler-austin/README.md
Code Fights - areSimilar

Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays.

Given two arrays a and b, check whether they are similar.

Example

For a = [1, 2, 3] and b = [1, 2, 3], the output should be
areSimilar(a, b) = true.

The arrays are equal, no need to swap any elements.

DATA SCIENCE

Subjects:

  • Intro to programming
  • Statistics & Probability
  • Intro to Data Science
  • Data Visualization
  • Machine learning
  • Deep Learning
@shivakrishna9
shivakrishna9 / active.md
Created August 17, 2017 20:42 — forked from paulmillr/active.md
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Fri, 19 Jun 2015 15:17:38 GMT till Sun, 19 Jun 2016 15:17:38 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 635)
@shivakrishna9
shivakrishna9 / twitter_api_1.1_backup.js
Created August 17, 2017 05:47 — forked from baptx/twitter_api_1.1_backup.js
Twitter API 1.1 favorites/following/followers backup
/* Twitter API 1.1 favorites/following/followers backup (a textarea will appear so you can copy/paste to save data).
** Get your access keys to use Twitter API 1.1: https://dev.twitter.com/docs/auth/tokens-devtwittercom
** Format JSON in Firefox: https://addons.mozilla.org/EN-us/firefox/addon/jsonview/
** You can change Twitter API URL and Twitter screen_name, then execute script from a web page like https://api.twitter.com/1.1 in Firefox Scratchpad or any other browser console.
*/
var url = "https://api.twitter.com/1.1/favorites/list.json";
//var url = "https://api.twitter.com/1.1/friends/list.json";
//var url = "https://api.twitter.com/1.1/followers/list.json";
@shivakrishna9
shivakrishna9 / README-Template.md
Created August 9, 2017 15:39 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@shivakrishna9
shivakrishna9 / lm_example
Created July 22, 2017 17:27 — forked from yoavg/lm_example
Unreasonable Effectiveness of LMs
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# The unreasonable effectiveness of Character-level Language Models\n",
"## (and why RNNs are still cool)\n",
"\n",
"###[Yoav Goldberg](http://www.cs.biu.ac.il/~yogo)\n",
@shivakrishna9
shivakrishna9 / min-char-rnn.py
Created July 22, 2017 16:21 — 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)
@shivakrishna9
shivakrishna9 / android-19-circle.yml
Created July 17, 2017 05:43 — forked from donnfelker/android-19-circle.yml
Sample CircleCI Configuration For an Android App
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/your-app-name/app/build/outputs/apk/
machine:
environment:
@shivakrishna9
shivakrishna9 / automobile.ipynb
Created June 11, 2017 18:53 — forked from martinwicke/automobile.ipynb
Estimator demo using Automobile dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<Text View
android:text="Hapy Birthday"
android:layout_width="150dp"
android:layout_height="150"
android:background="@android:color/darker_groy"
>