This gist demonstrates one of the issues with the new build system of Frappe.
Step 1
Add the sq.js
and square.bundle.js
from gist to apps/frappe/frappe/public/js
in your bench.
Step 2
Notes from Advanced Python Workshop conducted on 24th - 26th May 2013 in Bangalore.
def plot_decision_boundaries(X, y, model_class, **model_params): | |
"""Function to plot the decision boundaries of a classification model. | |
This uses just the first two columns of the data for fitting | |
the model as we need to find the predicted value for every point in | |
scatter plot. | |
One possible improvement could be to use all columns fot fitting | |
and using the first 2 columns and median of all other columns | |
for predicting. |
Trying to install Lineage OS on MI A2 (jasmine_sprout) follow the instructions from:
https://wiki.lineageos.org/devices/jasmine_sprout/install
fastboot oem unlock
- donefunction grid() { | |
push(); | |
noFill(); | |
stroke(200); | |
for (var x=0; x<width; x+=50) { | |
line(x, 0, x, height); | |
} | |
for (var y=0; y<height; y+=50) { | |
line(0, y, width, y); |
"""Python is infinitely beautiful! | |
This program is a response to the post "Infinite work is less work" by | |
Damian Conway[1]. | |
This program demonstrates how infinity can be handled elegantly in | |
Python! | |
THE PROBLEM: | |
Write a script to generate first 10 strong and weak prime numbers. |
Write a CLI application to list the number of covid19 cases and deaths in India.
You can use the following API for getting that data:
https://github.com/anandology/covid19
The required interface is:
$ python covid19.py cases
STATE CONFIRMED ACTIVE DEATHS
{ | |
"india": { | |
"confirmed": 586, | |
"active": 534, | |
"deaths": 10, | |
"recovered": 42, | |
"indians": 543, | |
"foreigners": 43 | |
}, | |
"states": { |
/* | |
FILE: ~/.jupyter/custom/custom.css | |
Custom CSS to optimize the notebook presentation in full-screen when zoomed in. | |
*/ | |
@media all and (max-width: 800px) { | |
.prompt { | |
display: none !important; | |
} | |
#header-container, #maintoolbar, #menubar { |
# import pandas as pd | |
from .heavy_modules import pandas as pd | |
# from google.cloud import bigquery | |
from .heavy_modules import google_cloud_bigquery as bigquery | |
def foo(path): | |
df = pd.read_csv(path) | |
... |