Skip to content

Instantly share code, notes, and snippets.

Relaxing

Stuart Olivera sman591

Relaxing
Block or report user

Report or block sman591

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sman591
sman591 / Selectize.jsx
Last active Aug 22, 2017 — forked from heyimalex/Selectize.jsx
React wrapper around Selectize.js using ES6 and JSX
View Selectize.jsx
import React, { Component } from 'react';
// Wrapper around the selectize jQuery plugin.
export default class Selectize extends Component {
shouldComponentUpdate(nextProps) {
const self = this;
const shouldUpdate = Object.keys(nextProps).some(function(propName) {
// If it's handled, we'll deal with it on our own.
if (propName in handledProps) return false;
@sman591
sman591 / index.jsx
Last active Mar 7, 2017
PNotify with Webpack
View index.jsx
// React components
import React from 'react';
import ReactDOM from 'react-dom';
// Third party resources
import $ from 'jquery';
import PNotify from 'pnotify';
// Ensure required globals are available
window.$ = $;
@sman591
sman591 / Gemfile
Last active Jan 26, 2017
Guard error
View Gemfile
source 'https://rubygems.org'
ruby IO.read(File.expand_path("../.ruby-version", __FILE__)).chomp
gem 'rails', '~> 5.0.0'
gem 'mysql2'
gem 'puma'
gem 'rails_12factor', group: :production
@sman591
sman591 / log.txt
Created Sep 24, 2015
cyrusstoller/RevTilt #49
View log.txt
INFO [4ca87eb3] Running /usr/bin/env mv /var/www/app/releases/current /var/www/app as deployer@{FQDN}
DEBUG [4ca87eb3] Command: ( RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 /usr/bin/env mv /var/www/app/releases/current /var/www/app )
INFO [4ca87eb3] Finished in 0.004 seconds with exit status 0 (successful).
INFO [763ac268] Running /usr/bin/env sudo /etc/init.d/unicorn_app.sh restart as deployer@{FQDN}
DEBUG [763ac268] Command: ( RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 /usr/bin/env sudo /etc/init.d/unicorn_app.sh restart )
DEBUG [763ac268] Couldn't restart, starting 'RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 BUNDLE_GEMFILE=/var/www/app/current/Gemfile ~/.rbenv/bin/rbenv exec bundle exec /var/www/app/current/bin/unicorn -D
-c /var/www/app/current/config/unicorn.rb -E production' instead
DEBUG [763ac268]
DEBUG [763ac268] bundler: command not found: /var/www/app/current/bin/unicorn
DEBUG [763ac268]
View Contract Killer 3.md

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@sman591
sman591 / Contract Killer 3.md
Last active Dec 25, 2015 — forked from malarkey/Contract Killer 3.md
Modified version of Contract Killer 3 for my own use
View Contract Killer 3.md

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

You can’t perform that action at this time.