Skip to content

Instantly share code, notes, and snippets.

@danielantelo
danielantelo / microdata_resume_cv.html
Last active July 6, 2023 09:48
HTML5 Microdata Resume (Curriculum) Template
<!DOCTYPE html>
<html>
<head>
<!-- Meta conf -->
<meta charset="UTF-8">
<!-- Meta info -->
<title>HTML5 Microdata Resume (CV) Template</title>
<meta name="description" content="An example of how to layout a semantic html5 page for a curriculum vitae/resume">
<meta name="keywords" content="template, html, semantic, microdata, resume, cv, curriculum, vitae">
</head>
@danielantelo
danielantelo / scoping-and-hoisting-js-exercise.js
Created November 23, 2015 21:01
Simple scoping and hoisting js exercise
var foo = 1;
(function() {
console.log(foo);
var foo = 2;
var baz = 3;
bar = 4;
})();
console.log(foo);
@danielantelo
danielantelo / optimize.sh
Last active May 12, 2021 11:17
Optimise images in a folder for web
#!/bin/bash
commandExists () {
type "$1" &> /dev/null ;
}
installImageMagick() {
if commandExists brew; then
brew install imagemagick
else
{
"base": "GBP",
"history": [
{
"date": "2021-04-01",
"rates": [
{
"currency": "EUR",
"value": 5.0611
}
[
{
"name": "Loan 1",
"status": "warning",
"attributes": [
{
"label": "gross facility",
"content": "$3000000"
},
{
@danielantelo
danielantelo / README.md
Last active September 16, 2019 13:51
YNAP Frontend Task

YNAP Frontend Task

Outline

Create a small React based app that shows off your frontend skills and implements a parallax hero header and sticky columns as per the videos attached.

Note: videos are to be used as a guideline only, no need to replicate all the content.

Requirements

@danielantelo
danielantelo / microdata_business.html
Last active August 2, 2018 00:13
HTML5 Microdata Business Template
<!DOCTYPE html>
<html>
<head>
<!-- Meta conf -->
<meta charset="UTF-8">
<!-- Meta info -->
<title>HTML5 Microdata Business Template</title>
<meta name="description" content="An example of how to layout a semantic html5 page for a business with products">
<meta name="keywords" content="template, html, semantic, microdata, business">
</head>
@danielantelo
danielantelo / README.md
Created July 24, 2016 17:30
Javascript data transformer exercise

Javascript data transformer exercise

Write a function that would take this sample data:

[
    { banana: 'fruit' },
    { apple: 'fruit' },
    { carrot: 'vegetable' }
]
@danielantelo
danielantelo / benchmark
Last active December 28, 2017 12:29
script to apache benchmark website (ab tool)
#!/bin/bash
# command to run apache benchmark tool
# ** usage **
# ./benchmark "https://www.apple.com/"
curl -X GET "$1"
ab -k -c 20 -n 250 "$1"
@danielantelo
danielantelo / ttfb
Last active December 28, 2017 12:29
script to get ttfb of a website
#!/bin/bash
# command to check the time to first byte
# ** usage **
# 1. ./ttfb "https://www.apple.com/"
# 2. seq 10 | xargs -Iz ./ttfb "https://www.apple.com/"
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-s \
-w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" \