Skip to content

Instantly share code, notes, and snippets.

View LordAro's full-sized avatar

Charles Pigott LordAro

View GitHub Profile
[package]
name = "foo"
version = "1.0.0"
[dependencies]
lonlat_bng = "*"
diff --git a/src/base_media_base.h b/src/base_media_base.h
index d5de6c373..7614118b7 100644
--- a/src/base_media_base.h
+++ b/src/base_media_base.h
@@ -219,6 +219,11 @@ public:
static bool HasSet(const ContentInfo *ci, bool md5sum);
};
+template <class Tbase_set> /* static */ const char *BaseMedia<Tbase_set>::ini_set;
+template <class Tbase_set> /* static */ const Tbase_set *BaseMedia<Tbase_set>::used_set;
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());
#include <stdlib.h>
#include <unistd.h>
#define Int long
#define A 500000
#define X 8
Int L[500000];
Int m;
Int b;
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
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
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(
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']
<?php
use \MediaWiki\Session\SessionManager;
use \MediaWiki\Auth\AuthManager;
class URYAuthenticator extends PluggableAuth {
const API_KEY = '';
const API_ROOT = 'https://ury.org.uk/api/';
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 -