Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Albino Tonnina albinotonnina

🎯
Focusing
View GitHub Profile
View gist:d9be59d56a1ec0b69ef2ed20d986b7b3
### 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:
View gist:24fe72d2a01048014bfd6589a1e06066
### 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:
View keybase.md

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:

@albinotonnina
albinotonnina / snippet.json
Created Apr 19, 2018
Console.log the Ryan Florence Way!
View snippet.json
{
"consoleLogWithNameRyan": {
"prefix": "clRyan",
"body": [
"console.log({$1,$0})"
],
"description": "console.log('variable', variable) "
}
}
@albinotonnina
albinotonnina / snippet.json
Created Apr 19, 2018
Vs Code snippet for console.log
View snippet.json
{
"consoleLogWithName": {
"prefix": "cl",
"body": [
"console.log('$0', $0)"
],
"description": "console.log('variable', variable) "
}
}
View Icon.js
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`);
View getPrimesUpTo.js
// 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++) {
View reverseWords.js
'use strict';
function reverseWords(str) {
var reversedString = [],
wordLen = 0;
for (var i = str.length - 1; i >= 0; i--) {
if (str[i] == ' ' || i === 0) {
View fibonacci.js
function fibonacci(n){
if(n<=1)
return n;
else
return fibonacci(n-1) + fibonacci (n-2);
}
console.log(fibonacci(12))