Skip to content

Instantly share code, notes, and snippets.

View robinnarsinghranabhat's full-sized avatar

Robin Narsingh Ranabhat robinnarsinghranabhat

  • Docsumo
  • Nepal
View GitHub Profile
@rupeshtiwari
rupeshtiwari / mac terminal theme customize mac os terminal command line zsh.md
Last active May 23, 2024 20:43
install oh my zsh on macos | change terminal theme on macos | Change console theme on macos, color, theme, style

How to customize mac os terminal using oh my zsh

Step1: download & install oh-my-zsh via curl

  • sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Note: if you already have folder then delete it running rm -r /Users/rupeshti/.oh-my-zsh

Step2 Open Zshrc file

@dabeaz
dabeaz / aproducer.py
Created October 17, 2019 17:46
"Build Your Own Async" Workshop - PyCon India - October 14, 2019 - https://www.youtube.com/watch?v=Y4Gt3Xjd7G8
# aproducer.py
#
# Async Producer-consumer problem.
# Challenge: How to implement the same functionality, but no threads.
import time
from collections import deque
import heapq
class Scheduler:
@maxim5
maxim5 / pretrained_word2vec_lstm_gen.py
Last active July 2, 2023 10:40
Text generator based on LSTM model with pre-trained Word2Vec embeddings in Keras
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
__author__ = 'maxim'
import numpy as np
import gensim
import string
@kylehounslow
kylehounslow / client.py
Last active April 23, 2024 10:58
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'