I hereby claim:
- I am dagingaa on github.
- I am daginge (https://keybase.io/daginge) on keybase.
- I have a public key ASAa1y7IlordCfcpNPe64jomY7ui1GgbuwLYBDQdq8D1mgo
To claim this, I am signing this object:
"use strict"; | |
const { Issuer, Strategy } = require("openid-client"); | |
Issuer.defaultHttpOptions = { timeout: 5000 }; | |
function createUser(userinfo) { | |
const name = userinfo.name.split(","); | |
return { | |
id: userinfo.uniqueuserid, |
// Source: http://wiki.ecmascript.org/doku.php?id=strawman:maximally_minimal_classes | |
class Monster { | |
// A method named "constructor" defines the class’s constructor function. | |
constructor(name, health) { | |
// public name object | |
this.name = name; | |
// private name object | |
this[pHealth] = health; | |
} |
I hereby claim:
To claim this, I am signing this object:
import React from 'react'; | |
class Hello { | |
render() { | |
return React.createElement("div", null, "Hello ", this.props.name); | |
} | |
} | |
Hello.prototype.displayName = "Hello"; | |
var HelloElement = React.createClass(Hello.prototype); |
module.exports = (file, api, options) => { | |
const j = api.jscodeshift; | |
const root = j(file.source); | |
const getBodyStatement = fn => { | |
if ( | |
fn.body.type == 'BlockStatement' && | |
fn.body.body.length == 1 | |
) { |
filetype off | |
call pathogen#infect() | |
call pathogen#helptags() | |
syntax on | |
filetype plugin indent on | |
set smarttab | |
set shiftwidth=4 | |
set autoindent |
// javascript | |
var takeSnapshot = function (clientId) { | |
var videoElem = document.getElementById(clientId); | |
var canvas = document.getElementById(“chat-paint-canvas”); | |
var ctx = canvas.getContext(‘2d’); | |
ctx.drawImage(videoElem, 0, 0, 30, 30); | |
return canvas.toDataURL(); | |
}; | |
// html |
VideoCapturer capturer = VideoCapturer.create(""); | |
MediaStream mediaStream = peerConnectionFactory.createLocalMediaStream("APPEAR"); | |
VideoSource videoSource = this.peerConnectionFactory.createVideoSource(capturer, new MediaConstraints()); | |
VideoTrack videoTrack = this.peerConnectionFactory.createVideoTrack("APPEARv0", videoSource); | |
videoTrack.addRenderer(new VideoRenderer()); | |
mediaStream.addTrack(videoTrack); |
// The following is a thought experiment of how it COULD work | |
// todos-template.js | |
export default (todos) => { | |
return ` | |
<div class="todo-wrapper"> | |
<p>Remaining: ${ todos.length }</p> | |
<ul class="todos"> | |
${ todos.map(todo => `<li class="${ todo.completed }">${ todo.text }</li>`) } | |
</ul> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>SystemJS</title> | |
</head> | |
<body> | |
<script src="jspm_packages/system.js"></script> |