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
'use strict'; | |
const chalk = require('chalk'); | |
const stringLength = require('string-length'); | |
const table = require('text-table'); | |
const tableOptions = { stringLength: stringLength }; | |
class Reporter { | |
log (file) { |
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
/* | |
* A webpack plugin for specifying multiple dependencies for a single | |
* variable. | |
* | |
* plugins: [ | |
* new ProvideMultiPlugin({ | |
* 'gilt': [ 'internal.gilt_require', 'internal.require' ] | |
* }) | |
* ] | |
* |
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
(function (root) { | |
'use strict'; | |
var scope = 'bananas', // whatever your company global variable is | |
enabled = /(\?|&)debug=true/.test(document.location.search); | |
if (!root[scope) { | |
root[scope] = { | |
signal: {} | |
}; |
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
// ==UserScript== | |
// @name Gmail Count Red | |
// @namespace Violentmonkey Scripts | |
// @match *://mail.google.com/* | |
// @grant none | |
// ==/UserScript== | |
function fix (link) { | |
const href = link.getAttribute('href'); | |
link.setAttribute('href', href.replace('-b', '_2x')); |
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 webpack = require('webpack'); | |
const config = require('../fixtures/multi/webpack.config.js'); | |
delete config.serve; | |
const compiler = webpack(config); | |
compiler.compilers = [ | |
compiler.compilers.find((comp) => comp.name === 'server'), |
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
#!/usr/bin/env ruby | |
require "rubygems" | |
require "twitter" | |
require "json" | |
require "faraday" | |
# things you must configure | |
TWITTER_USER = "your_username" | |
# get these from dev.twitter.com |
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
require "rubygems" | |
require "twitter" | |
require "json" | |
# things you must configure | |
TWITTER_USER = "your_username" | |
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted | |
# get these from dev.twitter.com | |
CONSUMER_KEY = "your_consumer_key" |
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 defer = require('p-defer'); | |
const getPort = require('get-port'); | |
const Koa = require('koa'); | |
const router = require('koa-route'); | |
const WebSocket = require('ws'); | |
const socketServer = new WebSocket.Server({ noServer: true }); | |
/* eslint-disable no-param-reassign */ | |
const middleware = async (ctx, next) => { |
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
/* CSS intended to be used with the Chrome Stylus extension that reverts Github to a pre-dark-header appearance */ | |
.watch_started .body a, | |
.fork .body a { color: #0366d6 !important; font-weight: normal !important; } | |
.Header { | |
border-bottom: 1px solid #E5E5E5 !important; | |
background-color: #F5F5F5 !important; | |
} |