Skip to content

Instantly share code, notes, and snippets.

- "ABB_BUILD_DATE=`date -u +%Y%m%d`"
async function singleRequest(url, method, payload = null)
{
let headers = await client.getRequestHeaders(url);
let options = {url, method, headers, json: true};
let requestFnc = (...opts) => request(...opts);
if (payload)
{
let packageReadStream = fs.createReadStream(path.resolve(args.package));
requestFnc = (...opts) => packageReadStream.pipe(request(...opts));
async function singleRequest(url, method, payload = null)
{
let headers = await client.getRequestHeaders(url);
let options = {url, method, headers, json: true};
let requestFnc = (...opts) => request(...opts);
if (payload)
{ async function singleRequest(url, method, payload = null)
{
let headers = await client.getRequestHeaders(url);
stages:
- install
- test
- build
- deploy
prepare-dependencies:
stage: install
script:
# Fix for ensure_dependencies.py; failed on multirunner while trying to manually exlucde files
// FILE A adblockpluschrome/etc/foo.js:
require('./lib/baz.js');
// FILE B adblockpluschrome/adblockpluscore/etc/bar.js:
require('./lib/baz.js');
// we want to use adblockpluschrome/etc/lib/foobar.js and adblockpluschrome/adblockpluscore/etc/lib/foobar.js instead of the baz, so we configure
[module_alias]
./lib/baz.js = ./lib/foobar.js
from urllib import urlencode
import urllib2
import json
import os
import sys
config {
'refresh_token': 'YOURREFRESHTOKEN',
'client_id': 'YOURCLIENTID',
'client_secret': 'YOURCLIENTSECRET',
@TrLucas
TrLucas / alt
Created November 14, 2017 15:29
If lesbar:
print "lesbar"
else:
print "nicht lesbar"
teste_stuff()
{#
This file is part of Adblock Plus <https://adblockplus.org/>,
Copyright (C) 2006-present eyeo GmbH
Adblock Plus is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3 as
published by the Free Software Foundation.
Adblock Plus is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of