Skip to content

Instantly share code, notes, and snippets.

View ryrych's full-sized avatar

Wojtek Ryrych ryrych

View GitHub Profile
@ryrych
ryrych / errorize-test.js
Created November 26, 2015 18:37
After refactoring
```javascript
import errorize from '../../../utils/errorize';
import { module, test } from 'qunit';
module('Unit | Utility | errorize');
test('errorize', function(assert) {
var errors = {
responseJSON: {
errors:[
@ryrych
ryrych / errorize.js
Created November 27, 2015 20:42
After refactoring #2
import Ember from 'ember';
var errorize = Ember.Object.extend({
init() {
this._super();
this.set('errorsList', {});
},
validObject() {
return !!this.get('errors');
@ryrych
ryrych / vim-ctrlspace-vimrc
Created January 1, 2016 20:00
Basic vimrc config for learning Vim-CtrlSpace
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
" Change path if necessary
call vundle#begin('~/vim-ctrlspace-learning')
Plugin 'VundleVim/Vundle.vim'
Plugin 'szw/vim-ctrlspace'
Plugin 'NLKNguyen/papercolor-theme'
@ryrych
ryrych / chalwa-domowa.md
Last active August 10, 2016 16:44
Recipes to get Balmer's peak while coding

Chalwa domowa

Sezam (niełuskany).................................200 g
Miód...............................................5 łyżek
  1. Sezam lekko uprażyć na patelni tak by ziarno nabrało lekko złotawego koloru
  2. Zmielić ziaro blenderem
@ryrych
ryrych / controllers_diagram.rb
Created March 3, 2016 07:05
Generate graph of jsonapi resources
# railroady -v --hide-private -i -o test.dot -s 'app/resources/**/*_resource.rb' -C && neato -Tpng -O test.dot
# RailRoady - RoR diagrams generator
# http://railroad.rubyforge.org
#
# Copyright 2007-2008 - Javier Smaldone (http://www.smaldone.com.ar)
# See COPYING for more details
require 'railroady/app_diagram'
@ryrych
ryrych / recording_screencasts.md
Created December 5, 2016 10:52
Recording screencasts

Recording

  • Ensure that fullscreen is on
  • Disable spell checker
  • Record using Quicktime (no audio)
  • If possible select rectangle recording area
  • Save with highest possible quality e.g 1920x1080
  • Hide cursor if not needed