Skip to content

Instantly share code, notes, and snippets.

💾
Tweaking dotfiles

Greg Hurrell wincent

Block or report user

Report or block wincent

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View snippet.js
/**
* For windows compatibility, we need to use windows path separators for webpack
* "test" properties.
*/
function toTestRegExp(file) {
return new RegExp(
file.split('/').join(path.sep).replace(/\\/g, '\\')
);
}
View imports.js
import '../scripts/test/globals.js';
import '../src/adapter/main.js';
import '../src/core/debounce.js';
import '../src/core/link.js';
import '../src/core/plugins.js';
import '../src/core/selection-region.js';
import '../src/core/table.js';
import '../src/core/tools.js';
import '../src/core/uicore.js';
import '../src/plugins/.eslintrc.js';
View gist:79adfd1e36e4ef87aa0f38f857ea9f03
diff --git a/package-lock.json b/package-lock.json
index 25b48e64..ad13d95a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1833,6 +1833,12 @@
"integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==",
"dev": true
},
+ "buffer-equal": {
+ "version": "1.0.0",
View amazon.js
#!/usr/bin/env node
const words = [
'people',
'history',
'way',
'art',
'world',
'information',
'map',
View 1password-backup.bash
#!/bin/bash
#
# https://support.1password.com/command-line-getting-started/
#
# Full docs: https://support.1password.com/command-line/
#
# gpg --receive-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22
# gpg --verify op.sig op
#
View Makefile
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@ :)
ECHO = $(ECHO1:0=@ echo)
NULLCMD = :
View assert.re
let quote = Util.quote;
let fail_equal a b show location =>
failwith ("Expected " ^ show a ^ " to equal " ^ show b ^ " at " ^ location);
let bools a b => fail_equal a b string_of_bool;
let ints a b => fail_equal a b string_of_int;
let strings a b => fail_equal a b quote;
View gist:bd41cb2d0cb92c6b77eec74d02db0798
--- old.css 2016-12-13 11:26:59.000000000 -0800
+++ new.css 2016-12-13 12:42:57.000000000 -0800
@@ -1,9 +1,10 @@
.graphiql-container {
color: #141823;
- display: -webkit-flex;
+ display: -webkit-box;
display: -ms-flexbox;
display: flex;
- -webkit-flex-direction: row;
View gist:c9b99086d3c8fd5ffe7eb30323e4aa6b
--- old.css 2016-12-13 11:26:59.000000000 -0800
+++ new.css 2016-12-13 12:28:14.000000000 -0800
@@ -1,9 +1,10 @@
.graphiql-container {
color: #141823;
- display: -webkit-flex;
+ display: -webkit-box;
display: -ms-flexbox;
display: flex;
- -webkit-flex-direction: row;
View gist:bdc72e085b97158e4cc87e8c1226dd25
--- old.css 2016-12-13 11:26:59.000000000 -0800
+++ old-transformed-to-new.css 2016-12-13 12:18:42.000000000 -0800
@@ -1,10 +1,11 @@
.graphiql-container {
color: #141823;
- display: -webkit-flex;
display: -ms-flexbox;
+ display: -webkit-box;
display: flex;
- -webkit-flex-direction: row;
You can’t perform that action at this time.