Skip to content

Instantly share code, notes, and snippets.

View scruti's full-sized avatar

Marc Sardón scruti

  • Bichito Software LTD
  • London
View GitHub Profile
@stevecondylios
stevecondylios / resize-image-in-github-issue-github-flavored-markdown.md
Last active May 16, 2024 06:14
How to Resize an Image in a Github Issue (e.g. Github flavored Markdown)

How to Resize an Image in Github README.md (i.e. Github Flavored Markdown)

Percentage:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width=50% height=50%>

Pixels:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width="150" height="280">

@jurinco
jurinco / introduction.md
Created May 28, 2017 21:17 — forked from wagnerjgoncalves/introduction.md
Notes from Growing Rails Applications in Practice

Growing Rails Applications in Practice

  • How to use discipline, consistency and code organization to make your code grow more gently.

  • As you cycle through patterns, your application is becoming a patchwork of different coding techniques.

    All those new techniques actually help, or if you are just adding layers of inderection.

  • Large applications are large so what we can do is organize a codebase in a way that "scales logarithmically".

@jonnyjava
jonnyjava / CleanCode.md
Last active August 3, 2022 12:28
Clean Code summarized

Clean Code

The boy scout rule

Leave the campground cleaner than you found it

Naming

  • If a name requires a comment, then the name doesn't reveal its intent
  • Use searchable, meaningful and pronounceable names
  • Avoid mental mapping
@oinak
oinak / README.md
Created January 23, 2015 18:50
Guilded Rose Kata al WeArePeople

The Gilded Rose Code Kata

This is a Ruby version of the Gilded Rose Kata, found [here](http://www.iamnotmyself.com/2011/02/13/RefactorThisTheGildedRoseKata.aspx I Am Not Myself).

This is a refactorying kata, so you will be starting with a legacy code base. To work the Kata, clone this git repository and checkout the tag 'start-here'. Read the description below for the "rules" involving this kata.

@benarent
benarent / gist:4294d6e620ec5ec6239e
Last active August 29, 2015 14:10
Temporary direct IP access to Airbrake.io

As part of our current DNS outage https://twitter.com/airbrake/status/539542662110384130; We are providing these instructions to get access to airbrake.io UI.

Since api.airbrake.io is hosted on DNSimple; sending of errors will be stopped on some machines. We are still seeing a lot of traffic come in, but you can update your config to point to below IP too.

For insturcitons on how to update /etc/hosts with the below.

104.130.92.120 airbrake.io
104.130.92.120 [your-account-subdomain].airbrake.io
@jaimeiniesta
jaimeiniesta / rails_jobs.txt
Last active November 15, 2018 09:15
Resources to find a job as a Rails developer
The following is a list of places where you can find job offers as a Rails developer:
https://twitter.com/currofile
https://twitter.com/domestikaempleo #spain only
http://www.workingwithrails.com/
https://weworkremotely.com/jobs/search?term=rails
https://jobs.github.com/
http://trabajosrails.com/ # spain only
http://www.indeed.com/q-Ruby-On-Rails-Developer-jobs.html
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@zetter
zetter / default_whenever.rb
Last active December 19, 2015 02:49 — forked from evizitei/default_whenever.rb
Setup whenever on engineyard for all deployed applications that have the whenever gem bundled on the util instance called 'util'
#
# Cookbook Name:: whenever
# Recipe:: default
#
# for the until instance named 'util'
if node[:name] == 'util'
ey_cloud_report "whenever" do
message "Starting whenever recipe"
end
@jguitar
jguitar / git-sequences.md
Last active December 11, 2015 04:48
Git sequences

Git

Finding a delete file in history

Find the file_path exactly
git log --diff-filter=D --summary
@ninthspace
ninthspace / gist:4360267
Last active November 9, 2018 12:03
How I migrated from rbenv to chruby, and kept per-project gems nice and tidy.

Remove rbenv and any rubies, gems etc.:

$ rm -rf ~/.rbenv

Uninstall rbenv if installed via Homebrew

$ brew uninstall rbenv

Remove references to rbenv in ~/.bash_profile etc.