- Website: http://sass-lang.com/
- Docs: http://sass-lang.com/guide
- Tutorial: https://www.codecademy.com/learn/learn-sass
This file contains 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
/* Basic reset */ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: Arial, sans-serif; | |
line-height: 1.6; |
This file contains 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
param( | |
[int]$numRecords | |
) | |
$filename = "measurements.txt" | |
if ($numRecords -eq $null) { | |
Write-Host "Usage: create_measurements.ps1 <number of records to create>" | |
exit 1 | |
} |
This file contains 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
# Ensure lalest versions of these command apps are installed. Some autocompletions have additional requirements as indicated | |
# requirement: Install-Module DockerCompletion -Scope CurrentUser | |
Import-Module DockerCompletion | |
# requirement: Install-Module npm-completion -Scope CurrentUser | |
Import-Module npm-completion | |
helm completion powershell | Out-String | Invoke-Expression | |
kubectl completion powershell | Out-String | Invoke-Expression |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css"/> | |
<script type="module" src="main.js"></script> | |
<title>Document</title> | |
</head> |
This file contains 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
type Grade = A | B | C | D | E | F | InvalidGrade | |
let (|MoreThan|_|) grade value = | |
if value > grade then Some MoreThan else None | |
let (|LessThan|_|) grade value = | |
if value < grade then Some LessThan else None | |
let (|Between|_|) uppergrade lowergrade value = | |
if uppergrade >= value && value >= lowergrade then Some Between else None |
This file contains 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
$sound = New-Object System.Media.SoundPlayer; | |
function Initialize-Alert { | |
$sound.SoundLocation="$env:WINDIR\Media\ringout.wav"; | |
} | |
function Alert-User { | |
$sound.Play(); | |
} |
This file contains 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
TAR | |
tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. | |
tar -tvf archive.tar # List all files in archive.tar verbosely. | |
tar -xf archive.tar # Extract all files from archive.tar. | |
# get line 5 to end, then print fifth column, sort, then get uniq. | |
sed -n '5,$p' <file> | gawk '{print $5}' | sort | uniq | |
# remove vss files within folder and sub folders | |
find . -iname '*.*scc' -type f -print0 | xargs -0 rm |
This file contains 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
[T]he difference between a bad programmer and a | |
good one is whether he considers his code or his | |
data structures more important. Bad programmers | |
worry about the code. Good programmers worry about | |
data structures and their relationships. | |
-- Linus Torvalds | |
~~~ | |
Clarity and brevity sometimes are at odds. | |
When they are, I choose clarity. | |
-- Jacob Kaplan-Moss |
NewerOlder