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
| <template> | |
| <div aria-live="assertive" aria-atomic="true" aria-relevant="text" class="mdl-snackbar mdl-js-snackbar"> | |
| <div class="mdl-snackbar__text"></div> | |
| <button class="mdl-snackbar__action" type="button"></button> | |
| </div> | |
| </template> | |
| <script> | |
| export default { | |
| props: { |
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
| <style> | |
| /* for dialog-polyfill, from node_modules/dialog-polyfill/dialog-polyfill.css */ | |
| dialog { | |
| position: absolute; | |
| left: 0; right: 0; | |
| width: -moz-fit-content; | |
| width: -webkit-fit-content; | |
| width: fit-content; | |
| height: -moz-fit-content; | |
| height: -webkit-fit-content; |
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
Show hidden characters
| { | |
| "presets": ["es2015", "stage-2"], | |
| "plugins": ["transform-runtime"], | |
| "comments": false | |
| } |
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
| <style> | |
| .getmdl-select .mdl-icon-toggle__label { | |
| float:right;margin-top:-30px;color:gray | |
| } | |
| .getmdl-select.is-focused i.mdl-icon-toggle__label { | |
| color:blue | |
| } | |
| .getmdl-select .mdl-menu__container { | |
| width:100% !important | |
| } |
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
| func TestDaysInMonth(t *testing.T) { | |
| assert.Equal(t, 29, daysInMonth(2016, time.February)) | |
| } | |
| func daysInMonth(year int, mon time.Month) int { | |
| t := time.Date(year, mon+1, 0, 0, 0, 0, 0, time.UTC) | |
| return t.Day() | |
| } |
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/sh | |
| # | |
| # NOTE: this only works on OSX due to the syntax of the stat command | |
| # | |
| # brew install pngcrush optipng | |
| inFile=$1 | |
| if [ -z $inFile ]; then | |
| echo "Syntax: $0 filename" |
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/sh | |
| # | |
| # NOTE: this only works on OSX due to the syntax of the stat command | |
| # | |
| # brew install jpeg jpegoptim | |
| inFile=$1 | |
| if [ -z $inFile ]; then | |
| echo "Syntax: $0 filename" |
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 main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "image" | |
| "image/draw" | |
| "image/png" | |
| "io/ioutil" | |
| "log" |
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
| <template> | |
| <div> | |
| <nav-bar></nav-bar> | |
| <cookie-info></cookie-info> | |
| <router-view></router-view> | |
| <corporate-footer></corporate-footer> | |
| </div> |
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 aoc | |
| import ( | |
| "fmt" | |
| "regexp" | |
| "strconv" | |
| "strings" | |
| ) | |
| func makeCircuit(s string) map[string]string { |