Skip to content

Instantly share code, notes, and snippets.

View oeway's full-sized avatar

Wei Ouyang oeway

  • Science For Life Laboratory
  • Stockholm
View GitHub Profile
@oeway
oeway / 0_reuse_code.js
Created March 13, 2017 23:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@oeway
oeway / janus_demo_1
Last active October 31, 2018 15:59 — forked from sunliqun123/janus_demo_1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import janus
import asyncio
import time
import threading
from bson.objectid import ObjectId
from autobahn.asyncio.wamp import ApplicationSession
from autobahn.asyncio.wamp import ApplicationRunner
@oeway
oeway / proxy_server.py
Last active January 21, 2024 12:12 — forked from barrachri/proxy_server.py
Proxy Server with aiohttp
import logging
import sys
from urllib.parse import urljoin
import asyncio
import aiohttp
from aiohttp import web
TARGET_SERVER_BASE_URL = 'http://127.0.0.1:8888'
@oeway
oeway / zoom_movie_ImageJ_v2a.ijm
Created October 7, 2020 09:21 — forked from aaristov/zoom_movie_ImageJ_v2a.ijm
Improved ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI) now with logarithmic approach and dynamic scalebar
//ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI)
//v2 Eugene Katrukha katpyxa at gmail.com
//v2a Andrey Aristov: aaristov at pasteur.fr
requires("1.48h");
//check if there is rectangular selection
if(selectionType() ==0)
{
sTitle=getTitle();
sMovieTitle=sTitle+"_zoom_movie";
@oeway
oeway / LuCa-7color_Scan1.ome.tif_offsets.json
Last active March 24, 2021 16:58 — forked from manzt/LuCa-7color_Scan1.ome.tif_offsets.json
experimental reference spec maker for ome-tiff
{".zgroup": "{\n \"zarr_format\": 2\n}", ".zattrs": "{\n \"multiscales\": [\n {\n \"datasets\": [\n {\n \"path\": \"0\"\n },\n {\n \"path\": \"1\"\n },\n {\n \"path\": \"2\"\n },\n {\n \"path\": \"3\"\n },\n {\n \"path\": \"4\"\n },\n {\n \"path\": \"5\"\n },\n {\n \"path\": \"6\"\n },\n {\n \"path\": \"7\"\n },\n {\n \"path\": \"8\"\n }\n ],\n \"metadata\": {},\n \"name\": \"resolution #1\",\n \"version\": \"0.1\"\n }\n ]\n}", "0/.zarray": "{\n \"chunks\": [\n 1,\n 1024,\n 10