Skip to content

Instantly share code, notes, and snippets.

View khex's full-sized avatar

Oleksii Kholiavko khex

View GitHub Profile
@khex
khex / tamagotchi.py
Created December 18, 2021 15:19 — forked from ryesalvador/tamagotchi.py
Tamagotchi Emulator in PyGame
# Tamagotchi - A port of the Tamagotchi Emulator by aerospark: https://goo.gl/gaZ1fA
# Copyright (C) 2017 Ryan Salvador
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@khex
khex / issue_driven_development.md
Created November 3, 2021 12:59
Issue-Driven Development

Issue-driven Development

Principle of issue-driven development is simple:

  • Always associate development to GitHub issue.

Issue-driven development achieves:

  • Modularity: Commits and branches are self-contained.
  • Granularity: Commits and branches intend a single Issue.
  • Transparency: Discussion on each edition can be seen on Issue.
@khex
khex / client.elm
Created October 24, 2021 08:29 — forked from sabha/client.elm
Elm Client, Node Server , Mongo DB, Mongoose ODM - Get Users and Post User
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Http
import Json.Decode as Decode
import Json.Encode as Encode
main =
@khex
khex / json-schema.js
Created December 25, 2019 10:32 — forked from JamesMessinger/json-schema.js
Using JSON Schema in Postman
// Define the JSON Schema
const customerSchema = {
"required": ["id"],
"properties": {
"id": {
"type": "integer",
"minimum": 100,
"maximum": 1000
},
"name": {
const ROUTES: Route[] = [
{ path: 'home', component: HomeComponent },
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'redirectMe', redirectTo: 'home', pathMatch: 'full' },
{ path: 'users/:userid', component: UserComponent,
children: [
{ path: 'notes', component: NotesComponent },
{ path: 'notes/:noteid', component: NoteComponent}
]
},
@khex
khex / seo.service.ts
Created April 8, 2017 13:19 — forked from kaaboeld/seo.service.ts
Example working service for adding meta tags to <head/> for angular2-universal. Based on http://blog.devcross.net/2016/04/17/angular-2-universal-seo-friendly-website/
import {Injectable,Inject,ElementRef, Renderer} from '@angular/core';
//import { DOCUMENT } from '@angular/platform/common_dom';
import {DOCUMENT} from '@angular/platform-browser';
@Injectable()
export class SeoService {
private _r: Renderer;
private _el: ElementRef;
private _document: any;
/**