When you use docker-compose, logs are not colorized like:
However, you can get colorized logs using really-cute-'cat' solution. Instead of
docker-compose up
using
docker-compose up | cat
var screenWidth = window.innerWidth; | |
var visibleElements = jQuery(":visible"); | |
visibleElements.each(function(){ | |
var $this = jQuery(this); | |
if($this.width() > screenWidth){ | |
$this.css("border", "1px solid green"); | |
console.log("Screen width is " + screenWidth + " and the following element is " + $this.width(), $this); | |
} | |
}); |
var request = require("request"), | |
cheerio = require("cheerio"), | |
fs = require('fs'); | |
var site = "http://dilbert.com"; | |
var startingPage = "/strip/2005-01-01"; | |
var finalPage = '/strip/2006-01-01'; | |
var nextPage = startingPage; |
<!doctype html> | |
<!-- This is just a very slightly modified tracking.js demo: https://trackingjs.com/examples/face_camera.html --> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/tracking.js/1.1.3/tracking-min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/tracking.js/1.1.3/data/face-min.js"></script> | |
<style> | |
video, canvas { | |
margin-left: 100px; |
#!/bin/bash | |
update_registry_secret() { | |
login_cmd=$(aws ecr get-login) | |
username=$(echo $login_cmd | cut -d " " -f 4) | |
password=$(echo $login_cmd | cut -d " " -f 6) | |
endpoint=$(echo $login_cmd | cut -d " " -f 9) | |
auth=$(echo "$username:$password" | /usr/bin/base64) | |
configjson="{ \"auths\": { \"${endpoint}\": { \"auth\": \"${auth}\" } } }" |
This is a tutorial for building a Markdown-to-HTML renderer using Electron. It is meant to accompany my session on Building a desktop application with Electron at JSConf Colombia.
The slides for the first part of the presentation are available here.
Steve is the Director of Academics for the Front-End Engineering program at the Turing School of Software and Design in Denver, Colorado, USA.
#!/usr/bin/env ruby | |
# A small ruby script to extract a git history to a tikz picture | |
# Author: Michael Hauspie <Michael.Hauspie@lifl.fr> | |
# Author: Lennart C. Karssen <lennart@karssen.org> | |
# | |
# Not clean code, not always working well, but does its job in most of | |
# the cases I needed :) | |
# | |
# LCK: Added some ideas from this tex.stackexchange answer: |
/** | |
* Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers | |
* @author ShirtlessKirk. Copyright (c) 2012. | |
* @license WTFPL (http://www.wtfpl.net/txt/copying) | |
*/ | |
var luhnChk = (function (arr) { | |
return function (ccNum) { | |
var | |
len = ccNum.length, | |
bit = 1, |
# Example makefile with some dummy rules | |
.PHONY: all | |
## Make ALL the things; this includes: building the target, testing it, and | |
## deploying to server. | |
all: test deploy | |
.PHONY: build | |
# No documentation; target will be omitted from help display | |
build: |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.