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 4d6b925ece9cbbd2897d941cf0c1f35bd9cb4325 Mon Sep 17 00:00:00 2001 | |
From: Charles Pigott <charlespigott@googlemail.com> | |
Date: Tue, 8 Aug 2017 22:18:31 +0100 | |
Subject: [PATCH 1/4] -Fix: Silence superious GCC warning about a memset | |
exceeding maximum object with an explicit (re)cast. | |
--- | |
src/newgrf.cpp | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) |
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 <array> | |
#include <tuple> | |
#include <type_traits> | |
#include <utility> | |
template<size_t c, class... Vars> | |
struct ForLoop { | |
template<template <size_t, class...> class Func> | |
static void iterate() { | |
ForLoop<c-1, Vars...>::template iterate<Func>(); |
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 37747050d5e069f037e735ee3d61efcd1ce46b51 Mon Sep 17 00:00:00 2001 | |
From: Charles Pigott <charlespigott@googlemail.com> | |
Date: Sun, 18 Jun 2017 15:58:40 +0100 | |
Subject: [PATCH 1/2] -Codechange: Replace all sort functions with std::sort | |
variants. | |
--- | |
projects/openttd_vs100.vcxproj | 1 - | |
projects/openttd_vs100.vcxproj.filters | 3 - | |
projects/openttd_vs140.vcxproj | 1 - |
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
<?php | |
use \MediaWiki\Session\SessionManager; | |
use \MediaWiki\Auth\AuthManager; | |
class URYAuthenticator extends PluggableAuth { | |
const API_KEY = ''; | |
const API_ROOT = 'https://ury.org.uk/api/'; |
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
diff --git a/csbot/core.py b/csbot/core.py | |
index 8cc22fe..23ea9fd 100644 | |
--- a/csbot/core.py | |
+++ b/csbot/core.py | |
@@ -204,7 +204,10 @@ class Bot(SpecialPlugin, IRCClient): | |
def connection_made(self): | |
super().connection_made() | |
# TODO: do this in on_welcome() instead? | |
- self.request_capabilities(['account-notify', 'extended-join']) | |
+ capabilities = ['account-notify', 'extended-join'] |
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
diff --git a/src/Classes/ServiceAPI/MyRadio_Season.php b/src/Classes/ServiceAPI/MyRadio_Season.php | |
index c743b38f..e25c5edd 100644 | |
--- a/src/Classes/ServiceAPI/MyRadio_Season.php | |
+++ b/src/Classes/ServiceAPI/MyRadio_Season.php | |
@@ -414,6 +414,12 @@ class MyRadio_Season extends MyRadio_Metadata_Common | |
'title' => 'Allocate Timeslots to Season', | |
'template' => 'Scheduler/allocate.twig', | |
] | |
+ )->addField( | |
+ new MyRadioFormField( |
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
BasedOnStyle: LLVM | |
IndentWidth: 8 | |
UseTab: ForContinuationAndIndentation | |
Cpp11BracedListStyle: false | |
ColumnLimit: 120 | |
CommentPragmas: '(part of OpenTTD|General Public License|WITHOUT ANY WARRANTY)' | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
AfterControlStatement: false | |
AfterClass: false |
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
diff --git a/csbot/plugins/exam.py b/csbot/plugins/exam.py | |
new file mode 100644 | |
index 0000000..a061f00 | |
--- /dev/null | |
+++ b/csbot/plugins/exam.py | |
@@ -0,0 +1,109 @@ | |
+import datetime | |
+import pymongo | |
+ | |
+from csbot.plugin import Plugin |
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 <stdlib.h> | |
#include <unistd.h> | |
#define Int long | |
#define A 500000 | |
#define X 8 | |
Int L[500000]; | |
Int m; | |
Int 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
prog_snippet if_snippet(const dcpu16::instruction &ins, j5::op_t test_op, bool swap) | |
{ | |
prog_snippet b_snip = value_on_stack(ins.b); | |
prog_snippet a_snip = value_on_stack(ins.a); | |
prog_snippet ret; | |
if (!swap) ret.insert(ret.end(), b_snip.begin(), b_snip.end()); | |
ret.insert(ret.end(), a_snip.begin(), a_snip.end()); | |
if (swap) ret.insert(ret.end(), b_snip.begin(), b_snip.end()); |