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
[Rainmeter] | |
Update=1000 | |
AccurateText=1 | |
DynamicWindowSize=1 | |
[Metadata] | |
Name=ForexFactoryCalendar | |
Author=Talasan Nicholson | |
Version=0.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
import withData from '@/lib/withData' | |
import { ApolloClient } from 'apollo-boost' | |
import App, { AppProps, Container } from 'next/app' | |
import { ApolloProvider } from 'react-apollo' | |
export default withData( | |
class extends App<MyAppProps> { | |
public static async getInitialProps({ Component, ...ctx }) { | |
let pageProps = {} |
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
import { spawn } from 'child_process' | |
import * as express from 'express' | |
import * as LRU from 'lru-cache' | |
const app = express() | |
const cache = LRU({ | |
max: 152, | |
maxAge: 36e2 | |
}) |
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
import { ApolloServer } from 'apollo-server-express' | |
import * as express from 'express' | |
import { IResolvers } from 'graphql-tools' | |
import * as LRU from 'lru-cache' | |
import typeDefs, { Context } from './types' | |
const router = express.Router() | |
const resolvers: IResolvers<{}, Context> = { |
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
import * as compression from 'compression' | |
import * as express from 'express' | |
import { RequestHandlerParams } from 'express-serve-static-core' | |
import * as helmet from 'helmet' | |
import * as LRU from 'lru-cache' | |
import * as morgan from 'morgan' | |
import * as next from 'next' | |
import * as path from 'path' | |
const dev = process.env.NODE_ENV !== 'production' |
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
declare lower; | |
declare once_per_bar; | |
input n = 14; | |
def gd_88 = high - high[1]; | |
def gd_96 = low[1] - low; | |
def gda_104; | |
def gda_108; |
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
import { withHandlers } from 'recompose' | |
export default withHandlers<{}, SelectionsProps>(() => ({ | |
handleMouse: () => ({ currentTarget: $parent, target, shiftKey, button }) => { | |
if (button || !(target instanceof HTMLElement)) { | |
return | |
} | |
const $rows = [].slice.call($parent.getElementsByClassName('row')) | |
const $first = $parent.querySelector('[data-checked]') |
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 set: number[] = [ | |
...Array(1 + (parseInt(process.argv[2], 10) || 10)).keys() | |
] | |
const graph = set | |
.reduce<number[][]>( | |
(acc, i) => (acc[i] = set.filter(j => j)) && acc.sort(), | |
[] | |
) | |
.map(g => g.sort((a, b) => a - b)) |
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 compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args))) |
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
// http://michalbe.blogspot.com.br/2013/03/javascript-less-known-parts-bitwise.html | |
// http://jsperf.com/bitwise-vs-math-object | |
// http://united-coders.com/christian-harms/results-for-game-for-forfeits-and-the-winner-is/ | |
// https://mudcu.be/journal/2011/11/bitwise-gems-and-other-optimizations/ | |
// https://dreaminginjavascript.wordpress.com/2009/02/09/bitwise-byte-foolish/ | |
// http://jsperf.com/math-min-max-vs-ternary-vs-if/24 | |
"use strict"; | |
var PI = Math.PI; |
NewerOlder