Skip to content

Instantly share code, notes, and snippets.

View Dawny33's full-sized avatar

Jalem Raj Rohit Dawny33

View GitHub Profile
@svpino
svpino / convolutions.py
Created February 8, 2021 20:37
Convolutions using OpenCV
import cv2
import numpy as np
from matplotlib import pyplot as plt
image = cv2.imread("building.jpg")
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
horizontal_edges = cv2.filter2D(image, -1, np.array([
[-1, -2, -1],
[ 0, 0, 0],
@offchan42
offchan42 / Machine Learning Curriculum.md
Last active March 2, 2024 00:02
Machine learning resources and related artificial intelligence concepts.
@sudhirkhanger
sudhirkhanger / devup_ama_notes_jalem_raj_rohit
Created May 30, 2016 14:07
Notes from Jalem Raj Rohit AMA on devup.in
Competitions:-
https://www.kaggle.com/
https://www.hackerearth.com/
Books:-
Introduction to Algorithms By Thomas H Cormen
Pattern Recognition and Machine Learning By Christopher M. Bishop
Freakonomics By Steven D. Levitt and Stephen J. Dubner
@diegopacheco
diegopacheco / connect-ssh.py
Last active March 10, 2017 12:53
Boto3 + Paramiko script to connect to a Box
import paramiko
k = paramiko.RSAKey.from_private_key_file("YOUR_PEM_FILE.pem")
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect( hostname = "ec2-1-1-1-1.us-west-2.compute.amazonaws.com", username = "ec2-user", pkey = k )
stdin , stdout, stderr = c.exec_command("hostname")
print("stdout: " + stdout.read())
print("stderr" + stderr.read())
@karimkhanp
karimkhanp / bigdata_resource
Last active April 6, 2022 13:48
Bigdata resources - Do I miss something. Add and make it richer
Bigdata is like combination of bunch of subjects. Mainly require programming, analysis, nlp, MLP, mathematics.
To see links, Go : http://www.quora.com/What-are-some-good-sources-to-learn-big-data
Here are bunch of courses I came accross:
Introduction to CS Course
Notes: Introduction to Computer Science Course that provides instructions on coding.
Online Resources:
Udacity - intro to CS course,
Coursera - Computer Science 101
@shockalotti
shockalotti / Go Golang - pointers exercise, swap x and y
Created May 29, 2014 05:27
Go Golang - pointers exercise, swap x and y
package main
import "fmt"
func swap(px, py *int) {
tempx := *px
tempy := *py
*px = tempy
*py = tempx
}

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@yoavram
yoavram / pypdfx.py
Last active September 12, 2022 12:09
A python client to pdfx 1.0 a "Fully-automated PDF-to-XML conversion of scientific text" (http://pdfx.cs.man.ac.uk/). Written to be used in Markx, a scientific-oriented Markdown editor (https://github.com/yoavram/markx).
# pdfx usage: http://pdfx.cs.man.ac.uk/usage
# requests docs: http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file
import requests # get it from http://python-requests.org or do 'pip install requests'
url = "http://pdfx.cs.man.ac.uk"
def pypdfx(filename):
'''
Filename is a name of a pdf file WITHOUT the extension
The function will print messages, including the status code,
@tott
tott / gist:3895832
Created October 15, 2012 21:57
create cpu load in python
#!/usr/bin/env python
"""
Produces load on all available CPU cores
"""
from multiprocessing import Pool
from multiprocessing import cpu_count
def f(x):
while True: