Skip to content

Instantly share code, notes, and snippets.

View mejarc's full-sized avatar

M. Archer mejarc

  • Oakland, CA, USA
View GitHub Profile
@mejarc
mejarc / .eslintrc
Created June 15, 2015 02:53
ESLint config
{
"env": {
"node": true,
"jquery": true,
"browser": true
},
"ecmaFeatures": {},
"globals": {},
"plugins": [
"eslint-plugin-smells"
@mejarc
mejarc / .jshintrc
Last active January 27, 2016 21:55
template-jshintrc
// based on jQuery Core & Elijah Manor (http://www.elijahmanor.com/control-the-complexity-of-your-javascript-functions-with-jshint/)
{
"globals": {
"console": false,
"jQuery": false,
"_": false
},
"maxparams": 5,
"maxdepth": 5,
"maxstatements": 25,
@mejarc
mejarc / README-template.md
Created January 25, 2015 23:11
README template

name of app

Developed by [Melanie Archer](link to repo).

Description of app...

Installation

clone, download, serve

# foo_test.rb
class Meme
def i_can_has_cheezburger?
"OHAI!"
end
def will_it_blend?
"YES!"
end
@mejarc
mejarc / 0_reuse_code.js
Created January 12, 2014 16:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mejarc
mejarc / 0.2.1-boggle_class_from_methods.rb
Last active December 31, 2015 16:09 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(grid)
@grid = grid
end
def create_word(*coords)
coords.map { |coord| @grid[coord.first][coord.last] }.join("")
end
def get_row(row)
@mejarc
mejarc / best-practices.md
Last active December 28, 2015 11:19
A list of best practices/style guides, and tools to enforce them
@mejarc
mejarc / .bash_profile
Created June 3, 2013 18:14
Reduce the tedium of commonly typed commands with a bunch of shortcuts
alias ls='ls -al -G'
alias crm='open -a "Google Chrome" --args --proxy-pac-url=http://[workplace proxy address].pac'
alias bcc='bower cache-clean'
alias mx='cd /Library/WebServer/Documents/mds; ls -al'
alias ix='cd /Library/WebServer/Documents/iids; ls -al'
alias g='grunt'
alias rl='source ~/.bash_profile'
@mejarc
mejarc / my-fantasy-bootstrap.less
Last active December 15, 2015 14:09
Recreating Bootstrap styles for my own CSS selectors.
// Core variables and mixins.
// Unless otherwise noted, all @imports are from standard Bootstrap.
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
@import "mixins.less"; // Note: this is where Bootstrap establishes those '.span[...]' styles
@import "/css/less/lesshat/lesshat.less"; // Create your own Frankengrid by importing mixins from totally different libraries!
// CSS Reset
@import "reset.less";
-- Make sure a presentation is opened in Keynote. If not, notify the user and stop.
tell application "Keynote"
if (front slideshow exists) = false then
display alert "Unable to proceed." message "Please open a presentation in Keynote."
return
end if
set extractBody to button returned of (display alert "Would you like to extract slide content too?" buttons {"Yes", "No"}) = "Yes"
-- Target the front presentation.