This file contains hidden or 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
<!--I believe the control that should actually be used is a ListBox. While ListView does indeed derive from ListBox, and the ItemTemplate property is left exposed, to actually change how the data is presented you should have changed "ListView.View" (finding out why requires some more reading on ListViews). The problem with this is that ListView.View is of type ViewBase and the only concrete implementation of ViewBase that ships with WPF is "GridView". Creating a list that looks like your picture, with a ListView, would require something like this: --> | |
<ListView ItemsSource="{Binding MyStringList}"> | |
<ListView.View> | |
<GridView> | |
<GridView.ColumnHeaderContainerStyle> | |
<Style TargetType="GridViewColumnHeader"> | |
<Setter Property="Visibility" Value="Collapsed" /> | |
</Style> | |
</GridView.ColumnHeaderContainerStyle> |
This file contains hidden or 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
$shouldDeleteImages = Read-Host -Prompt 'Do you wish to delete all images? Default is no. (y/n)' | |
$listOfContainers = (docker ps -a -q) | |
if($listOfContainers) | |
{ | |
"There are containers, they shall now be removed." | |
docker rm $($listOfContainers) --force |
This file contains hidden or 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
language: node_js | |
node_js: | |
- "8.9.0" | |
branches: | |
only: | |
- master | |
install: | |
- npm install -g @angular/cli |
This file contains hidden or 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
#!/bin/bash | |
# Requires 3 env vars to be set: | |
# ACCESS_TOKEN - your Travis-CI auth token. https://medium.com/@aflyingcaveman/retrieving-your-travis-ci-api-access-token-bc706b2b625a | |
# REPO_TO_KICK - the name of the repo to kick. | |
# OWNER_OF_REPO - your repo owner name. | |
body='{ | |
"request":{ | |
"branch":"master", |
This file contains hidden or 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
sudo apt-get update -y; \ | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB; \ | |
sudo apt-get install software-properties-common -y; \ | |
sudo apt-add-repository -y ppa:rael-gc/rvm; \ | |
sudo apt-get update -y; \ | |
sudo apt-get install rvm -y; \ | |
rvm install "ruby-2.4.3"; \ | |
rvm use "ruby-2.4.3"; |
This file contains hidden or 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
// Check out the walkthrough at: https://medium.com/@aflyingcaveman | |
const phrases = [ | |
"You're doing great!", | |
"You're awesome!", | |
"Good job at doing what you do!" | |
]; | |
exports.handler = (event, context, callback) => { | |
const todaysDate = getTodayAsDateWithNoTime(); |
This file contains hidden or 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
# As always, make sure you know what a script is doing before blindly trusting someone's Gist :) | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
refreshenv | |
choco install boxstarter -y |
This file contains hidden or 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
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(8080); | |
console.log('Server running at *:8080/'); |
OlderNewer