Skip to content

Instantly share code, notes, and snippets.

@Globegitter
Globegitter / helloworld_pb.js
Created June 28, 2019 20:34
helloworld proto js
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
@Globegitter
Globegitter / @jest+core+24.7.1.patch
Created May 16, 2019 18:01
jest 24.7.1 symlink patches
diff --git a/node_modules/@jest/core/build/runJest.js b/node_modules/@jest/core/build/runJest.js
index 5afb90a..9a2c15b 100644
--- a/node_modules/@jest/core/build/runJest.js
+++ b/node_modules/@jest/core/build/runJest.js
@@ -244,7 +244,7 @@ const processResults = (runResults, options) => {
if (isJSON) {
if (outputFile) {
- const cwd = (0, _realpathNative().sync)(process.cwd());
+ const cwd = process.cwd();
@Globegitter
Globegitter / @jest+transform+24.5.0.patch
Created March 21, 2019 15:55
jest 24.5.0 symlink patches
diff --git a/node_modules/@jest/transform/build/ScriptTransformer.js b/node_modules/@jest/transform/build/ScriptTransformer.js
index 81397c7..7589de2 100644
--- a/node_modules/@jest/transform/build/ScriptTransformer.js
+++ b/node_modules/@jest/transform/build/ScriptTransformer.js
@@ -328,7 +328,7 @@ class ScriptTransformer {
}
transformSource(filepath, content, instrument) {
- const filename = this._getRealPath(filepath);
+ const filename = filepath;
@Globegitter
Globegitter / Dockerfile
Created June 15, 2017 13:24
Stellar core build docker image alpine
# Image: globegitter/stellar-core-build:alpine-3.6
FROM alpine:3.6
RUN apk add --no-cache --virtual=pandoc-deps wget ca-certificates && \
wget https://gitlab.com/ConorIA/alpine-pandoc/raw/master/[email protected] -O /etc/apk/keys/[email protected] && \
echo https://conoria.gitlab.io/alpine-pandoc/ >> /etc/apk/repositories && \
apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing cmark && \
apk add --no-cache openssh git build-base pkgconfig \
autoconf automake libtool bison flex postgresql-dev pandoc && \
apk del pandoc-deps
@Globegitter
Globegitter / customNetworkLayer.js
Last active July 28, 2016 09:28
Hacked defer support
const defaultNetworkLayer = new Relay.DefaultNetworkLayer(endpoint, {
fetchTimeout,
retryDelays,
headers: {...authHeaders, ...customHeaders}
});
defaultNetworkLayer.supports = (...options) => {
return options.every(option => {
if (option === 'defer') {
return true;
}
@Globegitter
Globegitter / config.js
Last active February 1, 2016 12:44
webpack2 config
'use strict';
/* eslint-env node*/
/**
* Our webpack config. Call with true to enable debug mode (faster rebuilds etc.)
* @type {function}
*/
const webpack = require('webpack');
const argv = require('minimist')(process.argv.slice(2), {
'boolean': ['minify', 'src_maps']
});
@Globegitter
Globegitter / npm-debug.log
Created August 19, 2015 16:10
NPM debug log
0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli '/Users/markus/mutable_node_modules/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'karma',
1 verbose cli 'karma-cli',
1 verbose cli 'karma-jasmine',
1 verbose cli 'karma-phantomjs-launcher',
1 verbose cli 'karma-junit-reporter' ]
@Globegitter
Globegitter / gist:c739966fbdd78dc2cea2
Created June 8, 2015 10:25
Uncaught RangeError: Maximum call stack size exceeded
This file has been truncated, but you can view the full file.
/home/mpadourek/.atom/packages/pigments/lib/utils.coffee:0
Hide Stack Trace
RangeError: Maximum call stack size exceeded
at String.replace (native)
at utils.strip (/home/mpadourek/.atom/packages/pigments/lib/utils.coffee:3:23)
at module.exports.getRegistry (/home/mpadourek/.atom/packages/pigments/lib/color-expressions.coffee:107:40)
at ColorParser.module.exports.ColorParser.parse (/home/mpadourek/.atom/packages/pigments/lib/color-parser.coffee:18:16)
at ColorContext.module.exports.ColorContext.readColor (/home/mpadourek/.atom/packages/pigments/lib/color-context.coffee:41:22)
at Color.<anonymous> (/home/mpadourek/.atom/packages/pigments/lib/color-expressions.coffee:543:25)
at ColorExpression.module.exports.ColorExpression.parse (/home/mpadourek/.atom/packages/pigments/lib/color-expression.coffee:15:13)
// index.js
require('babel/register')({ only: /tests/ });
require('./tests');
@Globegitter
Globegitter / gist:9d724b14342763f042ea
Last active August 29, 2015 14:15
Install node-sass on iojs
#This sets the environment variable for Fish shell (http://fishshell.com/). Change for bash/zsh.
set -g -x SKIP_SASS_BINARY_DOWNLOAD_FOR_CI true
cd node_modules
#If you are using ember-cli-sass first change your package.json to
#"ember-cli-sass": "git+https://github.com/aexmachina/ember-cli-sass#sources-content"
#and cd node_modules/ember-cli-sass/node_modules/broccoli-sass/node_modules/
rm -rf node-sass
git clone --recursive https://github.com/sass/node-sass.git
cd node-sass