Skip to content

Instantly share code, notes, and snippets.

View ryrych's full-sized avatar

Wojtek Ryrych ryrych

View GitHub Profile
@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
@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 / 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 / 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 / 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 / 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-test.js
Created November 26, 2015 18:35
Before 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 / finding-bookmarked-projects.md
Created November 22, 2015 15:22
vim-ctrlspace: Finding bookmarked projects
$ vim
[CTRL]+[C]
[B]
@ryrych
ryrych / adding_a_project_to_bookmarks.md
Created November 22, 2015 15:13
vim-ctrlspace: Adding a project to bookmarks
$ vim
<kbd>CTRL</kbd>+<kbd>C</kbd>
<kbd>b</kbd>
<kbd>a</kbd>
⌗ Add directory to bookmarks: /Users/ryrych/projects/ember_awesome/<kbd>Enter</kbd>
⌗ New bookmark name: Ember is Awesome Bookmark<kbd>Enter</kbd>
@ryrych
ryrych / grouping_files.md
Last active November 22, 2015 15:03
vim-ctrlspace: Grouping files
$ vim

# Open Ember project
[CTRL]+[SPACE]
[B]
>ember<
[Enter]

# Search for `README.md` and open it in the current tab without closing the plugin window