Skip to content

Instantly share code, notes, and snippets.

$ ./waf build
Waf: Entering directory `/Users/clean/Documents/aubio/build'
[ 49/215] cshlib: build/src/cvec.c.1.o build/src/fmat.c.1.o build/src/fvec.c.1.o build/src/io/audio_unit.c.1.o build/src/io/sink.c.1.o build/src/io/sink_apple_audio.c.1.o build/src/io/sink_sndfile.c.1.o build/src/io/sink_wavwrite.c.1.o build/src/io/source.c.1.o build/src/io/source_apple_audio.c.1.o build/src/io/source_avcodec.c.1.o build/src/io/source_sndfile.c.1.o build/src/io/source_wavread.c.1.o build/src/io/utils_apple_audio.c.1.o build/src/lvec.c.1.o build/src/mathutils.c.1.o build/src/onset/onset.c.1.o build/src/onset/peakpicker.c.1.o build/src/pitch/pitch.c.1.o build/src/pitch/pitchfcomb.c.1.o build/src/pitch/pitchmcomb.c.1.o build/src/pitch/pitchschmitt.c.1.o build/src/pitch/pitchspecacf.c.1.o build/src/pitch/pitchyin.c.1.o build/src/pitch/pitchyinfft.c.1.o build/src/spectral/fft.c.1.o build/src/spectral/filterbank.c.1.o build/src/spectral/filterbank_mel.c.1.o build/src/spectral/mfcc.c.1.o build/src/spectral/ooura_fft8g.c.1.o b
list{
.asset.asset_size_small {
width: 80px;
}
.asset.asset_size_medium {
width: 80px;
}
.asset.asset_size_large {
width: 300px;
}
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