Skip to content

Instantly share code, notes, and snippets.

@rdebeasi
rdebeasi / SassMeister-input.scss
Created February 10, 2014 15:56
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
%placeholder {
color: blue;
}
@mixin dostuff($color: red){
@rdebeasi
rdebeasi / autorun.bat
Created July 10, 2014 13:35
Batch file to set up OSX-style shortcuts to commonly used commands
@echo off
:: the "2>NUL" surpresses error messages. Web workbench executes autorun
:: but does not have access to sublime text or meld, so it throws errors.
2>NUL doskey subl="C:\Program Files\Sublime Text 3\sublime_text.exe" $*
2>NUL doskey opendiff="C:\Program Files (x86)\Meld\meld\meld.exe" $*
2>NUL doskey open="explorer" $*
2>NUL doskey ajaxmin="C:\Program Files (x86)\Microsoft\Microsoft Ajax Minifier\ajaxmin.exe" $*
@rdebeasi
rdebeasi / client-feedback.md
Created August 15, 2014 16:02
Responding to client feedback

Original question: But how do you make clients consider your advice? If they don't like what you have to say, that's fine. Do you ever have clients who think they are designers? (On Designer News)


At the beginning of a project, I try to get a sense of what the client wants: general goals, websites or apps they like, etc. Then when problems come up, I try to explain them in terms of the client's goals.

For example: "You mentioned that you want the focal point of the page to be the 'buy' button. The copy that you gave me is a little long and would push the buy button offscreen for most users. What do you think about shortening the copy so that it's easier to see the buy button?"

Or: "The navigation that you proposed totally makes sense in light of your product lineup, but I'm worried that it might be confusing to users who aren't already familiar with your products. That shopping site

@rdebeasi
rdebeasi / mvc-in-authors-own-words.md
Last active August 29, 2015 14:05
JavaScript MVC Frameworks in the authors' own words

#Ember "Ember.js, therefore, is a synthesis of the powerful tools of our native forebears with the lightweight sensibilities of the modern web." "...we're not willing to give you a little bit of rope if we think you'll just end up hanging yourself with it as your app grows. " - Tom Dale

#Backbone "Backbone.js is intended to be fairly agnostic about many common patterns in client-side code." "'Two way data-binding' is avoided. While it certainly makes for a nifty demo, and works for the most basic CRUD, it doesn't tend to be terribly useful in your real-world app." - Jeremy Ashkenas

#Angular "Other frameworks deal with HTML’s shortcomings by either abstracting away HTML, CSS, and/or JavaScript or by providing an imperative way for manipulating the DOM. Neither of these address the root problem that HTML was not designed for dynamic views." "Unlike other frameworks, there is no need to inherit from proprieta

@rdebeasi
rdebeasi / chromer-sparta.md
Last active August 29, 2015 14:14
In which @chromershow meets spartan

CHROMER: I cn no woerk. am goeing too baar

u caent stopme

druunk chromering is teh oonley chromering

am build all canaarie

am gonn paly darts wit fiarfox

@rdebeasi
rdebeasi / autorun.bat
Last active August 29, 2015 14:24
Like bash's .profile, but on Windows
@echo off
:: This file is like bash's .profile, but for the Windows command prompt.
:: To run this file when a command prompt starts, a registry entry at
:: "HKEY_CURRENT_USER\Software\Microsoft\Command Processor".
:: The name of the entry will be "AutoRun", and the value will be the path to this file.
:: http://darkforge.blogspot.co.uk/2010/08/permanent-windows-command-line-aliases.html
doskey subl="C:\Program Files\Sublime Text 3\sublime_text.exe" $*
doskey opendiff="C:\Program Files (x86)\Meld\meld\meld.exe" $*
@rdebeasi
rdebeasi / sshtail.sh
Last active October 1, 2015 21:47
Bash Script to feed a remote log via ssh to a local file.
#!/bin/bash
#
# Usage:
#
# server logfile/path output/path
# example sshtail.sh user@ssh.server /var/log/apache2/error.log ~/tmp/error.local.log
[ "$1" == "--help" ] && { printf "Usage: server logfile/path output/path\n"; exit; }
# Delete the file so we don't output anything until after we connect
@rdebeasi
rdebeasi / download-page.sh
Created October 16, 2015 21:11
Download web page, rewriting URLs to be sane and downloading assets
wget [url] -p -k -E --restrict-file-names=windows
@rdebeasi
rdebeasi / fastly-debug.sh
Created November 4, 2015 21:25
Use curl to debug fastly
curl -svo /dev/null -H "Fastly-Debug: true" http://www.statnews.com/feed/
@rdebeasi
rdebeasi / gsync.sh
Last active December 14, 2015 21:59
Simple git sync script - pull, accept default merge commit message, and then push.
#!/bin/sh
# For even easier syncing, put the file in ~/bin and alias this script to gs:
# alias gs='gsync.sh'
# If any step fails, abort the script.
set -e
echo "Pulling..."
git pull --no-edit
echo "Pushing..."