Skip to content
View before_restart
# config/deploy/shelly/before_restart
set -e
# link nested directory public/system to persistent disk/system
mkdir -p disk/public/images
ln -s ../disk/public/images public/images
View gist:9229975
➜ ~ heroku help | grep account
account # manage heroku account options
members # manage membership in organization accounts
orgs # manage organization accounts
➜ ~ heroku account
! `account` is not a heroku command.
! See `heroku help` for a list of available commands.
➜ ~ heroku help account
! account is not a heroku command. See `heroku help`.
➜ ~
View Gemfile
source "https://rubygems.org"
gem 'faraday'
gem 'faraday_middleware'
gem 'active_support'
View application.css.scss
@import "bootstrap/reset";
@import "bootstrap/variables";
// overwrite variables here
@import "bootstrap/mixins";
@import "bootstrap/scaffolding";
View semaphore_t.hpp
#ifndef __semaphore_t_h__
#define __semaphore_t_h__
#ifdef __APPLE__
#include <mach/mach_init.h>
#include <mach/task.h>
#include <mach/semaphore.h>
class semaph_t
View config_initializers_sass.rb
Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
load_paths << "#{Rails.root}/app/assets/stylesheets"
load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
load_paths << "#{Gem.loaded_specs['html5-boilerplate'].full_gem_path}/stylesheets"
load_paths << "#{Gem.loaded_specs['fancy-buttons'].full_gem_path}/lib/stylesheets"
end
View gist:996971
photos.each do |photo|
photo.position = params[:photo].index(photo.id.to_s)
end
View github_projects.rb
require 'octokit'
module Jekyll
class ProjectsIndex < Page
def initialize(site, base, projects_dir)
@site = site
@base = base
@dir = projects_dir
@name = 'index.html'
View fine_linked_list.hpp
#ifndef __fine_linked_list_hpp__
#define __fine_linked_list_hpp__
#include "linked_list.hpp"
using namespace std;
template <typename T>
class fine_linked_list : public linked_list<T>
{
View fine_linked_list.hpp
#ifndef __fine_linked_list_hpp__
#define __fine_linked_list_hpp__
#include "linked_list.hpp"
using namespace std;
template <typename T>
class fine_linked_list : public linked_list<T>
{
Something went wrong with that request. Please try again.