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
// Object.prototype.toString() | |
// "[object Object]" | |
// let obj = {} | |
// undefined | |
// obj.toString() | |
// "[object Object]" | |
// obj.a=1 | |
// 1 | |
// obj.toString() | |
// "[object 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
// https://github.com/Polymer/polymer/blob/master/lib/utils/html-tag.js#L94-L99 | |
export const html = function html(strings, ...values) { | |
const template = /** @type {!HTMLTemplateElement} */(document.createElement('template')); | |
template.innerHTML = values.reduce((acc, v, idx) => | |
acc + htmlValue(v) + strings[idx + 1], strings[0]); | |
return template; | |
}; |
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
@mixin border-1px ($position: all, $border-width:1px, $border-style:solid, $border-color:$border-color, $border-radius:0) { | |
$_position: $position; | |
@if $_position == all { | |
$_position: ''; | |
} @else { | |
$_position: '-' + $position; | |
}; | |
position: relative; | |
&:after{ | |
display: block; |
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
<canvas id="container"></canvas> | |
<script type="webgl/vertex-script" id="vertexShader"> | |
attribute vec2 vertexPosition; | |
void main(){ | |
gl_Position = vec4(vertexPosition, 0.0, 1.0); | |
} | |
</script> | |
<script type="webgl/fragment-script" id="fragmentShader"> | |
// https://stackoverflow.com/questions/28540290/why-it-is-necessary-to-set-precision-for-the-fragment-shader |
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
<canvas id="container"></canvas> | |
<script type="webgl/vertex-script" id="vertexShader"> | |
attribute vec2 vertexPosition; | |
void main(){ | |
gl_Position = vec4(vertexPosition, 0.0, 1.0); | |
} | |
</script> | |
<script type="webgl/fragment-script" id="fragmentShader"> | |
// https://stackoverflow.com/questions/28540290/why-it-is-necessary-to-set-precision-for-the-fragment-shader |
Download: StarUML.io
Source: jorgeancal
After installing StartUML successfully, modify LicenseManagerDomain.js
as follow:
/**
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
let scene=new THREE.Scene(); | |
let camera= new THREE.PerspectiveCamera(45,window.innerWidth/window.innerHeight,1,1000) | |
let renderer=new THREE.WebGLRenderer(); | |
let stats; | |
let controller; | |
let sphere ; | |
let startPoint; | |
let jumpPoint = [] | |
let rAFId ; | |
let jumpV ; |