Skip to content

Instantly share code, notes, and snippets.

var screens = nw.Screen.screens;
for (var i = 0; i < screens.length; i++) {
var x = nw.Window.get().x;
var y = nw.Window.get().y;
// console.log(x, y);
var bounds = screens[i].bounds;
// console.log(bounds);
---
VM1054:6 googInitiator false
VM1054:4 ---
VM1054:6 googTrackId bafdf11d-4ece-4cbf-b03e-87a545e43547
VM1054:4 ---
VM1054:6 googFingerprint 72:49:2C:E3:F0:EF:BC:E0:96:FF:13:36:C5:7D:4E:AC:57:CB:5E:2D:62:FF:99:7E:FD:C0:DA:F1:06:25:37:8D
VM1054:6 googFingerprintAlgorithm sha-256
VM1054:6 googDerBase64 MIIBFjCBvaADAgECAgkAnYv2tV0QOr8wCgYIKoZIzj0EAwIwETEPMA0GA1UEAwwGV2ViUlRDMB4XDTE2MTEzMDAyNTAxOFoXDTE2MTIzMTAyNTAxOFowETEPMA0GA1UEAwwGV2ViUlRDMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE/qXlt1gpqPIkkxrKdMPejv89FOH10wHuVG2kT7Jo/qIx7XM5ozyNY8kfici50Hqec6B2xVvYjUM+IlUIpqfLLTAKBggqhkjOPQQDAgNIADBFAiBNcrSwdhueKvY3vdTVkCNnsfJ8z4d86dR+5q9/4yAp/QIhAIpJv1mq/anuE4KnQmWGrm/inDe9MDHcwbSMHhOtV5OK
VM1054:4 ---
VM1054:6 googFingerprint 77:D1:CB:8B:98:39:4F:7E:D7:E3:B2:F6:1F:EF:A4:B2:8B:A2:25:F5:15:4D:85:A3:79:2C:AA:6C:E2:EA:E2:F6
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
pc2.getStats(function(response) {
var results = response.result();
results.forEach(function(report) {
if(report.type == "ssrc") {
console.log("---", report, report.type)
report.names().forEach(function(name) {
console.log(name, report.stat(name));
})
}
})
@kkm
kkm / media_stream_video.cc
Created November 29, 2016 11:37
Chrome Native Client SDK media_stream_video.cc
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <string.h>
#include <vector>
*** Report 7 ***
id: ssrc_2323157870_recv
type: ssrc
googDecodingCTN: 885032
packetsLost: 0
googDecodingPLC: 601
packetsReceived: 442457
googJitterReceived: 0
googPreferredJitterBufferMs: 20
ssrc: 2323157870
var port = 9001;
var io = require('d:/kkm/Desktop/node_modules/socket.io').listen(port);
console.log((new Date()) + " Server is listening on port " + port);
io.sockets.on('connection', function(socket) {
socket.on('message', function(message) {
console.log(message);
socket.broadcast.emit('message', message);
});
@kkm
kkm / gist:0eee91c6b63ddfe94a45fe955c0b81d8
Last active October 18, 2016 03:00
firebase in realtime
var firebase = Meteor.npmRequire("firebase");
var values = new Mongo.Collection("values");
var databaseName = 'values/';
firebase.initializeApp({
databaseURL : "https://xxxx.firebaseio.com/",
serviceAccount : "/home/kkm/firebase/server/serviceAccountCredentials.json"
});
var params = {
headers : {
'Content-Type' : ' application/json',
'Authorization' : "key=xxxx"
},
data : {
"data" : {
"message" : "nummer:" + i
},
"to" : "11111111111",
@kkm
kkm / data-structure.js
Created October 16, 2016 06:38 — forked from sararob/data-structure.js
Role-based security in Firebase
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR