This file contains 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 MarketWatch | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description adds market transcation data into history description column | |
// @author taiga | |
// @match https://screeps.com/a/ | |
// @grant none | |
// @run-at document-ready |
This file contains 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
/* | |
This overlay provides a 'liquid' mode to the excellent CodeMirror editor (http://codemirror.net/). | |
Add something like this to your CSS: | |
.cm-liquid-tag { | |
color: #32273f; | |
background: #ead9ff; | |
} | |
.cm-liquid-variable { |
This file contains 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 map = require('lodash/map') | |
const reduce = require('lodash/reduce') | |
const validateLengths = (a,b,action) => { | |
if (a.length !== b.length) { | |
throw Error(`Can\'t ${action} arrays of length ${a.length} and ${b.length}`); | |
} | |
} | |
const arrayMultiply = (arr1, arr2) => { |
This file contains 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
if (!Array.prototype.reduce) { | |
Array.prototype.reduce = function(callback /*, initialcurrentValue*/) { | |
'use strict'; | |
// Check if calling on array | |
if (this == null) { | |
throw new TypeError('Array.prototype.reduce called on null or undefined'); | |
} | |
// Check if callback function is supplied |
This file contains 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
<pop:content> | |
<h4>Upcoming Shows</h4> | |
<pop:months> | |
<pop:start format="mmmm" wrap="h4"/> | |
<hr> | |
<pop:entries_between start="<pop:start/>" end="<pop:end/>"> | |
<p><pop:date format="dd"/></p> |
This file contains 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 <pop:calendar:months> within the scope of entries to generate | |
// a timeline array of all the months which have entries | |
exports.months = function() { | |
if (!section) return null; | |
var result = site.search({ | |
all: true, | |
filters: {section: section, date: "future" }, |
This file contains 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
exports.past_months = function(options) { | |
if (!section) return null; | |
var result = site.search({ | |
all: true, | |
filters: {section: section, date: "past" }, | |
timeline: {date: "month"}, | |
}).timeline; | |
return result; |
This file contains 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 <pop:calendar:months> within the scope of entries to generate | |
// a timeline array of all the months which have entries | |
exports.months = function(options) { | |
if (!section) return null; | |
var result = site.search({ | |
all: true, | |
filters: {section: section, date: "future" }, | |
timeline: {date: "month"}, |
This file contains 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
// New grid containing medium styles | |
/* Grid HTML Classes */ | |
.row { | |
margin-left: auto; | |
margin-right: auto; | |
margin-top: 0; | |
margin-bottom: 0; | |
max-width: 62.5em; | |
width: 100%; | |
*zoom: 1; } |
This file contains 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
<div data-picture="" data-alt="Eagle Perch"> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/150/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/300/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-device-pixel-ratio: 2.0)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/300/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 768px)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/600/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 768px) and (min-device-pixel-ratio: 2.0)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/450/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 1280px)"> </div> | |
<div data-src="http://c1940652.r52.cf0.rackcdn.com/fit/900/0/516fc9c9896ad857e2001578/2012-08-24-18.31.24.jpg" data-media="(min-width: 1280px) and (min-device-pixel-ratio: 2.0)"> </div> | |
<div data-src="http://c1 |
NewerOlder