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
if(@constant("_NO_CLI_")) { | |
if(@constant("_CAL_JOB_DEBUG_")) echo("going to ". @constant("_CAL_BASE_URL_") . $j ."\n"); | |
// _ex_http_get(@constant("_CAL_BASE_URL_") . $j); | |
print "alec4"; | |
} else { | |
# THIS IS WHERE I EXPECT THE PROBLEM TO BE WITH LOOPING JOBS, LETS TEST THIS | |
if(@constant("_CAL_JOB_DEBUG_")) { | |
echo("running ". mk_cmd_str("\"$php\" \"". @constant("_CAL_BASE_PATH_") . $j ."\"") ."\n"); | |
echo(exec(mk_cmd_str("\"$php\" \"". @constant("_CAL_BASE_PATH_") . $j ."\""))); | |
} |
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 <functional> | |
#include <iostream> | |
void f(int a, int b); | |
void g(int a, int b, float c, float d); | |
typedef std::function<void (int, int)> TestCallback; | |
int main() { |
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
#!/bin/sh | |
function format_cpp { | |
file="${1}"; | |
echo "${file}" | grep -ie "^.*\.cpp$" > /dev/null | |
if [ "$?" -eq 0 ]; then | |
if [ -f "${file}" ]; then | |
set -e | |
astyle -Q -z1 "${file}" |
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
# Locate the Google C++ Testing Framework. | |
# | |
# Defines the following variables: | |
# | |
# GTEST_FOUND - Found the Google Testing framework | |
# GTEST_INCLUDE_DIRS - Include directories | |
# | |
# Also defines the library variables below as normal | |
# variables. These contain debug/optimized keywords when | |
# a debugging library is found. |
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
#!/bin/bash | |
basedir=$(cd $(dirname $0) && pwd) | |
# make the heightmaps directory if it doesn't exist | |
if [ ! -d $basedir/heightmaps ]; then | |
mkdir $basedir/heightmaps | |
fi | |
planets=("corellia" |
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
/** This is a test application to explore ideas about an improved event | |
* implementation. | |
* | |
* \author Eric Barr <eric.barr@anhstudios.com> | |
*/ | |
#include <cstdint> | |
#include <iostream> | |
#include <memory> | |
#include <string> |
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
/** This is a test application to explore ideas about an improved event | |
* implementation. | |
* | |
* \author Eric Barr <eric.barr@anhstudios.com> | |
*/ | |
#include <cstdint> | |
#include <iostream> | |
#include <memory> | |
#include <string> |
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
dispatch.notify_when(server_started_event, [=] { | |
if (crafting.is_ready() && trade.is_ready() && travel_map.is_ready()) { | |
cout << "All startup tasks have finished, dispatch this event!\n"; | |
return true; | |
} | |
return 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
auto db_manager = make_shared<DatabaseManager>(); | |
auto connection = db_manager->connect("mysql:host=localhost;schema=global", "swganh", "something"); | |
auto statement = connection->prepareStatement("CALL sp_PersistSomeObject(:id, :name, :description)"); | |
// bind values | |
statement->bindParam(":id", object->id()); | |
statement->bindParam(":name", object->name()); | |
statement->bindParam(":description", object->description()); |
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
// Scripting environment is supplied with the object id and invoking message | |
include 'components' | |
// Set up global data properties for this script. | |
properties.burst_run_modifier = 2; | |
properties.cooldown_delay_sec = 60; | |
properties.effect_duration_sec = 300; | |
// Check the state component to see if the running state is already set |
OlderNewer