20 April 2014

The Ruby Reflector

Topic

Gist

  Source Favicon
By Satish Talim of RubyLearning Blog 4 months ago.
Email

Gist

Exercises

Who's It For?

The Git and GitHub course is a starting point for people new to Git and GitHub, to learn it as quickly and easily as possible.

Dates

The course starts on 25th Jan. 2014 and runs for a week.

The first nine batches were a run-away success. So hurry, registrations have started.

Is the course really free?

A lot of effort and time goes into building such a course and we would really love that you pay at least US$ 10 for the course. Since …

rubylearning.com Read
  Source Favicon
By Kunto Aji Kristianto of Railsmine 5 months ago.
Email

…confirm('Unsaved changes on the page. Are you sure?') ) )

$(document).ready(change) $(document).on('page:change', change)

# Javascript

# ... change = function() { $("form input, form textarea").change(function() { $('a').click(function() { confirm('Unsaved changes on the page. Are you sure?'); }); }); }; # ...

Gist: https://gist.github.com/kuntoaji/ce2adc5d1bbf82902c0d

railsmine.net Read
  Source Favicon
By Kunto Aji Kristianto of Railsmine 8 months ago.
Email

Simple progress bar script without Gem using Ruby and console.

Gist: https://gist.github.com/kuntoaji/6460383

#!/usr/bin/env ruby

progress = 'Progress [' 1000.times do |i|

# i is number from 0-999 j = i + 1

# add 1 percent every 10 times if j % 10 == 0 progress << "=" # move the cursor to the beginning of the line with \r print "\r" # puts add \n to the end of string, use print instead print progress + " #{j / 10} %"

railsmine.net Read
  Source Favicon
By Satish Talim of RubyLearning Blog 12 months ago.
Email

Gist

Exercises

Who's It For?

The Git and GitHub course is a starting point for people new to Git and GitHub, to learn it as quickly and easily as possible.

Dates

The course starts on 4th May 2013 and runs for a week.

The first seven batches were a run-away success. So hurry, registrations have started.

Is the course really free?

A lot of effort and time goes into building such a course and we would really love that you pay at least US$ 5 for the course. Since this …

rubylearning.com Read
  Source Favicon
By Luis Lavena of Engine Yard Developer Blog over 1 year ago.
Email

…for Windows

Ruby 2.0 is around the corner and so is 64bits binaries for Windows

Wanna try it out? I've put together a series of steps to get you testing Ruby 2.0 in the following Gist: https://gist.github.com/3251384

Looking for help? Join us at RubyInstaller Google group .

Thanks to those who were at the beginning, that gave suggestions along the way and that continuously help to improve it.

engineyard.com Read
  Source Favicon
On Ryan Daigle over 1 year ago.
Email

…programming languages including Markdown for text. For many techies, including myself, Gist is an indispensable tool for quickly sharing code and content with coworkers.

Gist has been around for several years now and, when compared with the pace of development on the main Github.com property, has been relatively neglected. Thankfully, Github recently updated Gist with a fresh new codebase and UI. As a heavy user of Gist I have some thoughts on this update, where it hits …

ryandaigle.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup over 1 year ago.
Email

After two days in the woods, the Internet seems exceptionally pointless.

Setting up a Tent server - Gist with commands from raw Ubuntu to running Tent.

Exception Notifier - Version 3.0 is out, with Campfire support and plenty of customizability.

Better Specs - Best practices using RSpec.

Nocs - Markdown editing on iOS with Dropbox integration.

Meet Chef (Part 1 of 2) - The latest from PeepCode.

Tent Basics - Some of what's in place and coming.

afreshcup.com Read
  Source Favicon
By Jordan Maguire of Transcending Frontiers almost 2 years ago.
Email

I love the RSpec let syntax. I especially love using let blocks to declare everything on the planet. However, I was noticing a lot of duplication in my code so I knocked up the below pattern to deal with the issue:

Can't see this Gist? View it on Github!

The pattern I'm referring to above is declaring and using the vehicle_attributes object to set attributes on an object. The benefits of this pattern is that I'm able to set specific attributes on an object on a per-context …

thefrontiergroup.com.au Read
  Source Favicon
By Mislav of Mislav's blog almost 2 years ago.
Email

…in your post rather than pulling it in via JavaScript from an external service like Gist.

Why would you need line numbers, anyway? They're only useful if you want to call attention to a particular line. You can do that with syntax highlighting, instead. With Jekyll and pygments, it's easy: { % highlight js hl_lines=4 % } ... { % endhighlight % }

Note: I had to "escape" Liquid tags above by padding them with spaces.

Result:

var target = { one : 'patridge' …

mislav.uniqpath.com Read
  Source Favicon
By Adron Hall of New Relic 2 years ago.
Email

* Github Gist showing how to run with Apache without mod_rewrite

Solutions:

* Provide a mapping via iptables. What are these things?

* Another idea is to run two IPs, port forwarding appropriately between servers.

* Nodejitsu's Node HTTP Proxy

But really, most of these solutions leave us right back where we are with the other frameworks. We have a server to maintain, infrastructure to deal with to manage the IPs, the routing, and other concerns. Overall, …

newrelic.com Read