Skip to content

Instantly share code, notes, and snippets.

require 'fastercsv'
require 'google-rest'
arr_of_arrs = FasterCSV.read("/Users/famulus/Desktop/gem_download_stats.csv") # in the interest of dirty hack I just made a CSV of the data.
google = GoogleSearch.new
puts "<table>"
arr_of_arrs.map do |row|
begin
result = google.search(:q => "#{row[0]} ruby gem")[0]
puts "<tr style=\"padding-top:8px\">
<td>#{row[0]}</td>
require 'fastercsv'
require 'google-rest'
arr_of_arrs = FasterCSV.read("/Users/famulus/Desktop/gem_download_stats.csv") # in the interest of dirty hack I just made a CSV of the data
google = GoogleSearch.new
arr_of_arrs.map do |row|
begin
result = google.search(:q => "#{row[0]} ruby gem")[0]
puts "<div style=\"margin-top:10px\">
#{row[0]}</div>
<div style=\"margin-top:5px\"><a href=\"#{result.url}\" >#{result.content}</a></div>"
# $Id$
#-----------------------------------------------------------------------
# ruby-daqmxbase: A SWIG interface for Ruby and the NI-DAQmx Base data
# acquisition library.
#
# Copyright (C) 2007 Ned Konz
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You may
# obtain a copy of the License at
@famulus
famulus / gist:1252253
Created September 29, 2011 23:42
Prometheus Fusion Perfection copper coil polywell inductance model
* Prometheus Fusion Perfection copper coil polywell inductance model
.model MySwitch SW(Ron=1m Roff=1Meg Vt=3 Vh=0)
* circuit

###Background

Producing mass-scale clean energy is a huge open problem.

Coal and oil deliver affordable energy at a global scale, but with pollution and expensive externalities. Nuclear fission can produce at scale, but with the side effect of nuclear waste and Fukushima disasters.

Unlike traditional nuclear fission, fusion cannot cause a nuclear disaster. The fuel is non radio-active. The bi-product is inert helium (if the reactor is using proton boron11 fuel). Mankind has yet to build a fusion reactor that produces more energy than it consumes. This threshold is called break-even. Although we achieved fusion in the 50s, we are a long way from making net energy. If we can reach break-even, nuclear fusion would provide inexpensive energy which is both clean and safe. Current approaches toward break-even fusion include the International Thermonuclear Experimental Reactor (ITER), which has cost $15B over 6 years, and t

{"links_active":false,"items":[{"in_progress":true,"head_to_head":false,"id":"GAM006101","phase":{"id":"GAM0061","name":"Final"},"results":[],"awards_medal":true,"completed":false,"status":"in_progress","discipline":{"id":"GA","name":"Gymnastics - artistic","slug":"gymnastics-artistic","url":null},"name":"Final","competitor_type":"participant","links_enabled":false,"start_date":"05 Aug 15:41","event":{"id":"GAM006","name":"Men's pommel horse","url":null},"medal":"gold"},{"in_progress":true,"head_to_head":true,"id":"TEM001101","phase":{"id":"TEM0011","name":"Finals"},"results":[],"awards_medal":true,"completed":false,"status":"in_progress","discipline":{"id":"TE","name":"Tennis","slug":"tennis","url":null},"name":"Gold medal match","competitor_type":"participant","links_enabled":false,"start_date":"05 Aug 14:00","event":{"id":"TEM001","name":"Men's singles","url":null},"medal":"gold"},{"in_progress":true,"head_to_head":true,"id":"TEW002102","phase":{"id":"TEW0021","name":"Finals"},"results":[],"awards_medal":
class ApplicationController < ActionController::Base
protect_from_forgery
end
class ApplicationController < ActionController::Base
protect_from_forgery
end
{
"font_size": 15.0,
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
<ul class ="refer">
<li>
<a href=""></a>
</li>
</ul>