Skip to content

Instantly share code, notes, and snippets.

View MichalBryxi's full-sized avatar
⛰️
Vacationing

Michal Bryxí MichalBryxi

⛰️
Vacationing
View GitHub Profile
@MichalBryxi
MichalBryxi / rock-and-roll-ember-interview-questions.md
Last active September 4, 2024 15:54 — forked from balinterdi/rock-and-roll-ember-interview-questions.md
The Rock & Roll with Ember band – Interview questions

These are the questions that can serve as a guide for the interview. You don't have to religiously adhere to them, though, so feel free to skip any or even come up with others you'd like to answer.

The easiest way for me to compose the interviews would be for you to fork this gist, add your name and your answers to the questions (right below each question) and send me the link to your gist.

  1. Could you introduce yourself in a few sentences?

Hi, I'm Michal Bryxí, or Míša. You might know me from EmberJS Discord, conferences or just the internet space. I'm quite a keen advocate of good UX, not blaming users for the faults of the IT industry and spending my time in any other way than at the computer.

  1. Which part of the world you are from?
@MichalBryxi
MichalBryxi / controllers.application.js
Last active July 20, 2021 16:58 — forked from poteto/controllers.application.js
ember-changeset-validations demo
import Ember from 'ember';
import AdultValidations from '../validations/adult';
import ChildValidations from '../validations/child';
import { reservedEmails } from '../validators/uniqueness';
import { schema } from '../models/user';
const { get } = Ember;
const { keys } = Object;
export default Ember.Controller.extend({
@MichalBryxi
MichalBryxi / components.my-component.js
Created May 15, 2019 16:43 — forked from sukima/components.my-component.js
class property does more then you think
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['my-component'],
class: ''
});
@MichalBryxi
MichalBryxi / components.my-component.js
Last active February 1, 2019 11:31 — forked from vitch/components.my-component.js
Dynamic computed property path - v03
import Ember from 'ember';
import {computed} from '@ember/object';
export default Ember.Component.extend({
magicName: 'foo',
foo: 'I am foo',
didReceiveAttrs() {
@MichalBryxi
MichalBryxi / adapters.application.js
Last active July 25, 2017 14:48 — forked from Gaurav0/application.route.js
ember-data duplicate IDs
import Adapter from "ember-data/adapters/rest";
export default Adapter.extend();
@MichalBryxi
MichalBryxi / controllers.application.js
Created March 29, 2017 15:22 — forked from fhrbek/controllers.application.js
Slow Route with loading state
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Randomly Slow Route Demo'
});
@MichalBryxi
MichalBryxi / controllers.application.js
Last active April 4, 2017 10:14 — forked from fhrbek/controllers.application.js
Slow response + data proxy
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Randomly Slow Route Demo with bypassing setupController'
});
@MichalBryxi
MichalBryxi / grok_tester.rb
Last active December 17, 2015 22:39 — forked from wigsy/test_patterns.rb
Ever wanted to know why your grok patterns does not work? This might help a little.
require 'rubygems'
require 'pp'
# gem install jsl-grok
require 'grok-pure'
# Variable just to DRY it
BASE_PATH = '/home/michal/iw/puppet/modules/logstash/files'
# Set where are your grok patterns stored
PATTERN_GLOB = [
"#{BASE_PATH}/grok_patterns/*",
@MichalBryxi
MichalBryxi / logstash_postfix_indexer.conf
Last active December 17, 2015 14:39 — forked from tkorkunckaya/postfix_patterns
Logstash indexer config for parsing postfix logs
# We will focus only on how to parse the records
filter {
# Split postfix record to basic parts
grok {
type => 'postfix'
pattern => '%{SYSLOGBASE}'
named_captures_only => true
}