Skip to content

Instantly share code, notes, and snippets.

View albinotonnina's full-sized avatar
🎯
Focusing

Albino Tonnina albinotonnina

🎯
Focusing
View GitHub Profile
@albinotonnina
albinotonnina / isPrime.js
Last active November 19, 2016 20:18 — forked from anonymous/index.html
isPrime
let ultimatePrime = number => {
let sqrt = (Math.floor(Math.sqrt(number)));
for (let i = 2 ; i <= number/2; i++){
if(number % i === 0) {
return false;
}

Happy with your CSS files in your big app?

OOCSS, BEM, SMACSS, ITCSS, ACSS, ITCSS under attack.

Hello, my name is Albino Tonnina.
I’m a senior front-end developer based in London.

I work daily with a bunch of talented people. Young developers and people who

@albinotonnina
albinotonnina / SassMeister-input.scss
Created June 24, 2016 17:20
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@mixin get-icon($icon-name) {
font-style: normal;
font-weight: normal;
font-variant: normal;
@albinotonnina
albinotonnina / bootstrap3.json
Last active October 4, 2015 16:01
bootstrap3 guideguide custom set
{"Default":{"name":"Default","sets":{"469eb8921edf75ed3360d5838f9585c0d7a82109":{"name":"Outline","string":"| ~ | (vFl)\n| ~ | (hFl)","id":"469eb8921edf75ed3360d5838f9585c0d7a82109"},"84676cd434499994ef5176c93d970e83079cbc6c":{"name":"Two column grid","string":"| ~ | ~ | (vFl)","id":"84676cd434499994ef5176c93d970e83079cbc6c"},"d521212626e4f9f144821a52dcdaf3e1f6c8cffd":{"name":"Three column grid","string":"| ~ | ~ | ~ | (vFl)","id":"d521212626e4f9f144821a52dcdaf3e1f6c8cffd"},"c9d432ed7d0ada04c98151ae5ba2b59d4d618c00":{"name":"Bootstrap 3","string":"$v = | ~ | 7.5px | 7.5px |\n$vC = | ~ |\n| $v*11 | $vC | ( vlp, | ~ )\n$h = | ~ |\n| $h | ( hlp, | ~ )","id":"c9d432ed7d0ada04c98151ae5ba2b59d4d618c00"}}}}
@albinotonnina
albinotonnina / data.js
Last active August 29, 2015 14:08 — forked from tkazec/data.js
var Data = {
has: function (key) {
return localStorage.getItem(key) !== null;
},
get: function (key) {
return Data.has(key) ? JSON.parse(localStorage.getItem(key)) : undefined;
},
set: function (key, val) {
localStorage.setItem(key, JSON.stringify(val));
},
module(..., package.seeall)
local GameRand = require "GameRand"
-- create a GameRand object
gr1=GameRand()
-- seed with "test"
gr1:seed('test')
local physics = require("physics")
physics.start()
physics.setGravity( 0, 70 )