List of small, focused browserify / component bundles.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
/* | |
Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com> | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in the |
# build output dirs | |
BUILD_DIR = build | |
JS_BUILD_DIR = $(BUILD_DIR)/js | |
CSS_BUILD_DIR = $(BUILD_DIR)/css | |
IMG_BUILD_DIR = $(BUILD_DIR)/img | |
VENDOR_BUILD_DIR = $(BUILD_DIR)/vendor | |
TESTS_BUILD_DIR = test/build | |
# sources | |
TEMPLATES = $(shell find app -name '*.hbs') |
source "https://rubygems.org" | |
gem 'sprockets' | |
gem 'sprockets-sass' | |
gem 'sass' | |
gem 'compass' | |
gem 'bootstrap-sass' | |
gem 'handlebars_assets' | |
gem 'coffee-script' |
// | |
// Usage: require('./pid')("myapp"); | |
// | |
var fs = require('fs'); | |
module.exports = function(appname){ | |
process.title = appname; | |
var PID_FILE = "/usr/local/var/run/"+process.title+".pid"; |
#!/usr/bin/env ruby | |
if ARGV[0] and ARGV[1] | |
slug = ARGV[0] + "/" + ARGV[1] | |
else | |
url = `git config --get remote.origin.url` | |
return $?.exitstatus if $?.exitstatus != 0 | |
m = /git@github\.com:([a-zA-Z0-9_-]+)\/([a-zA-Z0-9._-]+)\.git/.match(url) | |
slug = m[1] + "/" + m[2] | |
end | |
$stdout.write "[![Build Status](https://secure.travis-ci.org/#{slug}.png)](http://travis-ci.org/#{slug})" |