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
package purescript_goroutine | |
import ( | |
"io/ioutil" | |
"net/http" | |
"sync" | |
"time" | |
. "github.com/purescript-native/go-runtime" | |
) |
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
package purescript_goroutine | |
import ( | |
"sync" | |
"time" | |
. "github.com/purescript-native/go-runtime" | |
) | |
func init() { |
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
@JSExportAll | |
sealed trait PMQuery | |
sealed trait PMAreaQuery extends PMQuery | |
sealed trait PMCityQuery extends PMAreaQuery | |
final case class PMCityFromCoordinates(location:PMCoordinatesQuery) extends PMCityQuery | |
final case class PMCityFromName(name:String) extends PMCityQuery |
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
@JSExport("Plasmap") | |
@JSExportAll | |
object PlasmapJS { | |
def coordinates(lon:Double, lat:Double) = PMCoordinates(lon, lat) | |
def city(name:String):PMCityFromName = PMCityFromName(name) | |
def kindergartens(area:PMAreaQuery) = PMKindergartensFromArea(area) | |
//[...] | |
val run = runInternal(defaultMap) _:js.Function3[PMQuery, UndefOr[OnMessageJS], UndefOr[OnMessageJS], Unit] | |
} |
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
package io.plasmap.pamphlet | |
import scala.scalajs.js | |
import scala.scalajs.js.annotation.JSName | |
@JSName("L") | |
object Leaflet extends js.Object { | |
def map(targetDivId:String, options:LeafletMapOptions):LeafletMap = js.native | |
def point(x:Double, y:Double):LeafletPoint = js.native | |
def tileLayer(url:String, tls:TileLayerOptions):TileLayer = js.native |
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
package co.aryaapp.macros | |
import scala.annotation.StaticAnnotation | |
import scala.language.experimental.macros | |
import scala.reflect.macros.whitebox | |
package co.aryaapp.macros | |
object Util { | |
def unCamelCase(s:String):String = { |
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
Starting server on localhost:6646 | |
() | |
---------------------------------------- | |
Exception happened during processing of request from ('127.0.0.1', 50748) | |
---------------------------------------- | |
Traceback (most recent call last): | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock | |
self.process_request(request, client_address) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request | |
self.finish_request(request, client_address) |
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
from BaseHTTPServer import BaseHTTPRequestHandler | |
import cgi | |
import urlparse | |
import json | |
from WaIDObjects import WaIdObjectFactory, WaIdMessage | |
__author__ = 'mark' | |
class WaIdHTTPHandler(BaseHTTPRequestHandler): | |
""" |
NewerOlder