This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| map.on('click', function(event){ | |
| var x1_wgs; | |
| var y1_wgs; | |
| async function ajax(x,y){ | |
| const data = $.ajax({ | |
| url:'/geocoding/egsa_2_wgs.php?x='+x+'&y='+y, | |
| async:true, | |
| type:'GET', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f@omoikane:~$ scala | |
| Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_31). | |
| Type in expressions to have them evaluated. | |
| Type :help for more information. | |
| scala> :load Workshop/mine/scala-misc/voldemort.scala | |
| Loading Workshop/mine/scala-misc/voldemort.scala... | |
| defined module Dungeon | |
| scala> val nemesis = Dungeon curse "fedesilva" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import sys | |
| import asyncio | |
| import json | |
| import websockets | |
| async def hello(): | |
| uri = "ws://localhost:8888" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Test BaseEventLoop.getaddrinfo performance, before and after my commit 39c135b | |
| # Try a variety of getaddrinfo parameters and log the duration of 10k calls | |
| import socket | |
| import time | |
| from asyncio import get_event_loop | |
| try: | |
| from asyncio.base_events import _ipaddr_info | |
| except ImportError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Middleware.""" | |
| from __future__ import annotations | |
| import logging | |
| import pathlib | |
| from django.conf import settings | |
| from whitenoise.middleware import WhiteNoiseMiddleware # type: ignore[import-untyped] |
OlderNewer