Skip to content

Instantly share code, notes, and snippets.

View rushlinneu's full-sized avatar

Shaun rushlinneu

View GitHub Profile

Comparison of ASP.NET and Node.js for Backend Programming

We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.

Updates

This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):

  1. Koa.js no longer uses co-routines, it has switched to Babel's async/await. yield and await are used almost in the same way, so I see no point to rewrite the examples.
@rushlinneu
rushlinneu / caesar.rb
Created September 20, 2016 01:35 — forked from matugm/caesar.rb
Caesar cipher using Ruby
ALPHABET_SIZE = 26
def caesar_cipher(string)
shiftyArray = []
charLine = string.chars.map(&:ord)
shift = 1
ALPHABET_SIZE.times do |shift|
shiftyArray << charLine.map do |c|
((c + shift) < 123 ? (c + shift) : (c + shift) - 26).chr
@rushlinneu
rushlinneu / introrx.md
Created August 30, 2016 23:10 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@rushlinneu
rushlinneu / capybara cheat sheet
Created July 7, 2016 21:41 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
"""Copyleft 2010 Forrest Sheng Bao http://fsbao.net
PyEEG, a Python module to extract EEG features, v 0.02_r2
Project homepage: http://pyeeg.org
**Data structure**
PyEEG only uses standard Python and numpy data structures,
so you need to import numpy before using it.
@rushlinneu
rushlinneu / Issue.md
Created June 20, 2016 21:44 — forked from orta/Issue.md
Disclosable Sections in a GH issue
Summary text. Hello World, how is it going?
brycesenz commented on Jul 18, 2013
In my Rails app, I use the force_ssl configuration in my environment files, and force_ssl in most of my controllers (in my test environment as well). Getting this to work with Capybara has been a pain - the server would just time out.
I finally got things working, but it required two things: (1) configuring the Capybara server to use a local SSL certificate that I'd made, and (2) overriding the responsive? method for the server to send HTTPS requests.
Here's the code I ended up using. I put all of it into my spec_helper.rb file just for simplicity.
module Capybara
class Server
def responsive?
@rushlinneu
rushlinneu / gist:453c35f4e529bd3be84c
Created February 2, 2016 00:19 — forked from ryansobol/gist:5252653
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.

@rushlinneu
rushlinneu / index.html
Created November 22, 2015 22:59
html: starting
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>