Skip to content

Instantly share code, notes, and snippets.

View wndxlori's full-sized avatar

Lori M Olson wndxlori

View GitHub Profile
@wndxlori
wndxlori / Vagrant up
Created April 16, 2013 23:31
Trying out Vagrant with VMWare provider, and I get this ssh oddness in Capistrano cropping up AFTER the machine provisions (supposedly) perfectly. When I run this with my vagrant machine created with VirtualBox provider, it runs fine. What gives? Where is that bogus '\\' coming from?
$ vagrant up --provider=vmware_fusion
Bringing machine 'default' up with 'vmware_fusion' provider...
[default] Cloning VMware VM: 'precise-ruby'. This can take some time...
[default] Verifying vmnet devices are healthy...
[default] Preparing network adapters...
[default] Starting the VMware VM...
[default] Waiting for the VM to finish booting...
[default] The machine is booted and ready!
[default] Forwarding ports...
@wndxlori
wndxlori / gist:6596954
Created September 17, 2013 16:39
Weird RSpec model failure during my Rails 4 upgrade. Ideas?
def process!
self.transaction do
foo
bar
baz
boom
end
end
@wndxlori
wndxlori / gist:6942045
Created October 11, 2013 21:07
Problems with Cocoapods install
lori@Saphira ~/Dropbox/Projects/rails4ios
$ gem list
*** LOCAL GEMS ***
bundler (1.3.5)
bundler-unload (1.0.1)
rake (10.1.0)
rubygems-bundler (1.2.2)
rvm (1.11.3.8)

Keybase proof

I hereby claim:

  • I am wndxlori on github.
  • I am wndxlori (https://keybase.io/wndxlori) on keybase.
  • I have a public key whose fingerprint is DB1C 4DD9 CA1A 0431 30F8 0B7F F2CC 5128 1A70 8FB4

To claim this, I am signing this object:

@wndxlori
wndxlori / btcdiversity-research.txt
Created September 21, 2015 03:54
BTC Panel links
Diversity Comparison
http://www.theverge.com/2015/8/20/9179853/tech-diversity-scorecard-apple-google-microsoft-facebook-intel-twitter-amazon
Most have 2 years of data now, but little qualitative analysis of year over year change. No follow throught on commitment
to goals for improvement.
Binary gender & ethnicity (no age). Basically the bare minimum as required by law.
http://www.google.com/diversity/
http://newsroom.fb.com/news/2015/06/driving-diversity-at-facebook/
@wndxlori
wndxlori / t_tweet_to_list
Created October 26, 2015 17:42
Tweet to list
t list members lethbridge-educators | while read handle ; do t update "@$handle Hoping you could help spread the word about girlslearningcodeday.com at your school? https://dl.dropboxusercontent.com/u/6823540/GLCDay.pdf" ; sleep 3 ; done
@wndxlori
wndxlori / about.html
Created January 10, 2017 23:53
Example of displaying a lot of formatted text, styled using https://github.com/colinta/teacup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>About</title>
<style>
p {color:#ff9400;}
h2 {color: #ffa428; text-align: center;}
</style>
</head>
@wndxlori
wndxlori / test.yaml
Last active February 28, 2018 17:44
[stable/kong] Enables non-ssl deploys #3861
proxy:
useTLS: false
servicePort: 8001
containerPort: 8001
admin:
useTLS: false
servicePort: 8000
containerPort: 8000
readinessProbe:
httpGet:
@wndxlori
wndxlori / README.md
Last active November 6, 2018 00:32
Testing navigation bar buttons in RubyMotion

This is in answer to a question than came up in a course I am teaching. There do not appear to be any good examples of testing navigation bar button items, so I ran up this quick example. Two things of note:

  1. You need to explicitly call your controller's "on_load" or similar method that actually adds the UI items, in your before block if you actually want to test those items. In the case of the default Red Potion app, we create the nav bar buttons in HomeScreen.on_load, so we need to call that method in the before block of our spec, to ensure the nav buttons are present.

  2. The navigation bar is accessed from your UIViewController as navigationItem, and it is a UINavigationItem. You should check out the docs for these classes.

https://developer.apple.com/documentation/uikit/uiviewcontroller?language=objc https://developer.apple.com/documentation/uikit/uinavigationitem?language=objc

@wndxlori
wndxlori / main.rb
Last active May 8, 2019 21:53
DragonRuby Game Toolkit Tutorial - Galaga clone...a new beginning
# the first 2 or 4 values of the primitive conventionally are x, y, (w, h, or x2, y2)
# the last 4 values conventionally are r, g, b, a (color)
# custom values for primitive are in the middle
# labels x, y, text, size, alignment, r, g, b, a
# sprites x, y, w, h, path, angle, alpha
# lines x, y, x1, y1, r, g, b, a
# solids x, y, w, h, r, g, b, a
# borders x, y, w, h, r, g, b, a
# sounds ".wav|.ogg"