Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Learning

Valerio Francescangeli franz899

💭
Learning
View GitHub Profile
@franz899
franz899 / generateRandomString.js
Last active Sep 11, 2019
Generate Random String
View generateRandomString.js
function generateRandomString(length) {
var id = "";
for (let i = 0; i < length; i++) {
const r = getRandomNumber();
if (r < 0.5) {
id += getNumberWithinRange(r, 0, 9);
} else {
id += String.fromCharCode(getNumberWithinRange(r, 97, 122));
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am franz899 on github.
  • I am franz899 (https://keybase.io/franz899) on keybase.
  • I have a public key ASAHKCUvBscP1f5IzCHOuWQ-0ReK1kX8EBAsd1FgnMP0vQo

To claim this, I am signing this object:

@franz899
franz899 / assign.js
Last active Nov 4, 2016
Lodash vs Ramda vs ES6
View assign.js
'use strict';
var _ = require('lodash');
var R = require('ramda');
var obj1 = {
a:1,
b:1,
}
View designer.html
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
You can’t perform that action at this time.