Skip to content

Instantly share code, notes, and snippets.

View alcovegan's full-sized avatar
🏠
Working from home

Alexander Sharabarov alcovegan

🏠
Working from home
View GitHub Profile
<template>
<div>
<div v-if="!isTestFinished">
<Title :lang="lang" />
<div class="mb-2 text-auro-metal-saurus text-sm mb-12">{{ questionsProgress }}</div>
<div class="flex w-full items-center mb-12">
<div class="mx-6 w-full h-[7px] bg-antiflash-white">
<div class="rounded-xl h-full transition-all duration-300 ease-in bg-brandeis-blue"
:style="currentStepProgress">
</div>
@alcovegan
alcovegan / wp-rest-api-slug
Created September 28, 2017 05:25 — forked from geoffyuen/wp-rest-api-slug
Get Page using slug from WP Rest API
http://localhost/wp-json/pages?filter[name]=the-page-slug
// or this seems to work too:
http://localhost/wp-json/pages/the-page-slug
@alcovegan
alcovegan / fizzbuzz.js
Created August 29, 2017 20:00
Javascript ES6 FizzBuzz solution
const fizzBuzz = () => {
[...Array(100).keys()].map(n => n+1).forEach(num => {
// 3)
return num % 15 === 0
? console.log('FizzBuzz')
: num % 5 === 0
? console.log('Buzz')
: num % 3 === 0
? console.log('Fizz')
const async = require('async');
const request = require('axios');
function iteratee(asset, cb) {
request
.get(`construct url with asset here`)
.then(function(res) {
cb(null, params);
})
.catch(err => {
@alcovegan
alcovegan / styles.css
Created December 21, 2015 09:36 — forked from pburtchaell/styles.css
VH and VW units can cause issues on iOS devices. To overcome this, create media queries that target the width, height, and orientation of iOS devices.
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/