Source: https://blog.jonlu.ca/posts/speeding-up-zsh
# zsh
for i in $(seq 1 10); do /usr/bin/time $SHELL -i -c exit; done
| real | user | sys |
| --- | --- | --- |
| 1.33 | 0.77 | 0.57 |
| 1.43 | 0.80 | 0.66 |
.wrapper .header, | |
.site-footer { | |
min-width: auto; | |
padding: 10px; | |
} | |
body .container { | |
max-width: 980px; | |
width: auto; | |
} |
[Coveralls] Set up the SimpleCov formatter. | |
[Coveralls] Using SimpleCov's default settings. | |
cocktail | |
user can create a cocktail | |
ingredients | |
user can create ingredients | |
User can sign in and out |
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | |
# | |
# If you find yourself ignoring temporary files generated by your text editor | |
# or operating system, you probably want to add a global ignore instead: | |
# git config --global core.excludesfile '~/.gitignore_global' | |
# Ignore bundler config. | |
/.bundle | |
# Ignore all logfiles and tempfiles. |
Source: https://blog.jonlu.ca/posts/speeding-up-zsh
# zsh
for i in $(seq 1 10); do /usr/bin/time $SHELL -i -c exit; done
| real | user | sys |
| --- | --- | --- |
| 1.33 | 0.77 | 0.57 |
| 1.43 | 0.80 | 0.66 |
I originally wrote this article for Codementor in October 2014. It should have something for everyone, from fairly new git users to experienced developers.
Sometimes the best way to get a feel for a problem is diving in and playing around with the code. Unfortunately, the changes made in the process sometimes turn out to be less than optimal, in which case reverting the file to its original state can be the fastest and easiest solution:
git checkout -- Gemfile # reset specified path
git checkout -- lib bin # also works with multiple arguments
rspec `git ls-files --modified --others spec` |
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
# Activate the gem you are reporting the issue against. |
module GivenWhenThen | |
module ClassMethods | |
def def_Given(name, *args, &block) | |
_gwt_define(:Given, name, *args, &block) | |
end | |
def def_When(name, *args, &block) | |
_gwt_define(:When, name, *args, &block) | |
end |
These use separate document structures instead of HTML, some are more modular libraries than full editors