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
| /** | |
| * Horizontal stripes | |
| */ | |
| background: linear-gradient(#fb3 50%, #58a 0); | |
| background-size: 100% 30px; |
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
| /** | |
| * Vertical stripes | |
| */ | |
| background: linear-gradient(to right, #fb3 50%, #58a 0); | |
| background-size: 30px 100%; |
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
| /** | |
| * Diagonal stripes - repeating-linear-gradient() method | |
| */ | |
| background: repeating-linear-gradient(60deg, | |
| #fb3, | |
| #fb3 15px, | |
| #58a 0, | |
| #58a 30px); |
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
| /** | |
| * Subtle stripes | |
| */ | |
| background: #58a; | |
| background-image: repeating-linear-gradient(30deg, | |
| hsla(0,0%,100%,.1), | |
| hsla(0,0%,100%,.1) 15px, | |
| transparent 0, | |
| transparent 30px); |
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
| /** | |
| * Flexible background positioning | |
| * via calc() | |
| */ | |
| div { | |
| background: url(http://csssecrets.io/images/code-pirate.svg) | |
| no-repeat bottom right #58a; | |
| background-position: calc(100% - 20px) calc(100% - 10px); | |
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
| /** | |
| * Flexible background positioning | |
| * via extended background-position | |
| */ | |
| div { | |
| background: url(http://csssecrets.io/images/code-pirate.svg) | |
| no-repeat bottom right #58a; | |
| background-origin: content-box; | |
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
| /** | |
| * Multiple borders | |
| */ | |
| div { | |
| width: 100px; | |
| height: 60px; | |
| margin: 25px; | |
| background: yellowgreen; | |
| box-shadow: 0 0 0 10px #655, |
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
| /** | |
| * Translucent borders | |
| */ | |
| body { | |
| background: url('http://csssecrets.io/images/stone-art.jpg'); | |
| } | |
| div { | |
| border: 10px solid hsla(0,0%,100%,.5); |
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
| // Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/ | |
| // Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf | |
| (function(exports) { | |
| function cloud() { | |
| var size = [256, 256], | |
| text = cloudText, | |
| font = cloudFont, | |
| fontSize = cloudFontSize, | |
| fontStyle = cloudFontNormal, | |
| fontWeight = cloudFontNormal, |
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 PyQt5.QtCore import * | |
| from maia.views.dialog_train_ui import Ui_dialogTrain | |
| from PyQt5.QtGui import * | |
| from PyQt5.QtWidgets import * | |
| import numpy as np | |
| import os | |
| import csv | |
| #from gpuinfo import GPUInfo | |
| import psutil | |
| import time |