Skip to content

Instantly share code, notes, and snippets.

View ignar's full-sized avatar
💭
🇨🇦🇩🇪🇺🇦 Fewer lines, thus fewer bugs

Artem Melnykov ignar

💭
🇨🇦🇩🇪🇺🇦 Fewer lines, thus fewer bugs
View GitHub Profile
@ignar
ignar / ruby-resources-list.md
Last active April 9, 2020 13:45
Artem's list of ruby resources
@ignar
ignar / reset_routing_table.sh
Created February 11, 2018 20:57 — forked from bmaddy/reset_routing_table.sh
Reset routing table on OSX
#!/usr/bin/env bash
# Reset routing table on OSX
# display current routing table
echo "********** BEFORE ****************************************"
netstat -rn
echo "**********************************************************"
for i in {0..4}; do
sudo route -n flush # several times
---
definitions:
User:
allOf:
- $ref: '#/definitions/ModelWithTimestamps'
- $ref: '#/definitions/ModelWithID'
- type: object
description: User
required:
@ignar
ignar / bl-widget-clients.txt
Last active October 23, 2017 15:08
WUUID, Client Secret
[
["w-71a21a78-0435-40e4-80a9-0025e9125049", "27c3dc0d182ac14ee6d665c59bd4bf"],
["w-a951013a-3aa6-442f-9e4c-4f091fe9a601", "9195bee757503af98c773584d66f37"],
["w-71ea55ec-ca65-42f7-9605-263901a94d98", "cc13102def7fedebe0b385e0a7bb04"],
["w-bed696ca-cd17-4ce2-9e2b-9a55d4033cbb", "6f108ee42d4ce80b8353c61ffa2a6b"],
["w-bf6f59a2-25c5-4b93-a12c-578d72c0b4c8", "c5bbd65e103e9d7c723c4abab3a2ab"],
["w-9872e266-73fd-42bd-966d-e4b743fd120f", "e7fc07877cf7f880b90badb4349b2a"],
["w-14d24fa1-3264-47cb-b9f8-4bdddbeae319", "f735dc9440ff457eb7b440c4789d52"],
["w-bc089bcf-11b5-448a-b9d5-4bc5288e5c8d", "e391070a0af3c3f42023d114bb9e98"],
["w-fc191dd4-9148-4fd9-a003-4f7b2f854be5", "677c4e854ef5bda7ac84b37f3bf061"],
@ignar
ignar / update-coreos.sh
Created July 11, 2017 07:44
Update CoreOS
sudo systemctl unmask update-engine.service
sudo systemctl start update-engine.service
sudo update_engine_client -check_for_update
sudo journalctl -fu update-engine
  • i can't unvote posts that i already vote on. If i like a post, i want to be able to unlike it in the future.
  • when i click on my nickname or my profile image, i expect to get to my user's overview
  • at least one line break should be possible in the feedback description. currently its not possible to insert linebreaks.
  • once i click on a star rating (in the form) i am forced to give at least one star. But it's aslso possible to rate completely without stars. So we should
    • either prevent users from being able to rate without stars
    • or provide a possibility to undo the rating descision, so i can rate without stars at any given time

i would prefer to prevent users from rating without stars. It's also kind of confusing, that the posts without stars are not getting counted in the overall posts made: Currently the page says that there are 20 feedbacks in total, but there are actually 21 (20 with stars, one post without star rating).

  • it would be nice if the feedback form is able to minimize itself again,
@ignar
ignar / convert.sh
Created June 26, 2017 10:03
Transcode VMA into mp3
#!/bin/sh
vcodec="mp4v"
acodec="mp4a"
bitrate="1024"
arate="128"
mux="mp3"
# For Linux
#vlc="/usr/bin/vlc"
@ignar
ignar / test_assignment.md
Created June 15, 2017 15:12
Brandslisten GmbH Test Assignment

Brandslisten GmbH Test Assignment

Let's assume, that got back into dark ages when developers haven't FactoryGirl gem and had to use fixtures instead.

You are first one, who understood that fixtures are not so handy as other think they are. You decide to write you own library and open source it for the world. FactoryBoy is looking like a good name.

You started from the simple class that you want to test and looks as simple as it is:

class User

attr_accessor :name, :email

@ignar
ignar / brandslisten.yaml
Last active June 23, 2017 11:16
Brandslisten API V2.1
swagger: '2.0'
info:
version: "0.4"
title: Brandslisten API
description: |
API provided by Brandslisten GmbH
host: 0.0.0.0:10010
basePath: /
@ignar
ignar / bl-test-assignment.md
Last active May 8, 2017 08:32
Programming Challenge

Scenario

You like to read the articles in your feed. The problem is there are so many entries each day and only a few of the articles are really good. In order to save time, you want to implement your personal feed reader. It should be a web-application that displays the last N entries of your favorite feed. The special thing about your reader: You can provide a whitelist and a blacklist of keywords. Entries of the feed are classified as "interesting" or "boring" based on the black/white-lists. For example, if you don't like sports, your blacklist would include "sport", "tennis" and similar keywords. If you love programming, your whitelist would include "ruby", "crystal" and others. The feed on your website should highlight "interesting" entries and grey-out "boring" entries. Both white- and blacklist can be hardcoded.

Tasks

  • Create a web-application (rails 5, sinatra, hanami, ...)