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
const std = @import("std"); | |
const os = std.os; | |
const socket_t = std.os.socket_t; | |
const io_uring = std.os.linux.IO_Uring; | |
const Allocator = std.mem.Allocator; | |
const fs = std.fs; | |
pub fn main() !void { | |
const MAX_BUFFERS = 10; |
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
// 1: Använda konstruktorer | |
function Pitcher () { | |
// Maps playoutStreamId into a key for outputStats | |
this.outputs = {}; | |
// Statistics for outputs. Indexed by "<playerId>-<channelId>" | |
this.outputStats = {}; | |
// Start timestamp for streams. Indexed by playoutStreamId |
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
GLOBAL_NOTIFICATION_STATUS | |
OnGlobalPreBeginRequest( | |
IN IPreBeginRequestProvider * pProvider | |
) | |
{ | |
IHttpContext* pHttpContext = pProvider->GetHttpContext(); | |
IHttpRequest* pRequest = pHttpContext->GetRequest(); | |
char *szRange = "bytes=300-1000"; | |
HRESULT result = pRequest->SetHeader((PCSTR)"Range", (PCSTR) szRange, (USHORT) strlen(szRange), true /* replace header */); | |
if (FAILED(result)) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>One Graph</title> | |
<script type="text/javascript" src="http://localhost:8999/d3.v2.js"></script> | |
<script type="text/javascript" src="simple-graph.js"></script> | |
<style type="text/css"> | |
body { font: 13px sans-serif; } | |
rect { fill: #fff; } |
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
var vows = require('vows'), | |
assert = require('assert'), | |
EventEmitter = require('events').EventEmitter, | |
myEventEmitter = new EventEmitter() | |
var A = function(){} | |
// Create a Test Suite | |
vows.describe('Testing and EventEmitter').addBatch({ | |
'when the topic is a regular object':{ |
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
//Uppdatering till Parser 2 API av command skriven av Simon Gate, [email protected] | |
CmdUtils.CreateCommand({ | |
names: ["hitta"], | |
icon: "http://www.hitta.se/favicon.ico", | |
description: "Sök på hitta.se.", | |
help: "hitta [NAMN] i [STAD].", | |
author: {name: "Karl Böhlmark", email: "[email protected]"}, | |
license: "GPL", | |
arguments: [{role: 'object', nountype: noun_arb_text}], |