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
<?php | |
header('Content-Type: application/json'); | |
$publishKey = trim(getenv("PUBNUB_PUBLISH_KEY")); | |
$subscribeKey = trim(getenv("PUBNUB_SUBLISH_KEY")); | |
if (empty($publishKey)) { | |
$publishKey = "demo"; | |
} |
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
{"publish_key": "your_publish_key", "subscribe_key": "your_subscribe_key"} |
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
SetEnv PUBNUB_PUBLISH_KEY my_publish_key | |
SetEnv PUBNUB_SUBLISH_KEY my_subscribe_key |
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
<script> | |
var pubnub = PUBNUB.init({ | |
publish_key: '<?php echo getenv("PUBNUB_PUBLISH_KEY"); ?>', | |
subscribe_key: '<?php echo getenv("PUBNUB_SUBSCRIBE_KEY"); ?>' | |
}); | |
</script> |
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
import os | |
import sys | |
import logging | |
import time | |
from pubnub.callbacks import SubscribeCallback | |
from pubnub.pnconfiguration import PNConfiguration | |
from pubnub.pubnub import PubNub | |
d = os.path.dirname |
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
public void testSub() throws PubNubException, InterruptedException { | |
PNConfiguration pnConfiguration = new PNConfiguration(); | |
pnConfiguration.setSubscribeKey("demo"); | |
pnConfiguration.setPublishKey("demo"); | |
PubNub pubnub = new PubNub(pnConfiguration); | |
pubnub.addListener(new SubscribeCallback() { | |
@Override | |
public void status(PubNub pubnub, PNStatus status) { |
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
#!/usr/bin/python | |
import csv | |
data = [] | |
with open('./SolarWindTotal.csv', 'rb') as inp: | |
rdr = csv.reader(inp, delimiter=';') | |
for row in rdr: | |
data.append(row); |
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
{ | |
"options": { | |
"basicWidth": 1280, | |
"basicHeight": 720, | |
"frameRate": 30, | |
"path": "/tmp/codeda/test.mp4" | |
}, | |
"items": [ | |
{ | |
"layer": 1, |
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
[[13:12:16.651]] [LOG] trace { direction: 'out', | |
info: { ssrc: 1366638920 }, | |
timestamp: 22056990756, | |
type: 'pli' } | |
[[13:12:16.743]] [LOG] trace { direction: 'in', | |
info: | |
{ isKeyFrame: true, | |
marker: 'false', | |
payloadSize: 1133, | |
payloadType: 96, |
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
[[14:01:33.090]] [LOG] trace { direction: 'out', | |
info: { ssrc: 1293561603 }, | |
timestamp: 22059947189, | |
type: 'pli' } | |
[[14:01:33.198]] [LOG] trace { direction: 'in', | |
info: | |
{ isKeyFrame: true, | |
marker: 'false', | |
payloadSize: 1146, | |
payloadType: 96, |
OlderNewer