This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#image: atlassian/default-image:2 | |
image: python:3.7.3 | |
pipelines: | |
tags: | |
'v*': # the tag is "vSomthing" like "v-0.4.2" | |
- step: | |
name: Build docker image and push to AWS ECR | |
services: | |
- docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application.css pulls in three additional stylesheets that contains the bulk of | |
the bootstrap customization (in this load order): | |
customized/overrides.css.less | |
- @import "twitter/bootstrap/variables"; | |
- @import "twitter/bootstrap/mixins"; | |
- perform class overrides on things like nav-tabs and the like | |
customized/components.css.less | |
- used to provide stylistic effects that are mostly typographic | |
customized/layout.css.less | |
- used to provide layout effects that are mostly positional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" .vimrc.after | |
" Turn off that damn-fool blinking... | |
set guicursor+=a:blinkon0 | |
" Hide macvim toolbar | |
if has("gui_running") | |
set guioptions=egmrt | |
endif | |
" colorscheme | |
colorscheme peachpuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For the purpose of this query, assume that there is an ActiveRecord model with an attribute (db column) with the name 'obscure_field'. | |
In the AR class is the following validation call: | |
validates_presence_of :obscure_field, :message => 'is necessary' | |
However, in the view, this field is labeled as "Meaningful Field": | |
(formtastic syntax) | |
<%= f.input :obscure_field, :label => 'Report type', :required => true %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* base64.js - Base64 encoding and decoding functions | |
* | |
* See: http://developer.mozilla.org/en/docs/DOM:window.btoa | |
* http://developer.mozilla.org/en/docs/DOM:window.atob | |
* | |
* Copyright (c) 2007, David Lindquist <[email protected]> | |
* Released under the MIT license | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--ignore-case | |
--color | |
--group | |
--type-set=markdown:ext:markdown,md,mdown | |
--ignore-dir=vendor | |
--ignore-dir=log | |
--ignore-dir=tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# walk down a file until you get to the data section, then suck it in | |
# (presumes data section is preceded by a row of separator-dashes. :) | |
while(<>) { | |
chomp; | |
until (/-------------------- ------------------/) { ; } # do nothing until we get these | |
while(<>) { | |
chomp; | |
($object_id, $description) = ($1, $2) if m/(\d+)\s+(\w+)/; | |
print "$object_id, $description\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a TCP server which listens at 127.0.0.1:8203 | |
// All it does is log everything sent across the wire to the console. | |
// Send ^D as first char of buffer to shut down. | |
var net = require('net'); | |
var CONTROL_D = String.fromCharCode(4); | |
net.createServer(function (socket) { | |
socket.setEncoding("utf8"); | |
socket.write("Logging Test Server\r\n"); | |
socket.on("data", function (data) { | |
console.log(data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Width Test</title> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGNJREFUeNrs1DENwDAMRcG0iALfMAwjLFIT8NpG1f3Vyw3WG7vfWuuTa0Tc48hhYWFhtbuqbCe6VN7LY2FhqbzKe3ksLCyVV3ksLCyVV3mVx8LC+mXlq13dbc6Zme9fa48AAwDFKPsBdzTEzgAAAABJRU5ErkJggg=='); | |
} | |
h1 { |