Skip to content

Instantly share code, notes, and snippets.

Avatar

Shital Shah sytelus

View GitHub Profile
@sytelus
sytelus / gist:f4eae841a39af343162a7d0518347598
Created Dec 12, 2018 — forked from minrk/gist:3213317
pyzmq: ioloop in separate thread
View gist:f4eae841a39af343162a7d0518347598
import zmq
from zmq.eventloop import zmqstream, ioloop
import threading
import logging
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger()
# run ioloop in separate thread
def threaded_loop():
View jsbin.usIyoGUD.css
.tooltip-info + .tooltip .tooltip-inner {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
background-repeat: repeat-x;
border-color: #9acfea;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
}
View jsbin.eLefAXO.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<textarea id="n1"></textarea>
View jsbin.OyIZIBuj.html
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style>
td {
padding: 0px;
View jsbin.maxaqoto.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
<head>
<meta name="description" content="CSS Layout Experiments with absolute, relative, float" />
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Example C</title>
<style>
.box { width: 200px; height: 200px;}
.child-box { width: 50px; height: 50px;}