Stamen [http://maps.stamen.com/]
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
1. First install VS update 2 | |
* Download the .iso file | |
* Uncheck the "Update 3" option | |
2. How to use ASP.NET 5 Template? | |
* Use an existing project of ASP.NET 5 as template | |
(maybe there is another approach or maybe it's no longer an issue after successfully installed the DNX package) | |
3. How to install the DNX itself? | |
* In VS, in the Package Manager windows enter: Install-Package dnx-clr-win-x64 -Version 1.0.0-rc1-update1 -Pre |
GET / HTTP/1.1 | |
Host: ifconfig.co | |
User-Agent: curl/7.47.0 | |
Accept: */* | |
HTTP/1.1 200 OK | |
Server: nginx | |
Date: Sun, 08 Jan 2017 20:01:11 GMT | |
Content-Type: text/plain; charset=utf-8 |
using System.Xml; | |
namespace XmlTools | |
{ | |
class XmlWithoutDeclaration | |
{ | |
static void Main(string[] args) | |
{ | |
XmlWriterSettings settings = new XmlWriterSettings(); | |
settings.OmitXmlDeclaration = true; |
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
# 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") |
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
# -*- coding: utf-8 -*- | |
import scrapy | |
import os | |
urls = {} | |
class NugetSpider(scrapy.Spider): | |
global urls | |
name = 'nuget' | |
allowed_domains = ['nuget.org'] |
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()] |
L.AnimatedMarker = L.Marker.extend({ | |
options: { | |
// meters | |
distance: 200, | |
// ms | |
interval: 1000, | |
// animate on add? | |
autoStart: true, | |
// callback onend | |
onEnd: function(){}, |
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) | |