Skip to content

Instantly share code, notes, and snippets.

# frozen_string_literal: true
require 'net/http'
require 'uri'
require 'json'
puts "CIRCLE_PULL_REQUEST: #{ENV['CIRCLE_PULL_REQUEST']}"
puts "CIRCLE_BRANCH: #{ENV['CIRCLE_BRANCH']}"
exit true if ENV['CIRCLE_PULL_REQUEST'].nil?
import React from 'react';
import { createStore } from 'redux';
import { Provider, connect } from 'react-redux';
const View = props => (
<div>
<p>{props.count}</p>
<button onClick={props.onClickIncrement}>+1</button>
<button onClick={props.onClickDecrement}>-1</button>
</div>
@themasch
themasch / doc.md
Last active October 31, 2023 05:41
unofficial docs of the LoL Spectator API

REST Service for LoL spectators

This is an unofficial, uncomplete and (pretty sure) wrong documentation of the RESTful service which powers the League of Legends spectator mode.

This documentation is desgined to be community driven and should be extended by everyone. If you find things missing, add them please!

How it works

Riot's spectator mode works by requesting replay data via HTTP form a service. The data is split in chunks which usually contain about 30 seconds of gameplay. Additionally there are key frames which seem to contain more information then a single chunk. They seem to be used to support