Skip to content

Instantly share code, notes, and snippets.

Maksim Rakitin mrakitin

  • Brookhaven National Laboratory
  • Upton, NY
Block or report user

Report or block mrakitin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mrakitin
mrakitin / laptop_camera.py
Created Feb 6, 2018
Trigger laptop camera
View laptop_camera.py
import cv2
import matplotlib.pyplot as plt
class LaptopCamera:
def __init__(self, cam_id=0):
self.cam_id = cam_id
# There must be some "lazy" way to initialize it
self.cap = cv2.VideoCapture(cam_id)
self.cap.release()
View streaming_arrow.py
import random
import time
from collections import deque
from threading import Thread
import zmq
import numpy as np
import pandas as pd
View keybase.md

Keybase proof

I hereby claim:

  • I am mrakitin on github.
  • I am mrakitin (https://keybase.io/mrakitin) on keybase.
  • I have a public key ASCq44aRJAKRAJmSxGRHz8-wYzIs3bcOQK6hTENXKPXR8Ao

To claim this, I am signing this object:

View plugins_component_names.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View superbowl-scores.py
import datetime
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
d = pd.read_html('http://www.espn.com/nfl/superbowl/history/winners', header=1)
scores = []
for s in d[0]['RESULT']:
parts = s.split(',')
View bluesky_plan.py
import bluesky.plan_stubs as bps
import bluesky.plans as bp
from bluesky.callbacks.best_effort import BestEffortCallback
from bluesky.run_engine import RunEngine
from bluesky.utils import install_kicker
from databroker import Broker
from ophyd.sim import det, motor
RE = RunEngine()
db = Broker.named('temp')
View bluesky_plan_with_custom_callback.py
import bluesky.plan_stubs as bps
import bluesky.plans as bp
from bluesky.callbacks.best_effort import BestEffortCallback
from bluesky.run_engine import RunEngine
from bluesky.utils import install_kicker
from databroker import Broker
from ophyd.sim import det, motor
RE = RunEngine()
db = Broker.named('temp')
You can’t perform that action at this time.