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
var net = require('net'); | |
var events = require('events'); | |
var util = require('./util.js'); | |
var SubscriptionCounter = function(){ | |
var count = 0; | |
var padding = 'deadbeefcafebabe'; | |
return { |
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
var poolWorkerData = []; | |
var poolHashrateData = []; | |
var poolBlockData = []; | |
var poolWorkerChart; | |
var poolHashrateChart; | |
var poolBlockChart; | |
function buildChartData(data){ |
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
var mysql = require('mysql'); | |
var cluster = require('cluster'); | |
module.exports = function(logger, poolConfig){ | |
var mposConfig = poolConfig.shareProcessing.mpos; | |
var coin = poolConfig.coin.name; | |
//var connection; | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="1.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:torznab="http://torznab.com/schemas/2015/feed"> | |
<channel> | |
<atom:link href="http://localhost:9117/" rel="self" type="application/rss+xml" /> | |
<title>The Pirate Bay</title> | |
<description>The worlds largest bittorrent indexer</description> | |
<link>https://thepiratebay.se/</link> | |
<lanuage>en-us</lanuage> | |
<category>search</category> | |
<image> |
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
{ | |
"id": "121361", | |
"Actors": "|Emilia Clarke|Peter Dinklage|Kit Harington|Nikolaj Coster-Waldau|Lena Headey|Sophie Turner|Maisie Williams|Gwendoline Christie|Aidan Gillen|Iain Glen|Charles Dance|Jerome Flynn|Alfie Allen|Isaac Hempstead-Wright|Natalie Dormer|John Bradley|Conleth Hill|Michelle Fairley|Ed Skrein|Jonathan Pryce|Alexander Siddig|Nathalie Emmanuel|Liam Cunningham|Tom Wlaschiha|Iwan Rheon|Jacob Anderson|Gemma Whelan|Mark Addy|Indira Varma|Michiel Huisman|Nonso Anozie|Nell Tiger Free|Stephen Dillane|Rory McCann|Finn Jones|Ellie Kendrick|James Cosmo|Sibel Kekilli|Paul Kaye|Ciar\u00e1n Hinds|Thomas Sangster|Harry Lloyd|Sean Bean|Jason Momoa|Richard Madden|Jack Gleeson|Rose Leslie|Carice van Houten|Pedro Pascal|Tobias Menzies|Dean-Charles Chapman|Kerry Ingram|Michael McElhatton|Art Parkinson|Mackenzie Crook|Hannah Murray|Amrita Acharia|Aimee Richardson|Eugene Simon|Ron Donachie|Lino Facioli|Elyes Gabel|Oona Chaplin|Kate Dickie|Peter Vaughan|Patrick Malahide|Natalia Tena|Julian Glover|Joe Dempsie|Kris |
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
/* | |
* |- Fanart | |
* |- Trakt | |
* |- TVRage | |
* |- TVcom | |
* |- TMDB | |
* |- OMDB | |
* |- TVDB | |
* |- Fanart | |
* |- OMDB |
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
{ | |
"status": "success", | |
"data": { | |
"show": { | |
"id": { | |
"imdb": "tt0944947", | |
"tmdb": 1399, | |
"tvcom": "game-of-thrones", | |
"tvrage": 24493, | |
"tvdb": 121361, |
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
{ | |
"status": "success", | |
"data": { | |
"show": { | |
"id": { | |
"imdb": "tt3107288", | |
"tmdb": 60735, | |
"tvcom": "the-flash-2014", | |
"tvrage": 36939, | |
"tvdb": 279121, |
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
var db = knex({ | |
client: 'pg', | |
connection: { | |
host: 'localhost', | |
port: 5432, | |
user: 'postgres', | |
password: 'test', | |
database: 'syndicate' | |
}, | |
debug: true |
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
static void CalculateBetweenPoint(double x1, double y1, double x2, double y2, double distance, out double x3, out double y3) | |
{ | |
var xDistance = Math.Abs(x1 - x2); | |
var yDistance = Math.Abs(x2 - y2); | |
var distanceAB = Math.Sqrt(Math.Pow(xDistance, 2) + Math.Pow(yDistance, 2)); | |
var angleAB = Math.Atan2(y2 - y1, x2 - x1); | |
var deltaXAC = distance * Math.Cos(angleAB); | |
var deltaYAC = distance * Math.Sin(angleAB); |
OlderNewer