- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
/* Useful celery config. | |
app = Celery('tasks', | |
broker='redis://localhost:6379', | |
backend='redis://localhost:6379') | |
app.conf.update( | |
CELERY_TASK_RESULT_EXPIRES=3600, | |
CELERY_QUEUES=( | |
Queue('default', routing_key='tasks.#'), |
#!/bin/bash | |
function merge { | |
git pull --rebase | |
git cherry-pick -x $1 | |
git status | |
echo "Commit? (y/n):" | |
read XN |
from sklearn.cluster import KMeans | |
from sklearn import metrics | |
import cv2 | |
# By Adrian Rosebrock | |
import numpy as np | |
import cv2 | |
# Load the image | |
image = cv2.imread("red.png") |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
#code adapted from http://tillbergmann.com/blog/python-gradient-descent.html | |
%matplotlib inline | |
import numpy as np | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
from scipy import stats | |
from sklearn.datasets.samples_generator import make_regression |
#!/usr/bin/env python3 | |
"""List S3 bucket objects in parallel. | |
This module contains a parallel implementation of S3 list_objects_v2() | |
API call. The implementation lists objects under every distinct prefix | |
in parallel. Hence, a speedup is achieved if objects are spread under | |
multiple distinct prefixes. | |
""" | |
import argparse |
#!/usr/bin/env bash | |
## | |
# This configures an S3 bucket ObjectCreated notification for the given Lambda | |
# function so that when a file is uploaded the Lambda function is invoked. This | |
# is useful when the bucket is not defined in the same CloudFormation template | |
# as the function. CloudFormation cannot setup the notification in this case. | |
# | |
# Note that the AWS CLI is used and will require valid AWS credentials for the | |
# account containing the resources. The 'jq' JSON processor is also required |
-------------------------------------------- | |
Version: 1.45.1 | |
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a | |
Date: 2020-05-14T08:33:47.663Z | |
Electron: 7.2.4 | |
Chrome: 78.0.3904.130 | |
Node.js: 12.8.1 | |
V8: 7.8.279.23-electron.0 | |
OS: Darwin x64 18.5.0 | |
------------------------------------------- |
Student Name - Ujjwal Singh ([email protected], [email protected])
Mentors - Dr. Bradley Alicea, Vinay Varma
"""Hello world, with a genetic algorithm. | |
https://twitter.com/matthen2/status/1769368467067621791 | |
""" | |
import random | |
import time | |
from dataclasses import dataclass | |
from itertools import chain | |
from typing import Iterable, List |