Skip to content

Instantly share code, notes, and snippets.

View albinotonnina's full-sized avatar
🎯
Focusing

Albino Tonnina albinotonnina

🎯
Focusing
View GitHub Profile
### Keybase proof
I hereby claim:
* I am albinotonnina on github.
* I am albinotonnina (https://keybase.io/albinotonnina) on keybase.
* I have a public key ASA_Kj8XFwkKMntB3ah9Mgt1YBjuRN64mFg3Fm-RW21iwgo
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am albinotonnina on github.
* I am albinotonnina (https://keybase.io/albinotonnina) on keybase.
* I have a public key ASA_Kj8XFwkKMntB3ah9Mgt1YBjuRN64mFg3Fm-RW21iwgo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am albinotonnina on github.
  • I am albinotonnina (https://keybase.io/albinotonnina) on keybase.
  • I have a public key ASDBEqX7qUl1raomljOW1B7PKSM4FXjWKeLQVXvw5BTbLQo

To claim this, I am signing this object:

/*
Problem:
['Tokyo', 'London', 'Rome', 'Donlon', 'Kyoto', 'Paris']
// YOUR ALGORITHM
@albinotonnina
albinotonnina / snippet.json
Created April 19, 2018 23:04
Console.log the Ryan Florence Way!
{
"consoleLogWithNameRyan": {
"prefix": "clRyan",
"body": [
"console.log({$1,$0})"
],
"description": "console.log('variable', variable) "
}
}
@albinotonnina
albinotonnina / snippet.json
Created April 19, 2018 22:55
Vs Code snippet for console.log
{
"consoleLogWithName": {
"prefix": "cl",
"body": [
"console.log('$0', $0)"
],
"description": "console.log('variable', variable) "
}
}
import React from 'react';
import PropTypes from 'prop-types';
import {Parser, ProcessNodeDefinitions} from 'html-to-react';
function Icon(props) {
const {name, size, color} = props;
//https://webpack.js.org/guides/dependency-management/#require-with-expression
const rawSvgContent = require(`../../icons/svg/${glyph}.svg`);
// display prime numbers up to n.
'use strict';
var isPrime = function isPrime(number) {
if (number < 2) return false;
var sqrt = Math.floor(Math.sqrt(number));
for (var i = 2; i <= sqrt; i++) {
'use strict';
function reverseWords(str) {
var reversedString = [],
wordLen = 0;
for (var i = str.length - 1; i >= 0; i--) {
if (str[i] == ' ' || i === 0) {
function fibonacci(n){
if(n<=1)
return n;
else
return fibonacci(n-1) + fibonacci (n-2);
}
console.log(fibonacci(12))