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
@mixin child-widths($widths) | |
@for $i from 1 through length($widths) | |
$width: nth($widths, $i) | |
&:nth-child(#{$i}) | |
width: $width | |
table.fixed | |
th, td | |
@include child-widths(100px 20px 10px 20px 20px) | |
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
class Color(val red: Int, val green: Int, val blue: Int, val alpha: Float) { | |
companion object { | |
private val pattern = Pattern.compile("^rgba?\\((\\d+), (\\d+), (\\d+)(?:, ([\\d.]+))?\\)$") | |
fun fromString(string: String): Color? { | |
val matcher = pattern.matcher(string) | |
if (!matcher.matches()) return null |
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
{% macro select (name, id, options, selected, required, includeBlank) %} | |
<select name="{{ name }}" id="{{ id }}" {{ required ? 'required' : '' }}> | |
{% if includeBlank %} | |
<option value=""></option> | |
{% endif %} | |
{% for key, value in options %} | |
{% if value is iterable %} | |
<optgroup label="{{ key }}"> | |
{% for subKey, subValue in value %} | |
<option value="{{ subKey }}" {{ subKey == selected ? 'selected' : '' }}>{{ subValue }}</option> |
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
Add-Type -AssemblyName Microsoft.VisualBasic | |
$items = Get-ChildItem -Path . -Recurse -Name "*.opus" | |
foreach ($item in $items) { | |
#Write-Host $item | |
$base = $item.Substring(0, $item.LastIndexOf('.')) | |
$ogg = $base + ".ogg" | |
OlderNewer