Example of responsive image thumbnail grid. Each image give id to populate the Bootstrap Modal with filtered images for the hidden images repository. Navigate gallery images inside modal using the Carousel.
A Pen by Josh Teneycke on CodePen.
#!/usr/bin/env ruby | |
require "pry" | |
def command?(name) | |
`which #{name}` | |
$?.success? | |
end | |
htmls = `find . -type f -name \*.html`.split("\n") |
Example of responsive image thumbnail grid. Each image give id to populate the Bootstrap Modal with filtered images for the hidden images repository. Navigate gallery images inside modal using the Carousel.
A Pen by Josh Teneycke on CodePen.
" Window split settings | |
highlight TermCursor ctermfg=red guifg=red | |
set splitbelow | |
set splitright | |
" Terminal settings | |
tnoremap <Leader><ESC> <C-\><C-n> | |
" Window navigation function | |
" Make ctrl-h/j/k/l move between windows and auto-insert in terminals |
source :rubygems | |
gem 'sinatra', '~> 1.3.3' | |
gem 'json', '~> 1.7.5' | |
gem 'restforce', '~> 1.0.5' | |
gem 'thin', '~> 1.5.0' | |
group :development do | |
gem 'shotgun', '~> 0.9' | |
gem 'tunnels', '~> 1.2.2' |
#gem install 'google-api-client' | |
require 'google/api_client' | |
#Setup auth client | |
client_secrets = Google::APIClient::ClientSecrets.load #client_secrets.json must be present in current directory! | |
auth_client = client_secrets.to_authorization | |
auth_client.update!( | |
:scope => 'https://www.googleapis.com/auth/calendar', | |
:access_type => "offline", #will make refresh_token available |
#!/bin/bash | |
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
# This script starts emacs daemon if it is not running, opens whatever file | |
# you pass in and changes the focus to emacs. Without any arguments, it just | |
# opens the current buffer or *scratch* if nothing else is open. The following | |
# example will open ~/.bashrc | |
# ec ~/.bashrc |
#!/bin/bash | |
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
# This script starts emacs daemon if it is not running, opens whatever file | |
# you pass in and changes the focus to emacs. Without any arguments, it just | |
# opens the current buffer or *scratch* if nothing else is open. The following | |
# example will open ~/.bashrc | |
# ec ~/.bashrc |
" Share clipboards between vim and tmux without xsel or xclip (which require X and | |
" X forwarding with SSH) and without changing tmux shortcuts. Requires only tail. | |
" | |
" Great for an ssh session to you linode or droplet. | |
" | |
" Uses z buffer in vim and writes output to ~/.clipboard and then to tmux's paste | |
" buffer, and reads it back in cleanly for putting (puddin'). | |
" Example vimrc mappings | |
" Visual mode yank selected area to tmux paste buffer (clipboard) |
#!/bin/bash | |
# Runs the specified command (provided by the first argument) in all tmux panes | |
# in every window. If an application is currently running in a given pane | |
# (e.g., vim), it is suspended and then resumed so the command can be run. | |
all-panes() | |
{ | |
all-panes-bg_ "$1" & | |
} |
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |