-
Install docker for your OS
-
Download image
$ docker pull blakeberg/oracledb
- Run image
$ docker run -d -h orxe11g --name=orxe11g -p 49132:22 -p 49133:1521 blakeberg/oracledb:1.0
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace DictMaxLength | |
{ |
from collections import deque | |
class DictWithMaxKeys: | |
def __init__(self, maxlen, init=None): | |
self.maxlen = maxlen | |
self._deque = deque() | |
self._dict = {} | |
if init is not None: | |
self._dict.update(init) |
from telnetlib import Telnet | |
with Telnet('www.example.com', '80') as tn: | |
req = "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n".encode("ascii") | |
tn.write(req) | |
while True: | |
row = tn.read_until('\n'.encode('ascii')) | |
print(row) | |
L.AnimatedMarker = L.Marker.extend({ | |
options: { | |
// meters | |
distance: 200, | |
// ms | |
interval: 1000, | |
// animate on add? | |
autoStart: true, | |
// callback onend | |
onEnd: function(){}, |
indata = """1 2 | |
3 4 | |
5 6 | |
7 8 | |
7 9 | |
2 8 | |
0 6 | |
1 9""" | |
data = [x.split() for x in indata.splitlines()] |
# -*- coding: utf-8 -*- | |
import scrapy | |
import os | |
urls = {} | |
class NugetSpider(scrapy.Spider): | |
global urls | |
name = 'nuget' | |
allowed_domains = ['nuget.org'] |
Install docker for your OS
Download image
$ docker pull blakeberg/oracledb
$ docker run -d -h orxe11g --name=orxe11g -p 49132:22 -p 49133:1521 blakeberg/oracledb:1.0
# https://pypi.python.org/pypi/pocket-api/ | |
from pocket import Pocket, PocketException | |
from sys import exit | |
# see link above, how to set key and token | |
key = "" | |
token = "" | |
p = Pocket(key, token) | |
print("Connected") |
http://tile.stamen.com/toner/{z}/{x}/{y}.png
http://tile.stamen.com/terrain/{z}/{x}/{y}.jpg
http://tile.stamen.com/watercolor/{z}/{x}/{y}.jpg
using System.Xml; | |
namespace XmlTools | |
{ | |
class XmlWithoutDeclaration | |
{ | |
static void Main(string[] args) | |
{ | |
XmlWriterSettings settings = new XmlWriterSettings(); | |
settings.OmitXmlDeclaration = true; |