Skip to content

Instantly share code, notes, and snippets.

View s2k's full-sized avatar
🤩

Stephan Kämper s2k

🤩
View GitHub Profile
@tundal45
tundal45 / unix_books.md
Created February 20, 2012 20:03
This is a list of UNIX books that one should have around to get better at UNIX. The initial list below is started with recommendations from [Avdi Grimm](twitter.com/avdi). The idea is to have more people recommend books that need to be added to the list.
@s2k
s2k / output_to_stdout
Created March 6, 2012 10:44
Watir and a defined constant CONFIG - a failing test case
Loaded suite C:/temp/test_watir_config_constant
Started
F
Finished in 1.156279 seconds.
1) Failure:
test_defined_global_constant_CONFIG_does_not_prevent_creating_a_browser_object(TestConfigConstant) [C:/temp/test_watir_config_constant.rb:9]:
Exception raised:
<#<NoMethodError: undefined method `split' for nil:NilClass>>.
@jwieringa
jwieringa / gist:3588181
Created September 1, 2012 21:37
Ripped from Specification by Example

Step 1

Identify what the business goal is for building software.

Business goal

Increase repeat sales to existing customers by 50% over the next 12 months

Step 2

From the business goal, derive the scope of the feature(s)

@elgalu
elgalu / write_expectation.rb
Last active May 9, 2019 08:39
An RSpec expectation to test text written to standard output and standard error
require 'rspec'
require 'stringio'
# Custom matcher to test text written to standard output and standard error
#
# @example
# expect { $stderr.puts "Some random error" }.to write(/Some.* error/).to(:stderr)
#
# @example
# expect { $stderr.puts "Some specific error" }.to write('Some specific error').to(:stderr)
diff --git a/babel.config.js b/babel.config.js
index b8b230b..f930f3e 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -30,7 +30,6 @@ module.exports = function(api) {
{
forceAllTransforms: true,
useBuiltIns: 'entry',
- corejs: 3,
modules: false,
class Wtf
def method_missing(name, *args)
:lol
end
def respond_to?(name)
:nope
end
def respond_to_missing?(name)

Talmudic Gems For Rails Developers

Sources, Citations, and Further Reading

@larrycai
larrycai / README.markdown
Last active September 16, 2022 03:59
check the plugin usage in jenkins
@fxn
fxn / problem-solving-games.md
Last active June 11, 2023 17:21
Problem-Solving Games
@ryansobol
ryansobol / gist:5252653
Last active November 22, 2023 11:53
15 Questions to Ask During a Ruby Interview

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.