Skip to content

Instantly share code, notes, and snippets.

#Samsiksha 17-Feb-21

OpenEdx API performance - what are the caches built around OpenEDX Can we cache most frequent queries - getEnrolment(), getCourseMeta()

Most important optimizations -

- CDN
- API Gateway
- Middle-tier cache
@antani
antani / stocks
Created July 17, 2017 18:05
Stocks
'ACC',
'ADANIENT',
'ADANIPORTS',
'ADANIPOWER',
'ABIRLANUVO',
'AJANTPHARM',
'ALBK',
'AMARAJABAT',
'AMBUJACEM',
'ANDHRABANK',
@antani
antani / 0_reuse_code.js
Created July 17, 2017 18:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@antani
antani / today_list.txt
Created July 5, 2017 07:04
today_list
"ADANIPORTS", "APOLLOTYRE", "AMARAJABAT", "BAJFINANCE", "BATAINDIA", "BHARATFORG", "BPCL", "CADILAHC", "DALMIABHA", "DRREDDY", "EXIDEIND", "ESCORTS", "FORTIS", "GRASIM", "GODREJIND", "HINDALCO", "HAVELLS", "JETAIRWAYS", "JUBLFOOD", "MCDOWELL-N", "RELCAPITAL", "SRTRANSFIN", "TATACOMM", "TITAN", "VOLTAS"
@antani
antani / clairvoyance.py
Created February 3, 2017 04:46
Test with Clairvoyance
from clairvoyant import Backtest
from pandas import read_csv
from nsepy import get_history
from datetime import date
# Testing performance on a single stock
variables = [] # Financial indicators of choice # "SSO", "SSC"
trainStart = '2013-03-01' # Start of training period
trainEnd = '2015-07-15' # End of training period
def merge_sort(msg, m):
print msg,m
result=[]
#Exit condition
if len(m) < 2:
return m
mid = int(len(m)/2)
left = m[:mid]
@antani
antani / Programming Interview
Last active August 29, 2015 14:04
Programming Interview
Must read articles
-------------------
1. http://www.joelonsoftware.com/articles/GuerrillaInterviewing3.html
2. http://www.restlessprogrammer.com/2013/09/hacking-coding-interview.html
3. https://www.interviewcake.com/coding-interview-tips
For Java and Enterprise Java, take a look at these tools. You dont need to go through each of them in detail but knowing them that they exist and what are they used for is certainly going to help
1. https://github.com/akullpp/awesome-java
Blogs and references for Java: