Skip to content

Instantly share code, notes, and snippets.

View v19i's full-sized avatar
💭
Learning

Valerio Francescangeli v19i

💭
Learning
View GitHub Profile
@v19i
v19i / settings.json
Last active February 20, 2024 09:49
VSCode - settings.json
{
// App
"window.nativeTabs": false,
// Window Title, only works with native tabs enabled
// "window.title": "${activeEditorShort}${separator}${rootName}"
"window.title": "${activeFolderShort}",
"window.newWindowDimensions": "inherit",
"window.autoDetectColorScheme": true,
@v19i
v19i / vscode-js-ts-snippets.json
Last active September 6, 2021 10:11
VSCode: JS/TS Snippets
"new empty lambda": {
"prefix": "nel",
"body": [
"($1) => {$2}"
],
"description": "creates a new empty lambda expression"
},
"new async empty lambda": {
"prefix": "nela",
"body": [
@v19i
v19i / generateRandomString.js
Last active March 4, 2021 01:02
Generate Random String
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));
}
}
@v19i
v19i / keybase.md
Created October 24, 2017 17:17
Keybase proof

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:

@v19i
v19i / assign.js
Last active November 4, 2016 11:29
Lodash vs Ramda vs ES6
'use strict';
var _ = require('lodash');
var R = require('ramda');
var obj1 = {
a:1,
b:1,
}
@v19i
v19i / designer.html
Created July 10, 2014 15:37
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;