Skip to content

Instantly share code, notes, and snippets.

Markus Padourek Globegitter

Block or report user

Report or block Globegitter

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 helloworld_pb.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
jest 24.7.1 symlink patches
View @jest+core+24.7.1.patch
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();
View @jest+transform+24.5.0.patch
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 Jun 15, 2017
Stellar core build docker image alpine
View Dockerfile
# 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/conor@conr.ca-584aeee5.rsa.pub -O /etc/apk/keys/conor@conr.ca-584aeee5.rsa.pub && \
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 Jul 28, 2016
Hacked defer support
View customNetworkLayer.js
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 Feb 1, 2016
webpack2 config
View config.js
'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']
});
View 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 Jun 8, 2015
Uncaught RangeError: Maximum call stack size exceeded
View gist:c739966fbdd78dc2cea2
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)
View index.js
// index.js
require('babel/register')({ only: /tests/ });
require('./tests');
@Globegitter
Globegitter / gist:9d724b14342763f042ea
Last active Aug 29, 2015
Install node-sass on iojs
View gist:9d724b14342763f042ea
#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
You can’t perform that action at this time.