# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.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
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
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
/* | |
* Javascript Diff Algorithm | |
* By John Resig (http://ejohn.org/) | |
* Modified by Chu Alan "sprite" | |
* | |
* Released under the MIT license. | |
* | |
* More Info: | |
* http://ejohn.org/projects/javascript-diff-algorithm/ | |
*/ |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Mathcha</title> | |
<link rel="stylesheet" href="/resources/fonts-8fdb539.css" /> | |
<link rel="icon" | |
type="image/png" | |
href="/resources/logo.png"/> | |
<meta name=viewport content="width=device-width, height=device-height, initial-scale=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
(function(doc) { | |
const TWO_PI = Math.PI * 2; | |
const HALF_PI = Math.PI / 2; | |
const RADIUS_SCALE = 0.05; | |
const RADIUS_SD = 15; | |
const POLYGON_SIDES = 5; | |
const POSITION_SD = 0.04; | |
const BASE_DEFORMATIONS = 3; | |
const LAYER_DEFORMATIONS = 3; | |
const LAYERS = 40; |
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
/** | |
* Light layer on top of a canvas element to represent an image displayed | |
* within. Pass in a canvas element and an Image object and you'll see the | |
* image within the canvas element. Use the provided methods (e.g. blur) to | |
* manipulate it. | |
* | |
* @constructor | |
* @param {HTMLElement} element HTML canvas element. | |
* @param {Image} image Image object. | |
*/ |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var routes = require('./routes'); | |
var user = require('./routes/user'); | |
var http = require('http'); | |
var path = require('path'); |
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
/* ------------------------------------------- *\ | |
Main | |
\* ------------------------------------------- */ | |
html { | |
background: #DAD8DB; | |
text-align: center; | |
} | |
body { | |
font: 16px sans-serif; | |
color: #000; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<script> | |
window.onload=function (){ | |
function getCommandList(){ | |
return {'2D-Position':true, | |
'absolutePosition':true, |
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
// ================================== | |
// linear regression trainer in rust | |
// @author 6174 | |
// ================================== | |
// use std::cell::RefCell; | |
use std::vec::Vec; | |
fn main() { | |
// linear_regression(); |
NewerOlder