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
fun main() { | |
PlcDriverManager().getConnection("modbus://localhost:5002").use { conn -> | |
if (!conn.metadata.canRead()) { | |
println("Cannot read!!") | |
return | |
} | |
val builder = conn.readRequestBuilder() | |
builder.addItem("value-1", "coil:1") | |
builder.addItem("value-2", "coil:3[4]") |
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 kotlin.reflect.KCallable | |
import kotlin.reflect.KClass | |
import kotlin.reflect.KFunction | |
import kotlin.reflect.KProperty | |
interface IFaktory<T: Any> { | |
fun build() : T | |
} | |
// the P generic type doesn't work as of yet |
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
<html> | |
<body> | |
<script src="https://cdn.podlove.org/web-player/embed.js"></script> | |
{% for episode in episodes %} | |
<div id="player{{ loop.index0 }}"></div> | |
<script> | |
podlovePlayer('#player{{ loop.index0 }}', { | |
title: '{{ episode.title }}', | |
publicationDate: '{{ episode.publication_date }}', | |
poster: '{{ episode.poster_url }}', |
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
class Builder<T> { | |
static ctor = undefined; | |
static propertyNames: Array<string> = undefined; | |
protected properties = {}; | |
build(): T { | |
const builderDef = Object.getPrototypeOf(this).constructor; | |
const instance = new builderDef.ctor(); | |
for (const prop of builderDef.propertyNames) { |
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
package main | |
import ( | |
"github.com/mediocregopher/radix.v2/pool" | |
"github.com/op/go-logging" | |
"errors" | |
) | |
var logger = logging.MustGetLogger("issue23_ssce") |
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
### Keybase proof | |
I hereby claim: | |
* I am milgner on github. | |
* I am milgner (https://keybase.io/milgner) on keybase. | |
* I have a public key whose fingerprint is AEEE AC81 5481 C57A A2A6 C3AD E31D 682E 2F71 FB99 | |
To claim this, I am signing this object: |
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 a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c | |
2074c2074 | |
< cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL); | |
--- | |
> cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, &wl->conf->channel, GFP_KERNEL); |
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
--- a/app/models/network.rb | |
+++ b/app/models/network.rb | |
@@ -7,6 +7,7 @@ class Network | |
opts = { | |
body: api_opts.to_json, | |
headers: {"Content-Type" => "application/json"}, | |
+ verify: verify? | |
} | |
endpoint = File.join(url, API_PREFIX, 'session.json') |
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 | |
cd %~dp0..\build\%1\tests | |
call :treeProcess | |
goto :eof | |
:treeProcess | |
for %%e in (*.exe) do ( | |
%%e --gtest_output=xml:%TEMP%\%%e.xml | |
echo ##teamcity[importData type='junit' path='%TEMP%\%%e.xml'] |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> | |
<xsl:output method="xml" encoding="utf-8" indent="yes"/> | |
<xsl:template match="REPORT"> | |
<testsuites> | |
<xsl:apply-templates select="REQUIREMENTS/REQUIREMENT"/> | |
</testsuites> | |
</xsl:template> |
NewerOlder