Can anybody tell me what's going on here? Everything I've read says to use "\N" for both STRINGs and non-STRINGs, but Hive is treating them differently. WTF?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function square(n) { | |
return n * n; | |
} | |
function double(n) { | |
return n * 2; | |
} | |
function compose() { | |
var originalRecur = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<input type="text" name="post[title]" value="Some Title" /> | |
<textarea name="post[body]">This is my post body</textarea> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key_signature": { | |
"name": "C major", | |
"sharps": [], | |
"flats": [], | |
}, | |
"time_signature": { | |
"upper": 4, | |
"lower": 4 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "sinatra" | |
require "octokit" | |
class CivicNeedsIssuesList < Sinatra::Base | |
get "/" do | |
out = "" | |
Octokit.list_issues("ryanbriones/civicneeds", {:labels => "need"}).each do |issue| | |
out << %Q{<a href="/needs/#{issue.number}">##{issue.number} #{issue.title} (#{issue.comments} comments)</a>} | |
end |
This is a step-by-step tutorial for getting started with R, a powerful programming language for data analysis and visualization. It is aimed at near complete beginners. You'll basically want to be comfortable with spreadsheets and with using your computer's command line.
I slapped this together quickly, so expect some weirdness. Feel free to email me with comments or questions at jpvelez | at | gmail.com
I learned the following stuff using the UCLA Statistic's Department great R tutorials, so check those out:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; a naive implementation of the R intro demo from Chicago Open Data Hack Night | |
;; using clojure and incanter | |
;; | |
;; Data and explanation here: http://gathers.us/events/open-gov-hack-night-organized-by-open-city-ebf93 | |
;; | |
;; * Download incanter-latest (1.2 right now) | |
;; * run `script/repl` | |
;; * copy in code | |
(use '(incanter core io stats charts)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MySinatraApplication < Sinatra::Base | |
get "/some-mockup-path" do | |
html :somemockup | |
end | |
helpers do | |
def html(template, options = {}, locals = {}) | |
render :html, template, options, locals | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "iTunes" | |
set the current EQ preset to EQ preset "Manual" | |
tell EQ preset "Manual" | |
set band 1 to -8 | |
set band 2 to -5 | |
set band 3 to -2 | |
set band 4 to -4 | |
set band 5 to -5 | |
set band 6 to -6 | |
set band 7 to -4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dumont:~ ryanbriones$ gem install morning-pages | |
Fetching: trollop-1.16.2.gem (100%) | |
Fetching: morning-pages-0.2.1.gem (100%) | |
Successfully installed trollop-1.16.2 | |
Successfully installed morning-pages-0.2.1 | |
2 gems installed | |
dumont:~ ryanbriones$ morning-pages help | |
sh: /Users/ryanbriones/words/2012-07-18: No such file or directory | |
/Users/ryanbriones/.rvm/gems/ruby-1.9.2-p180/gems/morning-pages-0.2.1/lib/morning-pages.rb:15:in `read': No such file or directory - /Users/ryanbriones/words/2012-07-18 (Errno::ENOENT) | |
from /Users/ryanbriones/.rvm/gems/ruby-1.9.2-p180/gems/morning-pages-0.2.1/lib/morning-pages.rb:15:in `stats_for_today' |
NewerOlder