Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

<snippet>
<content><![CDATA[
#!/usr/bin/python
import sys
import argparse
def main():
parser = argparse.ArgumentParser(description="""
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import argparse
import logging
import os
import os.path as op
import resgen as rg
import sys
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pkerpedjiev
pkerpedjiev / index.js
Created November 5, 2018 16:26
AWS Lambda Mandelbrot Tiles Code
function tileset_info() {
return {
'min_pos': [-2.5, -2.5],
'max_pos': [2.5, 2.5],
'bins_per_dimension': 256,
'max_width': 5,
'max_zoom': 50,
'mirror_tiles': 'false',
};
}
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>HiGlass</title>
<style type="text/css">
.canvasjs-chart-credit {
display:none;
@pkerpedjiev
pkerpedjiev / list.md
Last active May 25, 2018 15:30 — forked from notwaldorf/list.md
Meownica's packing list

Pete's packing list

Forked from: Meownica's packing list

I travel a lot so I'm down to like 30 minutes of packing per any kind of trip. I always bring one carry-on suitcase for any trips up to 2 weeks (that I never check in unless forced) -- I have an Away suitcase because it's got a built-in (removable) battery, and amazing wheels.

🚨

  • 🆔Wallet & Passport
  • 💧Travel water bottle
  • 💳Travel credit cards (don't pay foreign currency fees!)
@pkerpedjiev
pkerpedjiev / streaming_loader.ipynb
Last active April 23, 2018 18:08
streaming_loader
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(cenv3) ubuntu@ip-172-31-4-151:~/projects/higlass-server [benchmark-tiles|A+!?]$ fusermount -u media; goofys --uid 1000 --gid 1000 -o allow_other --file-mode 0666 -f --debug_s3 higlass:higlass.io/media media
fusermount: entry for /home/ubuntu/projects/higlass-server/media not found in /etc/mtab
2017/08/31 03:59:33.510121 s3.DEBUG HEAD https://s3.amazonaws.com/higlass = 200 [us-east-1]
2017/08/31 03:59:33.510178 s3.INFO anonymous bucket detected
2017/08/31 03:59:33.510529 s3.DEBUG DEBUG: Request s3/HeadObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
HEAD /higlass/higlass.io/media/oqdx3xoh6lsot5v8t1ni41y28b3kz0s5 HTTP/1.1
Host: s3.amazonaws.com
User-Agent: aws-sdk-go/1.8.25 (go1.8.3; linux; amd64)