- Domain. polyglots.dk
- Website. Static pages on GitHub? Fork https://github.com/GreenSteam/pycon.dk?
- Email. Gmail? meetup@polyglots.dk?
- Twitter. @polyglotsdk?
- Newsletter or mailing list? I propose to use MailChimp, like we do on Python meetup.
View flask_yield.py
This file contains 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
@app.route('/<int:id>') | |
def my_view(id): | |
player = Player.get(id) | |
yield player.as_json, 200 | |
player.update_stats() # Called *after* the response is made. |
View call_on_close.py
This file contains 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 time import sleep | |
from flask import Flask, Response, request | |
app = Flask('hello') | |
@app.route('/') | |
def hello(): |
View polyglots-todo.md
View tmp.swift
This file contains 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
Node(s, 0..<3, name: "value", text: "(1)", children: | |
[Node(s, 0..<3, name: "expr", text:, "(1)", children: | |
[Node(s, 0..<1, text: "("), | |
Node(s, 1..<2, name: "sum", text: "1", children: | |
[Node(s, 1..<2, name: "prod", text: "1", children: | |
[Node(s, 1..<2, name: "value", text: "1", children: | |
[Node(s, 1..<2, name: "number", text: "1", children: | |
[Node(s, 1..<2, text: "1")])]), | |
Node(s, 2..<2, text: "")]), | |
Node(s, 2..<2, text: "")]), |
View uninitialize.rb
This file contains 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
class Value | |
class << self | |
alias [] new | |
end | |
def ==(other) | |
return false unless other.is_a? self.class | |
self.uninitialize == other.uninitialize | |
end | |
alias_method :eql?, :== |
View buffer.ml
This file contains 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
# let b = Buffer.create 0 in | |
Buffer.add_substitute b (function "hello" -> "bye") "$hello world"; | |
Buffer.contents b;; | |
- : string = "bye world" |
View Rakefile
This file contains 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
task :default => :test | |
PACKAGES = ['core', 'sexplib.syntax'] | |
MENHIR = 'menhir --explain' | |
TEST_SOURCES = FileList['**/test_*.ml'].exclude(/build\//) | |
TEST_BINARIES = TEST_SOURCES.pathmap 'build/%X.d.byte' | |
task :test do |t| | |
ocamlbuild TEST_BINARIES |
View PEG.ml
This file contains 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
module Interval = struct | |
type 'a t = {start: 'a; finish: 'a} | |
end | |
module Position = struct | |
type t = {line: int; column: int} | |
end |
View q.py
This file contains 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
query = { | |
'level': '1', | |
'box.top': '2', | |
'box.left': 'foo', | |
'box.bottom': 'bar', | |
'box.right': 'baz', | |
'fox.mox.dox': '0.5', | |
'fox.mox.dox': '0.5', | |
} |
View warned.ml
This file contains 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
include (struct | |
type 'a t = 'a * string list | |
exception FatalWarning of string list | |
let to_exn: 'a t -> 'a = function | |
| value, [] -> value | |
| value, warnings -> raise (FatalWarning warnings) | |
let map f (value, warnings) = f value, warnings |
OlderNewer