The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
#!/bin/bash | |
# Fuubar format RSpec | |
# `fuubar` - runs all tests in spec/ | |
# `fuubar [path/from/spec]` - if the folder or file is found, runs tests in that folder/file | |
# also guesses where the file is located based on the partial file name | |
# examples: | |
# --- | |
# `fuubar user` - runs spec/models/user_spec.rb |
#!/bin/bash | |
if [ "$#" -eq "0" ] ; then | |
for file in *sublime-project | |
do | |
if [ -f $file ] ; then | |
# if no arguments, find if there is a project file in the current directory | |
filename="${file%.*}" | |
echo "Opening project: $filename" | |
/opt/sublime_text_2/sublime_text --class=sublime-text-2 -n $file & |
#!/usr/bin/env ruby | |
# Add ${execpi 3600 path/to/conky_pacman.rb} to the bottom of ~/.conkyrc | |
# TODO: use regex to match package ratings (linux*) | |
CONKY_WIDTH = 35 | |
MAX_PACKAGES = 8 | |
COLOR_INFO = '#FFFFFF' | |
COLOR_HIGH = '#FF0000' | |
COLOR_MED = '#FFFF00' |
# Sublime plugin | |
# Save file: Packages/CloseProjectAndExit/close_project_and_exit.py | |
# Copy to keymap: { "keys": ["ctrl+shift+`"], "command": "close_project_and_exit" } | |
import sublime | |
import sublime_plugin | |
class CloseProjectAndExitCommand(sublime_plugin.WindowCommand): | |
def run(self): |
// Foundation and Chosen CSS Merger | |
// ZURB Foundation v5 - Harvest Chosen v1.1 | |
// Add to the bottom of foundation_and_overrides.scss: `@import 'foundation-chosen';` | |
$chosen-form-spacing: $form-spacing / 4 + rem-calc(1) | |
$chosen-input-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)) | |
$chosen-input-height-multi: ($input-font-size + ($form-spacing * 1.5) - rem-calc(5)) | |
$chosen-border-radius: 0 | |
$chosen-highlighted: $primary-color |
# .rubocop.yml | |
# rubocop config files for Ruby 3.0 / Rails 6+ project | |
AllCops: | |
TargetRubyVersion: 3.0 | |
NewCops: enable | |
SuggestExtensions: false | |
Include: |
# Runs rake assets:clean | |
# Defaults to nil (no asset cleanup is performed) | |
# If you use Rails 4+ and you'd like to clean up old assets after each deploy, | |
# set this to the number of versions to keep | |
set :keep_assets, 2 | |
# Clear existing task so we can replace it rather than "add" to it. | |
Rake::Task["deploy:compile_assets"].clear | |
namespace :deploy do |
FROM staticfloat/centos-i386:centos6 | |
MAINTAINER Darrell Sandstrom | |
RUN yum update -y && yum clean all | |
RUN yum install -y wget && yum clean all | |
# Install dependencies | |
RUN yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git tar && yum clean all | |
# Install Erlang |
[ | |
{ | |
"position": { | |
"lat": 61.21759217, | |
"lng": -149.8935557 | |
}, | |
"name": "Starbucks - AK - Anchorage 00001", | |
"address": "601 West Street_601 West 5th Avenue_Anchorage, Alaska 99501", | |
"phone": "907-277-2477" | |
}, |