mkdir -p plenty_of_disk_volume/.vscode-server
mkdir -p /global/sandwork15/kleinada/.vscode
mkdir -p /global/sandwork15/kleinada/.vscode-tunnel
# go to your home director
cd ~
ln -s /global/sandwork15/kleinada/.vscode-server
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
# %% | |
from datetime import datetime | |
import os | |
import sys | |
import gpustat | |
gpus = gpustat.new_query() | |
[print(gpu) for gpu in gpus] | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>TestProject</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> |
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
context('Currency Converter Test', () => { | |
it('', () => { | |
cy.visit('https://www.xe.com/') | |
cy.get('#amount').type(100) | |
cy.get('button[data-test-id=converter-submit-button]').click() | |
cy.get('.converterresult-toAmount').invoke('text').then(parseFloat).should('be.gt', 84) |
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
package test; | |
import io.github.bonigarcia.wdm.WebDriverManager; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.testng.annotations.Test; | |
import static org.testng.Assert.assertTrue; |
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
context('Currency Converter Test', () => { | |
it('', () => { | |
cy.visit('https://www.xe.com/') | |
cy.get('#amount').type(100) | |
cy.get('button[data-test-id=converter-submit-button]').click() | |
cy.get('.converterresult-toAmount').invoke('text').then(parseFloat).should('be.gt', 84) |
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 | |
trap '[ "$?" -eq 0 ] || read -p "Looks like something went wrong in step ´$STEP´... Press any key to continue..."' EXIT | |
# TODO: I'm sure this is not very robust. But, it is needed for now to ensure | |
# that binaries provided by Docker Toolbox over-ride binaries provided by | |
# Docker for Windows when launching using the Quickstart. | |
export PATH="/c/Program Files/Docker Toolbox:$PATH" | |
VM=${DOCKER_MACHINE_NAME-default} | |
DOCKER_MACHINE=./docker-machine.exe |
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
version: '2' | |
services: | |
nginx: | |
image: shippingdocker/nginx:latest | |
ports: | |
- "80:80" | |
volumes: | |
- /srv/application:/var/www/html | |
networks: | |
- appnet |
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 path = require( 'path' ); | |
var webpack = require( 'webpack' ); | |
var env = process.env.NODE_ENV || 'production'; | |
var dev = [ 'development', 'testing' ].indexOf( env.toLowerCase() ) !== -1 ? true : false; | |
module.exports = { | |
devtool: dev ? 'inline-source-map' : 'eval', | |
entry: [ |
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
import { AppContainer } from 'react-hot-loader'; | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './components/app'; | |
ReactDOM.render( | |
<App />, | |
document.getElementById( 'app' ) | |
); |
NewerOlder