Skip to content

Instantly share code, notes, and snippets.

View elliotec's full-sized avatar
😎

Mike Elliott elliotec

😎
View GitHub Profile
@elliotec
elliotec / schema
Last active January 4, 2016 07:59
not printing number
<p id="notice"><%= notice %></p>
<p>
<strong>Name:</strong>
<%= @list.name %>
</p>
<% @list.steps.each do |s| %>
<%= s.number %><br/>
<%= s.text %><br/>
-change system preferences to hearts desire
-map caps lock to ctrl
-dock to the left and hidden
-remove dashboard from spaces
-download chrome
-install
-sign in
-make yourself own home dir
-$ sudo chown -R <your_username> ~
-map shift + space to underscore
@elliotec
elliotec / gist:56a9b1fe8e1991b40140
Last active August 29, 2015 14:06
Vim tutor lesson summaries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lesson 1 SUMMARY
1. The cursor is moved using either the arrow keys or the hjkl keys.
h (left) j (down) k (up) l (right)
2. To start Vim from the shell prompt type: vim FILENAME <ENTER>
3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes.
Begin.
" This file should be at ~/.config/nvim/init.vim
call plug#begin('~/.nvim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins'}
Plug 'carlitux/deoplete-ternjs'
Plug 'gioele/vim-autoswap'
Plug 'vim-scripts/YankRing.vim'
Plug 'ervandew/supertab'
Plug 'neomake/neomake'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive'
" This file should be at ~/.config/nvim/init.vim
call plug#begin('~/.nvim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins'}
Plug 'carlitux/deoplete-ternjs'
Plug 'gioele/vim-autoswap'
Plug 'vim-scripts/YankRing.vim'
Plug 'ervandew/supertab'
Plug 'neomake/neomake'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive'
" This file should be at ~/.config/nvim/init.vim
call plug#begin('~/.nvim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins'}
Plug 'Shougo/neosnippet.vim'
Plug 'Shougo/neosnippet-snippets'
Plug 'carlitux/deoplete-ternjs'
Plug 'gioele/vim-autoswap'
Plug 'vim-scripts/YankRing.vim'
Plug 'ervandew/supertab'
Plug 'neomake/neomake'
2017-05-14 06:45:08,109:DEBUG:certbot.main:Root logging level set at 20
2017-05-14 06:45:08,110:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-05-14 06:45:08,111:DEBUG:certbot.main:certbot version: 0.12.0
2017-05-14 06:45:08,111:DEBUG:certbot.main:Arguments: ['--webroot', '--webroot-path=/srv/www/elliotec.com/', '-d', 'elliotec.com', '-d', 'www.elliotec.com', '--staging']
2017-05-14 06:45:08,111:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2017-05-14 06:45:08,112:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2017-05-14 06:45:08,112:DEBUG:certbot.plugins.selection:Single candidate plugin: * webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
import React, { PropTypes } from 'react';
import FeatureFlag from 'App/FeatureFlag/FeatureFlag';
import FeatureVariant from 'App/FeatureFlag/FeatureVariant';
const GoogleAdSense = ({
subcategoryName
}) => {
// On the off-chance CLIENT_ID changes, better to have here than in a config
const CLIENT_ID = 'partner-overstock-pdp';
// Width of ads will be the window width minus it's padding, or fallback to 300
static handleShowGoogleAdsense() {
if (__CLIENT__ && (document.getElementById('adsTrigger').getBoundingClientRect().top) <= (window.innerHeight + 100)) {
console.log(this);
this.props.onShowGoogleAdSense();
}
}
componentDidMount() {
window.addEventListener('scroll', Product.handleShowGoogleAdsense);
}