Skip to content

Instantly share code, notes, and snippets.

@derekm
derekm / 01-single-segment-stream-config.java
Last active September 18, 2020 19:53
Pravega Client API 101 code snippets
StreamConfiguration streamConfig = StreamConfiguration.builder()
.scalingPolicy(ScalingPolicy.fixed(1))
.build();
import re
import bs4
import urllib2
root = "http://www.ted.com"
req = urllib2.Request(root + "/talks/quick-list")
html = urllib2.urlopen(req).read()
while html:
talks = bs4.BeautifulSoup(html)
@derekm
derekm / prefs.js
Last active December 26, 2015 11:48
Prefs pane for GNOME Shell Open Terminal extension http://extensions.gnome.org/extension/721/gnome-shell-open-terminal/
const Lang = imports.lang;
const Gtk = imports.gi.Gtk;
const GMenu = imports.gi.GMenu;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
var bldr;
var pane;
var tree;
From: Derek Moore <derek.p.moore@...>
To: [email protected]
Subject: Re: .info sites
Also, I can't help but notice that http://natsios-young.com/ is down
with a rather ominous message & even has embedded
click-tracking/redirect code to 800paydayloans.com!
Please advise,