Skip to content

Instantly share code, notes, and snippets.

View LeonardoCiaccio's full-sized avatar

Leonardo Ciaccio LeonardoCiaccio

View GitHub Profile
@LeonardoCiaccio
LeonardoCiaccio / media-query.css
Created August 11, 2019 15:38 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@LeonardoCiaccio
LeonardoCiaccio / softmax.js
Created October 13, 2017 10:37 — forked from cyphunk/softmax.js
softmax function implementation in js
//let softmax = (arr) => (index) => Math.exp(arr[index]) / arr.map(y => Math.exp(y)).reduce((a, b) => a + b);
function softmax(arr) {
return arr.map(function(value,index) {
return Math.exp(value) / arr.map( function(y /*value*/){ return Math.exp(y) } ).reduce( function(a,b){ return a+b })
})
}
example1=[ 0.9780449271202087,
0.01590355671942234,
@LeonardoCiaccio
LeonardoCiaccio / 0_reuse_code.js
Last active August 29, 2015 14:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console