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
using System; | |
using System.Runtime.Serialization; | |
using Grfid.NSurf.Enums; | |
using Newtonsoft.Json; | |
namespace Grfid.NSurf.Models | |
{ | |
[Serializable] | |
public class OsrfMessage | |
{ |
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
using System; | |
using System.Runtime.Serialization; | |
using Grfid.NSurf.Enums; | |
using Newtonsoft.Json; | |
namespace Grfid.NSurf.Models | |
{ | |
[Serializable] | |
public class OsrfMessage | |
{ |
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 --git a/src/gateway/apachetools.c b/src/gateway/apachetools.c | |
index ca41832..276bcb5 100644 | |
--- a/src/gateway/apachetools.c | |
+++ b/src/gateway/apachetools.c | |
@@ -171,6 +171,47 @@ int apacheError( char* msg, ... ) { | |
} | |
+int crossOriginPreflight(request_rec* r, osrfStringArray* allowed_origins) { | |
+ |
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
Object.prototype.copyFrom = function(obj) { | |
for (var prop in obj) { | |
if (this.hasOwnProperty(prop)) | |
this[prop] = obj[prop]; | |
} | |
}; | |
// TODO: generic prototypes for messages of same type (eg. STATUS) | |
// instead of having a serialization() method in every class |
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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Text; | |
using GRFID; | |
using AT570UHF_NET; | |
namespace AT570UHFReader | |
{ |
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
from hashlib import sha1 | |
from flask import Blueprint, request | |
bp = Blueprint('bp', __name__) | |
class HashedStream(object): | |
def __init__(self, stream): |
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
(function (jQuery) { | |
jQuery.fn.extend({ | |
prompt: function (option) { | |
var defaultText; | |
if ((typeof option) == "string") defaultText = option; | |
else if (option && option.text) defaultText = option.text; | |
else return; | |
var promptColor = (option && option.color) ? option.color : "#999999"; | |
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
import clr | |
import os | |
import sys | |
import time | |
clr.AddReference('System', 'System.Drawing', 'OpenMetaverse.dll', 'OpenMetaverseTypes.dll') | |
from System.Drawing import Bitmap | |
from System.Threading import AutoResetEvent | |
from OpenMetaverse import * |
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
20c20 | |
< cp -r include/json ${pkgdir}/usr/include/json | |
--- | |
> cp -r include/json ${pkgdir}/usr/include/jsoncpp | |
24c24 | |
< ln -sf libjson_linux-gcc-*_libmt.so libjson.so | |
--- | |
> ln -sf libjson_linux-gcc-*_libmt.so libjsoncpp.so |
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
@echo off | |
::---------------------------- | |
:: variables | |
set host=COMPUTER-PC | |
set printer=LabelPrinter | |
:: printer_available result | |
set available="" | |
::---------------------------- |