Where does this show???
A Pen by erika harvey on CodePen.
desc "Compile all the assets named in config.assets.precompile" | |
task :precompile do | |
# We need to do this dance because RAILS_GROUPS is used | |
# too early in the boot process and changing here is already too late. | |
if ENV["RAILS_GROUPS"].to_s.empty? || ENV["RAILS_ENV"].to_s.empty? | |
ENV["RAILS_GROUPS"] ||= "assets" | |
ENV["RAILS_ENV"] ||= "production" | |
Kernel.exec $0, *ARGV | |
else | |
Rake::Task["environment"].invoke |
select * from table t1 | |
where (select count(*) from table t2 | |
where t1.field = t2.field) > 1 | |
order by field |
// | |
// Variables | |
// -------------------------------------------------- | |
// Variables directly translating Bootstrap variables | |
// ------------------------- | |
$s2bs-border-radius-base: $border-radius !default; | |
$s2bs-border-radius-large: $border-radius-lg !default; | |
$s2bs-border-radius-small: $border-radius-sm !default; |
Where does this show???
A Pen by erika harvey on CodePen.
#!/bin/bash | |
## | |
## Simple logging mechanism for Bash | |
## | |
## Author: Michael Wayne Goodman <goodman.m.w@gmail.com> | |
## Thanks: Jul for the idea to add a datestring. See: | |
## http://www.goodmami.org/2011/07/simple-logging-in-bash-scripts/#comment-5854 | |
## Thanks: @gffhcks for noting that inf() and debug() should be swapped, | |
## and that critical() used $2 instead of $1 |
# vim:fileencoding=utf-8:ft=conf | |
# Font family. You can also specify different fonts for the | |
# bold/italic/bold-italic variants. By default they are derived automatically, | |
# by the OSes font system. Setting them manually is useful for font families | |
# that have many weight variants like Book, Medium, Thick, etc. For example: | |
# font_family Operator Mono Book | |
# bold_font Operator Mono Thick | |
# bold_italic_font Operator Mono Medium | |
font_family Hack |
function! yankring#reset() abort | |
let s:yankring = [] | |
for l:i in range(1, 9) | |
execute 'let l:contents = @' . l:i | |
call add(s:yankring, l:contents) | |
endfor | |
endfunction | |
call yankring#reset() | |
function! yankring#yank(contents) abort |
import logging | |
import threading | |
import os | |
import subprocess | |
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO) | |
class LogPipe(threading.Thread): |
package channel | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func ExampleUnbufferedSend() { | |
c1 := make(chan string) |
#!/usr/bin/sh | |
if [[ $# -eq 0 ]]; then | |
echo "Usage: $0 <backup_dir>" | |
exit | |
fi | |
destination=$1 | |
if ! type "pv" > /dev/null; then | |
echo 'pv' command not found on your system, install it to get a nice progress indicator... | |
else |