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 / 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 / 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 / jqBootstrapValidation.js
Created August 21, 2013 08:34
jqBootstrapValidation shouldn't depend only on Bootstrap markup
/* jqBootstrapValidation
* A plugin for automating validation on Twitter Bootstrap formatted forms.
*
* v1.3.6
*
* License: MIT <http://opensource.org/licenses/mit-license.php> - see LICENSE file
*
* http://ReactiveRaven.github.com/jqBootstrapValidation/
*/
@ryrych
ryrych / compass-rails
Created August 6, 2013 14:16
making compass-rails work in Rails 4.0.0
gem 'compass-rails', github: 'milgner/compass-rails', branch: 'rails4'
# application.rb
if defined?(Compass)
config.assets.paths << Compass::Frameworks[:compass].stylesheets_directory
end
@ryrych
ryrych / application.hbs
Last active December 20, 2015 14:19
Ember.js Gravatar Component. Original version: http://plnkr.co/edit/QbhyrcXZ6LbGzVFfEzD4 by cavneb with further changes.
{{gravatar-image email="cavneb@gmail.com"}}
@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:[