- 2.2. Unicode Normalization (U+212B != U+00C5 for identifiers)
- EOF everywhere
- I've written a spec-equivalent parser in python for vtt file parsing to analyse test coverage
- style parsing
- region parsing
- cue text parsing
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
import sys | |
import requests | |
GRANT_ITEM_URL = 'http://api.steampowered.com/ITFPromos_440/GrantItem/v0001/' | |
def main(api_key): | |
# ======================================================================== # | |
# Change 'medals/XXXXX' to whatever path to the file containing steam ids | |
# Change PromoID to the specific promotion id for that | |
grant_medals('medals/open_1st', 'PromoID', api_key) |
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
{ | |
"results": [ | |
{ | |
"test": "/webvtt/api/VTTCue/align.html", | |
"subtests": [ | |
{ | |
"name": "VTTCue.align, script-created cue", | |
"status": "PASS", | |
"message": null | |
}, |
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
2.3.3 :004 > URI.parse(URI.escape('http://localhost/[]')) | |
URI::InvalidURIError: bad URI(is not URI?): http://localhost/[] | |
from /home/benjamin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/uri/rfc3986_parser.rb:67:in `split' | |
from /home/benjamin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/uri/rfc3986_parser.rb:73:in `parse' | |
from /home/benjamin/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/uri/common.rb:227:in `parse' | |
from (irb):4 | |
from /home/benjamin/.rvm/rubies/ruby-2.3.3/bin/irb:11:in `<main>' |
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
<!doctype html> | |
<title>WebVTT parser test: timings, omitted hours</title> | |
<link rel="help" href="https://w3c.github.io/webvtt/#file-parsing"> | |
<script src="/resources/testharness.js"></script> | |
<script src="/resources/testharnessreport.js"></script> | |
<div id=log></div> | |
<script> | |
var t = async_test('timings, omitted hours'); | |
t.step(function(){ | |
var video = document.createElement('video'); |
We are the most successful species on earth. We may have made marvellous advances in technology and science, but that all pales in comparison to how good we are at surviving. We have become the dominant species on every major continent. In comparison to everything else we know, we are practically a superspecies. Evolved to build on top of our natural environment, naturally selected for one purpose: survival and reproduction.
Evolution has hardwired us to strive for living as long as possible, such that
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
def sqrt(n) | |
assume n >= 0 | |
return #stuff | |
end | |
n = input() as Int | |
# Type error, n doesn't meet condition: n >= 0 | |
puts(sqrt(n)) |
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
mixin template belongsTo(string association, O, fields...) { | |
static assert(fields.length == getFieldsByUAD!(O, PrimaryKey).length); | |
private mixin("bool __" ~ association ~ "Cached;"); | |
private mixin("Nullable!O __" ~ association ~ ";"); | |
mixin("@property auto ref " ~ association ~ "() {" ~ q{ | |
import std.conv; | |
enum cached = "this.__" ~ association ~ "Cached"; |
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 A | |
def host | |
2 | |
end | |
extend self | |
end | |
p A.host #=> 2 (as expected) | |
module B |
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
@patch | |
def Function_emitEntry(self): | |
#self.llvm_context = State.builder.alloca(self.llvm_closure_type, "context") | |
self.llvm_context = State.builder.cast(self.llvm_value.getParam(0), llvm.Pointer.new(self.llvm_closure_type, 0), "") | |
#State.builder.store(context, self.llvm_context) |
NewerOlder