Skip to content

Instantly share code, notes, and snippets.

import { oplogV2V1Converter } from './oplog_v2_converter';
Tinytest.only('oplog - v2/v1 conversion', function(test) {
const entry1 = {
$v: 2,
diff: { scustom: { sEJSON$value: { u: { EJSONtail: 'd' } } } },
};
const entry2 = {
$v: 2,
diff: { u: { d: '2', oi: 'asdas' } },
function getTrace(err, type, subType) {
return {
type: type,
subType: subType,
name: err.message,
errored: true,
at: Kadira.syncedDate.getTime(),
events: [
['start', 0, {}],
@renanccastro
renanccastro / getSourceId.htm
Created November 18, 2016 14:36
getScreenId.html
<!-- saved from url=(0046)https://www.webrtc-experiment.com/getSourceId/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><script>
// https://github.com/muaz-khan/DetectRTC
var DetectRTC = {};
var screenCallback;
DetectRTC.screen = {
chromeMediaSource: 'screen',
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
[
{
"id":1,
"usuario":{
"id":1,
"profileImage":null,
"nome":"LIP",
"descricao":"Sou uma pessoal muito legal.",
"email":"[email protected]",
"telefone":null,
HTTPPort 8005
RTSPPort 8006
HTTPBindAddress SEU.IP.AQUI
RTSPBindAddress SEU.IP.AQUI
MaxClients 100
MaxBandwidth 10000
NoDefaults
<Feed webcam.ffm>
File /tmp/webcam.ffm
"use strict";
var HelloMessage = React.createClass({
displayName: "HelloMessage",
render: function render() {
return React.createElement(
"div",
null,
"Hello ",
var HelloMessage = React.createClass({
render: function() {
return <div>Hello {this.props.name}</div>;
}
});
ReactDOM.render(<HelloMessage name="John" />, mountNode);
<!DOCTYPE html>
<html lang="en-US">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="">
<p>Name : <input type="text" ng-model="name"></p>
<h1>Hello {{name}}</h1>
</div>
<div id="demo">
<p>{{message}}</p>
<input v-model="message">
</div>