Skip to content

Instantly share code, notes, and snippets.

@igorkosta
igorkosta / manifest.json
Created April 19, 2021 09:34
PWA Manifest File
"name": "BANG",
"short_name": "BANG",
"description": "Neo Bang",
"start_url": "/",
"display": "standalone",
"orientation": "portrait",
"background_color": "#1B252C",
"theme_color": "#1B252C",
"icons": [
{
@igorkosta
igorkosta / composing-software.md
Created March 23, 2021 15:56 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series

Eric Elliott's "Composing Software" Series

A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.

Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.

@igorkosta
igorkosta / swapi.js
Last active March 18, 2021 09:36
Get all characters with respective movie titles they appeared in
const axios = require('axios');
const PEOPLE_URL = 'https://swapi.dev/api/people/';
const FILMS_URL = 'https://swapi.dev/api/films/';
let people = [];
async function fetchPeople(url = PEOPLE_URL) {
try {
var { data } = await axios.get(url);
people = people.concat(data.results);
@igorkosta
igorkosta / user.js
Last active February 12, 2021 13:43
import { API, graphqlOperation } from 'aws-amplify';
import { getUser } from '@/graphql/queries';
import { createUser, updateUser } from '@/graphql/mutations';
import { exclude } from '@/utils/json';
const get = async (email) => {
try {
const {
data: {
getUser: user,

Keybase proof

I hereby claim:

  • I am igorkosta on github.
  • I am igorkosta (https://keybase.io/igorkosta) on keybase.
  • I have a public key ASChwTzS7Dl6vayCMj2cRa3dGRK4yeQrrOvK7sAII1ZSswo

To claim this, I am signing this object:

@igorkosta
igorkosta / index.js
Created March 24, 2019 21:59
src/router/routes/index.js
import publicRoutes from '@/router/routes/public.js'
import privateRoutes from '@/router/routes/private.js'
export default publicRoutes.concat(privateRoutes)
@igorkosta
igorkosta / private.js
Created March 24, 2019 18:53
src/router/routes/private.js
import Accounts from '@/views/Accounts/Index.vue'
import Dashboard from '@/views/Dashboard/Index.vue'
import Settings from '@/views/Settings/Index.vue'
const routes = [
{
path: '/accounts',
name: 'accounts',
component: Accounts
},
@igorkosta
igorkosta / public.js
Created March 24, 2019 18:52
src/router/routes/public.js
import Login from '@/views/Login.vue'
import Registration from '@/views/Registration.vue'
import ForgotPassword from '@/views/ForgotPassword.vue'
const routes = [
{
path: '/login',
name: 'login',
component: Login
},
@igorkosta
igorkosta / index.js
Created March 24, 2019 18:51
src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import store from '@/store/index.js'
import routes from '@/router/routes/index.js'
Vue.use(Router)
const router = new Router({
routes: [
{
path: '/',
@igorkosta
igorkosta / index.js
Last active March 22, 2019 20:46
Vue Router
import Vue from 'vue'
import Router from 'vue-router'
import store from '@/store/index.js'
import routes from '@/router/routes/index.js'
Vue.use(Router)
const router = new Router({
routes: [
{
path: '/',