Skip to content

Instantly share code, notes, and snippets.

View shawnacscott's full-sized avatar

Shawna C. Scott shawnacscott

  • California
  • 08:48 (UTC -07:00)
View GitHub Profile
@shawnacscott
shawnacscott / pr-comment-emojis.md
Created January 29, 2019 16:51 — forked from raorao/pr-comment-emojis.md
PR Comment Emojis

Any top-level comment on pull request ought be tagged with one of four emojis:

  • for a non-blocking comment that asks for clarification. The pull request author must answer the question before the pull request is merged, but does not have to wait for the comment author to re-review before merging.

  • 🎨 for a non-blocking comment that proposes a refactor or cleanup. The pull request author does not have to address the comment for the pull request to merge.

  • ⚠️ for a blocking comment that must be addressed before the pull request can merge. The comment's author should leave a Request Changes review, and is responsible for re-reviewing once the pull request author has addressed the issue.

  • 😻 for a comment that compliments the author for their work.

@shawnacscott
shawnacscott / main.rs
Created February 21, 2016 03:20
Guessing Game - Recompiler mag Rust workshop example
extern crate rand;
use rand::Rng;
use std::cmp::Ordering;
use std::io;
fn main() {
let secret_number = rand::thread_rng().gen_range(1, 101);
println!("Guess the number!");
@shawnacscott
shawnacscott / SMBDIS.ASM
Last active August 29, 2015 14:23 — forked from 1wErt3r/SMBDIS.ASM
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no

Sprockets::FileNotFound in Calagator/site#index

Showing /Users/shawnacscott/.gem/ruby/2.1.5/gems/calagator-0.0.1.pre1/app/views/layouts/calagator/application.html.erb where line #16 raised:

couldn't find file 'leaflet.awesome-markers'
  (in /Users/shawnacscott/.gem/ruby/2.1.5/gems/calagator-0.0.1.pre1/app/assets/stylesheets/calagator.scss:7)
@shawnacscott
shawnacscott / output.txt
Created March 18, 2015 04:06
RSpec nil behavior
Failures:
1) test should equal false
Failure/Error: expect(nil).to be false
expected false
got nil
2) test should be false
Failure/Error: expect(nil).to be_false
@shawnacscott
shawnacscott / Gemfile
Last active August 29, 2015 14:15
All production gems
source 'https://rubygems.org'
# The following line instructs RVM on which version of ruby to use
#ruby=2.1.3
# bootstrap-sass related gems
gem 'bootstrap-sass', '~> 3.3.3'
gem 'sprockets'
gem 'sass-rails', '~> 5.0.0'
gem 'autoprefixer-rails', '>= 5.0'
@shawnacscott
shawnacscott / index.html
Created February 4, 2015 01:40
bootstrap-sass dropdown example
<!DOCTYPE html>
<html lang='en'>
<head>
# link to stylesheet
</head>
<body>
<header class='navbar navbar-default navbar-static-top' role='navigation'>
<div class='row'>
@level1 = [
['#', '#', '#', '#', '#', '#', '#', '#'],
['#', ' ', ' ', ' ', ' ', ' ', ' ', '#'],
['#', '.', ' ', ' ', ' ', 'o', '@', '#'],
['#', ' ', ' ', ' ', ' ', ' ', ' ', '#'],
['#', '#', '#', '#', '#', '#', '#', '#']
]
def input_allowed?(input)
allowed = %w{w a s d q}
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)