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
<? | |
//Report EVERYTHING | |
error_reporting(-1); | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
ini_set('log_errors',true); | |
ini_set('error_log','/home/mrtrick/php.log'); | |
//Check the log file can be written | |
//error_log("TESTING"); |
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
The key objectives to be met by the recommended solution design for this project are: | |
1. Correlate ORCID IDs with UTS IDs. | |
2. Provide receiving systems with correlated ORCID information. | |
3. Consider expected future use and users of systems and information. | |
4. Align with UTS Architectural Principles. | |
5. Respect privacy and the ability for users to “opt-out”. |
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
//---------------------------------------------------------------------------------------------- | |
// | |
// starsII | |
// | |
// Ver 0.1 - written in sourceboost c for the 16F628 | |
// | |
// Author : MrTrick | |
// Date : 2010-12-25 | |
// License : GPLv2 | |
// |
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
... | |
"definitions": { | |
"special_id_csv": { | |
"description": "One or more of a particular kind of id separated by comma \",\"", | |
"type": "string", | |
"pattern": "^...regrexregexregexregexregex...$" | |
}, | |
} | |
... |
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 FILE HAS BEEN MINIMALLY MODIFIED TO USE | |
* SOFTWARE i2c ALL FEATURES OF THE LIBRARY REMAIN THE SAME, | |
* EXCEPT THAT begin() has signature; | |
* Adafruit_LEDBackpack::begin(const byte sdapin, const byte sclpin, uint8_t _addr = 0x70) | |
*************************************************** | |
This is a library for our I2C LED Backpacks | |
Designed specifically to work with the Adafruit LED Matrix backpacks |
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 <Wire.h> | |
#include <Adafruit_LEDBackpack.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_MotorShield.h> | |
// Configuration | |
#define AUGER_OUT 1 //M1 on Adafruit V2 motor shield | |
// Variables and Setup | |
Adafruit_7segment time_display = Adafruit_7segment(); |
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
//--------------------------------------------- | |
// Libraries | |
//--------------------------------------------- | |
#include <Wire.h> | |
#include <Adafruit_LEDBackpack.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_MotorShield.h> | |
//--------------------------------------------- | |
// Pin configuration |
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
void loop() { | |
... | |
if (state == IDLE) { | |
//Start? If an interval is given, and there is no error. | |
if ((digitalRead(RUN_BTN) == HIGH) && (interval != 0) && !has_error) { setState(RUN); beep(); return; } | |
//Are some buttons pressed? Adjust the interval. | |
boolean p1 = (digitalRead(P1_BTN) == LOW); | |
boolean p10 = (digitalRead(P10_BTN) == LOW); |
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
function ncmp(a, b) { return a - b; } | |
function format(set) { return JSON.stringify(set).replace(/\],\[/g,') (').replace('[[','[(').replace(']]','])'); } | |
function generate_combinations(dims) { | |
"use strict"; | |
function next(el) { for(var i=dims.length-1;i>=0;i--) { if (++el[i]<dims[i]) return true; else el[i]=0; } return false; } | |
function first() { return Array.apply(null, Array(dims.length)).map(function() { return 0; }); } | |
function upperlimit() { var _ds = dims.slice().sort(ncmp); return _ds[0]*_ds[1]; } | |
function valid(set,n) { for(var i=0;i<n;i++) { for(var c=0,di=0;di<set[n].length;di++) if (set[n][di]===set[i][di]) if (++c>1) return false; } return 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
var bserver_lib_path = APP_PATH + '/var/bserver.js'; | |
var age = Date.now() - (fs.existsSync(bserver_lib_path) && fs.statSync(bserver_lib_path).mtime.getTime()); | |
var bserver = null; | |
if (age < 10000 ) bserver = require(bserver_lib_path); | |
else { | |
console.log("Reloading bserver.js from BSERVER server"); | |
var file = fs.createWriteStream(bserver_lib_path); | |
var request = require('http').get(settings.bserver_server + "/bserver.js", function(response) { | |
response.pipe(file); | |
response.on('end', function() { |