URL = http://customer-api.stone.com.br/ {URL}v0/
sdk.init(url) // new SlingSDK(url)
sdk.setToken(token) sdk.setUrl(url)
| from datetime import datetime | |
| import Pyro4 | |
| server = Pyro4.Proxy(f"PYRONAME:mess.server") | |
| def start_chatting(): | |
| text = '' | |
| while (text != 'exit'): | |
| text = input("... ") |
URL = http://customer-api.stone.com.br/ {URL}v0/
sdk.init(url) // new SlingSDK(url)
sdk.setToken(token) sdk.setUrl(url)
| FROM golang:latest AS build | |
| WORKDIR $GOPATH/{your-repo} | |
| COPY . ./ | |
| RUN go get github.com/tools/godep | |
| RUN godep get | |
| RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app . | |
| FROM scratch | |
| COPY --from=build /app ./ |
| # urls.py | |
| from django.conf.urls import url, include | |
| from rest_framework import routers, viewsets | |
| from dashboard_api.views.user import UserViewSet | |
| router = routers.DefaultRouter() | |
| router.register(r'users', UserViewSet) |
| { | |
| "window.zoomLevel": 0, | |
| "workbench.colorTheme": "Default Light+", | |
| "editor.fontSize": 16, | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontLigatures": true, | |
| "editor.renderWhitespace": "all" | |
| } |
| import numpy | |
| print(numpy.arrange(5)) |
| def arrange(n): | |
| print('oi') | |
| return n |
| import numpy | |
| numpy.arrange(10) |
| import numpy | |
| numpy.arrange(10) |