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
diff -r -u /tmp/Data/INI/CommandButton.ini /DataStorage/Games/Data/INI/CommandButton.ini | |
--- /tmp/Data/INI/CommandButton.ini 2019-07-05 21:57:33.363905699 -0700 | |
+++ /DataStorage/Games/Data/INI/CommandButton.ini 2019-07-05 21:54:43.440602319 -0700 | |
@@ -2632,6 +2632,15 @@ | |
DescriptLabel = CONTROLBAR:ToolTipGLABuildWorker | |
End | |
+CommandButton Command_ConstructGLASpecialWorker | |
+ Command = UNIT_BUILD | |
+ Object = GLASpecialInfantryWorker |
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
<formatter medium="irc"> | |
<format appliesTo="CommitToIRC"> | |
<color fg='red'><project/>:</color> | |
<color fg='orange'><author/> *</color> | |
<b>[<branch/>]</b> | |
<autoHide><b><version/></b></autoHide> | |
<color fg='yellow'>r<b><revision/></b></color> | | |
<color fg='aqua'>/<files/></color><b>:</b> | |
<log/> |
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
#!/usr/bin/env python3 | |
# coding: utf-8 | |
""" | |
Discord logging bot for logging basic channel messages. | |
Based on work by: | |
LogBot |
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
template<typename T> T safeatoi(const char *buffer, size_t len) | |
{ | |
T returnval = 0; | |
// parse each char and get the int value. | |
for (size_t i = 0; i < len; ++i) | |
{ | |
char ch = buffer[i]; | |
T value = ch - '0'; | |
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
#!/usr/bin/env python3 | |
import requests, json, time, feedparser, re | |
from datetime import datetime | |
from dateutil.parser import parse | |
from humanize import naturaltime | |
import shorturl | |
# This script parses the JSON data from https://earthquake.usgs.gov/fdsnws/event/1/ | |
# and data from https://www.emsc-csem.org/service/rss/rss.php?typ=emsc | |
# and displays two feeds, one is to the #Earthquakes.all channel and the other | |
# is in the #Earthquakes.major channel. |
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
/* | |
* Written by Justin Crawford | |
* Compile with: clang -Wall -Wextra -O3 -D_FORTIFY_SOURCE=2 -march=native -o main main.c | |
*/ | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> |
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
/************************************************************************* | |
* BSD 2-Clause License | |
* | |
* Copyright (c) 2017-2018, Justin Crawford | |
* Copyright (c) 2017, William Haugen | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* |
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
#!/usr/bin/twistd3 -noy | |
import sqlite3, json, os | |
from twisted.application import service, internet | |
from twisted.web import static, server, proxy | |
from twisted.internet import reactor | |
from twisted.python import log | |
from klein import Klein |
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
/* MIT License | |
* | |
* Copyright (c) 2018 Justin Crawford <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
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
/* | |
* Main.cpp | |
* | |
* Created on: 9-Jan-2009 | |
* Author: root | |
*/ | |
///////////////////////////////////////////////// | |
// Serial port interface program // |