&:empty
display none
!important, it can't have space on HTML
✌️
pipeline { | |
agent { node { label 'swarm-ci' } } | |
environment { | |
TEST_PREFIX = "test-IMAGE" | |
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}" | |
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}" | |
REGISTRY_ADDRESS = "my.registry.address.com" | |
SLACK_CHANNEL = "#deployment-notifications" |
#!/bin/sh | |
command="${*}" | |
printf "Initialized REPL for `%s`\n" "$command" | |
printf "%s> " "$command" | |
read -r input | |
while [ "$input" != "" ]; | |
do | |
eval "$command $input" | |
printf "%s> " "$command" |
find . -name "*.DS_Store" -type f -delete |
handler: () => { | |
return this.data.load().then(() => { | |
return alert.dismiss(); | |
}).then(() => { | |
this.nav.pop(); | |
}); | |
return false; | |
} |
#!/usr/bin/env python2.7 | |
from __future__ import print_function | |
import commands | |
import os | |
import stat | |
from gitlab import Gitlab | |
def get_clone_commands(token, repo_root): | |
con = Gitlab("http://gitlab.your.domain", token) |
On why stateful code is bad | |
=========================== | |
STUDENT: Sir, can I ask a question? | |
TEACHER: Yes! | |
STUDENT: How do you put an elephant inside a fridge? | |
TEACHER: I don't know. | |
STUDENT: It's easy, you just open the fridge and put it in. I have another question! | |
TEACHER: Ok, ask. | |
STUDENT: How to put a donkey inside the fridge? |
<?php | |
interface InputStream | |
{ | |
public function close(); | |
public function read($numberOfBytes); | |
public function skip($numberOfBytes); | |
} | |
interface MarkableStream |
#!/bin/bash | |
COUNTER=1 | |
for i in $(git log --oneline | cut -d" " -f 1); do | |
let COUNTER+=1 | |
if [ "$i" = "$1" ]; then | |
echo "$COUNTER" | |
fi | |
done |