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
| { | |
| cleanupIDs: { | |
| prefix: { | |
| toString() { | |
| return `${Math.random().toString(36).substr(2, 9)}`; | |
| } | |
| } | |
| } | |
| } |
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
| snirp@SB eal-website % brew update --debug --verbose | |
| + [[ -z '' ]] | |
| + [[ -z '' ]] | |
| + [[ -n '' ]] | |
| + [[ -n '' ]] | |
| + export HOMEBREW_UPDATE_TO_TAG=1 | |
| + HOMEBREW_UPDATE_TO_TAG=1 | |
| + [[ -z '' ]] | |
| + HOMEBREW_AUTO_UPDATE_SECS=300 | |
| + [[ -e /usr/local/Cellar ]] |
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
| # Batch operation on folder using config file | |
| svgo -f ../path/to/svg/files -o ../path/to/svg/output --context=svgo.yml |
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
| const ready = fn => | |
| document.readyState != "loading" | |
| ? fn() | |
| : document.addEventListener("DOMContentLoaded", fn) | |
| // Use as follows | |
| ready(() => {}) |
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 os | |
| from bs4 import BeautifulSoup | |
| path = 'packs/ant' | |
| sprite = 'sprites/ant.svg' | |
| prefix = 'ant-' | |
| f = open(sprite,"w+") | |
| f.write('<svg xmlns="http://www.w3.org/2000/svg">' + '\n') |
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
| /* Drop-in replacement for Bootstrap3 icon font */ | |
| @font-face { | |
| font-family: 'Glyphicons Halflings'; | |
| src: url('glyphicons-halflings-regular.woff2') format('woff2'), | |
| url('glyphicons-halflings-regular.woff') format('woff'); | |
| } | |
| // Catchall baseclass | |
| .glyphicon { |
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
| #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; |
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
| handleSubmit = e => { | |
| e.preventDefault() | |
| const formObj = Array.from(new FormData(e.target).entries()) | |
| .reduce((obj, pair) => ({...obj, [pair[0]]: pair[1]}), {}) | |
| this.props.submitObject(formObj) | |
| } |
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 fs = require('fs'); | |
| var path = require('path'); | |
| var markup = fs.readFileSync('sprite.svg').toString(); | |
| var lines = markup.split(/\n/g); | |
| var symbols = {}; | |
| var currentSymbol = null; | |
| lines.forEach(function(line){ | |
| var open = line.match(/symbol.*?id="(.*?)"/); |
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
| <div style="position:relative; height:400px;" id="app4"> | |
| <!-- numbers --> | |
| <polar v-for="n in 12" :key="n" :angle="n*30-90" :offset="'150px'" :width="'40px'" :height="'40px'"> | |
| <div class='clock-number'> | |
| {{n}} | |
| </div> | |
| </polar> | |
| <!-- minute markers --> | |
| <polar v-bind="minutesPropsObj" v-for="n in 60" :key="n" :angle="n/60*360"></polar> | |
| <!-- hour markers --> |
NewerOlder