Skip to content

Instantly share code, notes, and snippets.

View qrush's full-sized avatar
🕸️
Making internets

Nick Quaranto qrush

🕸️
Making internets
View GitHub Profile
@qrush
qrush / tender.css
Created November 20, 2014 03:18
Old help.rubygems.org styles
#superheader {
background: #191919;
color: #fff;
border-bottom: 1px solid #f00;
}
#superheader a {
color: #AAA;
}
@qrush
qrush / _.markdown
Last active August 29, 2015 14:10
help.rubygems.org intro

Any ideas on how to make this introduction text on help.rubygems.org friendlier? It just feels really grating from the start. Go away, don't submit tickets here. Please fork and edit as you see fit!

@qrush
qrush / gist:7144a9301f7bc4122a7c
Created November 21, 2014 03:28
AWS Lambda Python Output
Logs
----
START RequestId: a0537bcb-712d-11e4-8c97-af075a3c0929
2014-11-21T03:22:30.438Z a0537bcb-712d-11e4-8c97-af075a3c0929 stdout:
Goodbye, World!
END RequestId: a0537bcb-712d-11e4-8c97-af075a3c0929
REPORT RequestId: a0537bcb-712d-11e4-8c97-af075a3c0929 Duration: 718.65 ms Billed Duration: 800 ms Memory Size: 128 MB Max Memory Used: 14 MB
Message
class NotificationsController < ApplicationController
def create
if subject = params["subject"]
if subject =~ /succeed/
message = ":+1:"
else
message = ":-1:"
end
message << " #{subject}"
[master][~/Dev/skyway] git push origin master; git push aqueous master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 321 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To git@github.com:qrush/skyway.git
3a78671..d402f03 master -> master
Counting objects: 3, done.
Delta compression using up to 4 threads.
% curl -s https://static.rust-lang.org/rustup.sh | sudo sh
rustup: CFG_CURL := /usr/bin/curl (curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5)
rustup: CFG_TAR := /usr/bin/tar (bsdtar 2.8.3 - libarchive 2.8.3)
rustup: CFG_FILE := /usr/bin/file
rustup: CFG_SHA256SUM :=
rustup: CFG_SHASUM := /usr/bin/shasum (5.84)
rustup:
rustup: processing sh args
rustup:
rustup: CFG_PREFIX :=
irb(main):003:0> a = [['a', 1], ['b', 2], ['c', 3]]
=> [["a", 1], ["b", 2], ["c", 3]]
irb(main):004:0> a.flatten
=> ["a", 1, "b", 2, "c", 3]
irb(main):005:0> b = {}
=> {}
irb(main):006:0> a.each{|p| b[p[0]] = p[1] }
=> [["a", 1], ["b", 2], ["c", 3]]
irb(main):007:0> b
=> {"a"=>1, "b"=>2, "c"=>3}
@qrush
qrush / gist:41ce74e34f0f3ca3576b
Created March 24, 2015 15:37
npm install bower
% npm install bower
npm http GET https://registry.npmjs.org/bower
npm http 200 https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower/-/bower-1.3.12.tgz
npm http 200 https://registry.npmjs.org/bower/-/bower-1.3.12.tgz
npm http GET https://registry.npmjs.org/bower-endpoint-parser
npm http GET https://registry.npmjs.org/bower-config
npm http GET https://registry.npmjs.org/bower-json
npm http GET https://registry.npmjs.org/bower-logger
npm http GET https://registry.npmjs.org/cardinal/0.4.0
@qrush
qrush / security.md
Last active August 29, 2015 14:24
Package manager service surveys. Additions/corrections welcome.
private struct BoxInstance
{
public Vector3 position;
public Vector3 dimensions;
public Vector3 rotation;
public Vector4 color;
public bool inUse;
//*****************************************************************