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 queueTask = (() => { | |
| let pending = () => Promise.resolve(); | |
| const run = async (fn) => { | |
| try { | |
| await pending; | |
| } finally { | |
| return fn(); | |
| } | |
| }; |
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 groupSiblingsByKeyValue = (arr, k, v) => { | |
| return arr | |
| .map((o, i, a) => { | |
| if (o[k] === v) { | |
| let j = i; | |
| const group = []; | |
| while (a[j][k] === v) { | |
| group.push(a[j]); | |
| a[j] = false; | |
| j++; |
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
| 2018/07/01 14:15:41 [error] 98678#0: *1 connect() to unix:/Users/user/.valet/valet.sock failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: astral.test, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/Users/user/.valet/valet.sock:", host: "astral.test", referrer: "https://astral.test/" |
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
| $(document.getElementById("preview").contentWindow.document).on("dragover drop", function(e) { | |
| return e.preventDefault(); | |
| }); |
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
| module.exports = function(grunt) { | |
| // 1. All configuration goes here | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| sass: { | |
| dist: { | |
| options: { | |
| loadPath: require('node-bourbon').includePaths, | |
| style: 'compressed' | |
| }, |
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
| { | |
| "name": "Bourbon Test", | |
| "version": "1.0.0", | |
| "repository": "", | |
| "devDependencies": { | |
| "node-bourbon": "~1.0.0", | |
| "grunt": "~0.4.4", | |
| "grunt-contrib-sass": "~0.7.3" | |
| } | |
| } |
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
| PS1='\u:\[\033[0;37m\]\W\e[0m$(__git_ps1 :"\[\033[0;35m\][%s]\e[0m")\$ ' |
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
| /* | |
| * HTML Parser By John Resig (ejohn.org) | |
| * Original code by Erik Arvidsson, Mozilla Public License | |
| * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js | |
| * | |
| * // Use like so: | |
| * HTMLParser(htmlString, { | |
| * start: function(tag, attrs, unary) {}, | |
| * end: function(tag) {}, | |
| * chars: function(text) {}, |
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
| //Helper Methods | |
| function getObjectCount(obj) { | |
| var count = 0; | |
| var key; | |
| for(key in obj) { | |
| if(obj.hasOwnProperty(key)) count++; | |
| } | |
| return count; | |
| } |
NewerOlder