Skip to content

Instantly share code, notes, and snippets.

View smakosh's full-sized avatar
👨‍💻
Building https://ontwik-dev.com

Ismail Ghallou smakosh

👨‍💻
Building https://ontwik-dev.com
View GitHub Profile
@smakosh
smakosh / countries.json
Created April 12, 2019 09:54
List of countries in arabic
[
{
"label": "آروبا",
"value": "آروبا"
},
{
"label": "أسبانيا",
"value": "أسبانيا"
},
{
@smakosh
smakosh / BgImage.js
Created November 15, 2018 10:40
Gatsby-image as a background image
import Img from 'gatsby-image'
import styled from 'styled-components'
import PropTypes from 'prop-types'
export const BgImage = styled(Img)`
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: -1;
@smakosh
smakosh / docker-help.md
Created August 16, 2018 01:27 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@smakosh
smakosh / vanilla_percepton_js.js
Created March 14, 2018 07:31
Perceptron from scratch with vanilla Js
// Sigmoid
const sigmoid = x => 1 / (1 + Math.exp(-x))
const D_sigmoid = x => sigmoid(x) * (1-sigmoid(x))
// data
const data = [
[ 5.1, 3.5, 0 ],
[ 4.9, 3. , 0 ],
[ 4.7, 3.2, 0 ],
@smakosh
smakosh / flower_classifier.ipynb
Last active February 18, 2018 05:56
A simple perceptron built from scratch
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.