Skip to content

Instantly share code, notes, and snippets.

View meaganewaller's full-sized avatar

Meagan Waller meaganewaller

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meaganewaller
meaganewaller / cloudSettings
Last active May 11, 2021 19:32
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-05-11T19:22:44.497Z","extensionVersion":"v3.4.3"}

Keybase proof

I hereby claim:

  • I am meaganewaller on github.
  • I am meaganwaller (https://keybase.io/meaganwaller) on keybase.
  • I have a public key ASCez8mp9friD11UGg3C9YV-xMJYjQslump7SAVHh5xUBwo

To claim this, I am signing this object:

@meaganewaller
meaganewaller / file_connection.R
Last active August 29, 2015 14:19
Reading Data in R
myConnection <- file("foo.txt", "r")
data <- read.csv(myConnection)
close(myConnection)
# the same thing as
data <- read.csv("foo.txt")
@meaganewaller
meaganewaller / data_frames.R
Last active August 29, 2015 14:18
R Programming
x <- data.frame(x = 1:3, y = c(F, T, T))
#=> x y
# 1 1 FALSE
# 2 2 TRUE
# 3 3 TRUE
nrow(x)
#=> [1] 3
ncol(x)
#=> [1] 2
@meaganewaller
meaganewaller / example.rb
Last active August 29, 2015 14:16
Hash Challenge
hash = {
a: 1,
b: 2,
c: {
d: 3,
e: {
f: 4
},
g: 5
}
@meaganewaller
meaganewaller / creating_arrays.rb
Last active August 29, 2015 14:16
Ruby Basics: Arrays
array = []
#=> []
array = Array.new
#=> []
@meaganewaller
meaganewaller / _modal_action.html.erb
Created January 7, 2015 18:19
bootstrap modal not working :(
<div class="modal-header">
<!-- modal body & stuff goes here -->
</div>
@meaganewaller
meaganewaller / 1.rb
Created January 1, 2015 02:12
Launching a JRuby Application with Heroku
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.6'
@meaganewaller
meaganewaller / Gemfile.rb
Created January 1, 2015 02:10
sinatra and datamapper
# Gemfile
source "https://rubygems.org"
gem "sinatra"
gem "data_mapper"
gem "dm-postgres-adapter"
gem "pg"
group :test do