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.
#!/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 |
#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 |
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' |
" 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 |
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") |
js = $(shell echo $(elm) | tr A-Z a-z) | |
elm = Main | |
# Example: make elm=Main js=main watch | |
watch: | |
echo "watching *.elm files, outputing $(js).js" && fswatch -0 *.elm | xargs -0 -n 1 -I \{\} elm-make $(elm).elm --output $(js).js | |
# Example: make elm=Main js=main build | |
build: | |
elm-make $(elm).elm --output $(js).js |
import Html exposing (..) | |
import Html.App exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import Html.Attributes exposing (..) | |
import Http | |
import Task exposing (Task) | |
import Json.Decode as Json exposing ((:=)) | |
type Msg |
# jEdit :folding=explicit:collapseFolds=1:indentSize=2:tabSize=2: | |
# add requires here #{{{ | |
#}}} | |
# handle command line #{{{ | |
def usage #{{{ | |
puts <<-USAGE |