http://claysnow.co.uk/recycling-tests-in-tdd/
Given a letter, print a diamond starting with ‘A’ with supplied letter at the widest point.
For example: print-diamond ‘C’ prints
| map <C-d> :duplicate<CR> | |
| let blacklists = ["https://trello.com/*", "https://mail.google.com/*", "https://calendar.google.com/*", "https://www.tapd.cn/*/board/index?board_id=*"] |
| #!/bin/bash | |
| BIN_DIR="$HOME/bin" | |
| FILENAME="twvpn" | |
| which brew > /dev/null || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| HOMEBREW_NO_AUTO_UPDATE=1 | |
| brew list | grep --quiet oath-toolkit || brew install oath-toolkit |
| #!/bin/bash | |
| function get_password { | |
| echo `security find-generic-password -a $1 -s twvpn -w` | |
| } | |
| killall 'Cisco AnyConnect Secure Mobility Client' 2>/dev/null | |
| /opt/cisco/anyconnect/bin/vpn disconnect >/dev/null | |
| username=`get_password username` |
| plugins { | |
| id 'java' | |
| } | |
| group 'com.twuc' | |
| version '1.0-SNAPSHOT' | |
| sourceCompatibility = 1.8 | |
| repositories { |
http://claysnow.co.uk/recycling-tests-in-tdd/
Given a letter, print a diamond starting with ‘A’ with supplied letter at the widest point.
For example: print-diamond ‘C’ prints
| ### Create two users and their primary group and home directories | |
| root@panda:~# groupadd awesome-user | |
| root@panda:~# groupadd jenkins | |
| root@panda:~# mkdir /home/jenkins/ | |
| root@panda:~# mkdir /home/awesome-user/ | |
| root@panda:~# chown -R jenkins:jenkins /home/jenkins/ | |
| root@panda:~# chown -R awesome-user:awesome-user /home/awesome-user | |
| root@panda:~# useradd awesome-user -g awesome-user -d /home/awesome-user | |
| root@panda:~# useradd jenkins -g jenkins -d /home/jenkins/ |
| div.object { | |
| border-style: solid; | |
| border-color: transparent transparent blue transparent; | |
| } | |
| .triangle { | |
| width: 0px; | |
| height: 0px; | |
| border-width: 70px; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Let's paint a triangle!</title> | |
| <link rel="stylesheet" href="css/session.css"> | |
| </head> | |
| <body> | |
| <div id="section-1"> | |
| <div id="triangle" class="object triangle"></div> |
| Vagrant::Config.run do |config| | |
| # ... | |
| config.vm.customize do |vm| | |
| # Use the host resolver for DNS so that VPN continues | |
| # to work within the VM | |
| vm.network_adapters.each do |na| | |
| if na.enabled? && na.nat_driver | |
| na.nat_driver.dns_use_host_resolver = true | |
| end |