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
| export default function ( | |
| Component: typeof SvelteComponent, | |
| events?: { [svelteEvent: string]: string } | |
| ) { | |
| return class { | |
| $element: Element[]; | |
| initialProps: { [key: string]: any }; | |
| component: SvelteComponent; | |
| constructor($element) { | |
| 'ngInject'; |
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
| <div class="px-2 flex flex-col"> | |
| <!-- Selected: adds bg-gray-200, removes bg-gray-100 --> | |
| <!-- First row: Removes mt-1 --> | |
| <div class="bg-gray-200 rounded-md px-2"> | |
| <span>Content</span> | |
| <!-- Selected: adds bg-gray-100, removes bg-gray-200 --> | |
| <span class="ml-auto bg-gray-100">5</span> | |
| </div> |
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
| input length = 60; | |
| def xx = -GetEventOffset(Events.EARNINGS); | |
| def yy = Sum(HasEarnings(type = EarningTime.AFTER_MARKET), length)[-length + 1] > 0; | |
| plot x = xx + yy * .5; | |
| x.AssignValueColor( if x <= 1 then Color.LIGHT_RED else Color.DARK_GRAY); |
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 actix_service::{Service, Transform}; | |
| use actix_web::{dev::ServiceRequest, dev::ServiceResponse, Error}; | |
| use futures::future::{ok, FutureResult}; | |
| use futures::{Future, Poll}; | |
| use slog::info; | |
| // There are two step in middleware processing. | |
| // 1. Middleware initialization, middleware factory get called with | |
| // next service in chain as parameter. | |
| // 2. Middleware's call method get called with normal request. |
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
| import { abc } from './redundant_export'; | |
| abc(1, 2, 3); |
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
| #!/bin/bash | |
| # Run ssh and then disable mouse reporting. This is so that mouse scrolling | |
| # will work properly in the local session if a tmux session drops. | |
| /usr/bin/ssh "$@" | |
| EXITCODE=$? | |
| if tty -s; then | |
| printf '\e[?1000l' | |
| fi |
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
| /* | |
| Go's Cap'n Proto code generator needs some extra directives, but I don't want to require that | |
| my Rust build environment has the relevant Go include files available. The script below filters | |
| out the Go directives before sending the resulting files to the compiler to make this work. | |
| */ | |
| extern crate capnpc; | |
| use std::env; | |
| use std::path::PathBuf; |
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 node | |
| "use strict"; | |
| var fs = require("fs"); | |
| var vm = require("vm"); | |
| var sandbox = { value: null }; | |
| var context = vm.createContext(sandbox); | |
| function convert(contents) { | |
| vm.runInContext('value = ' + contents, context); |
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
| // DO NOT EDIT! | |
| // Code generated by ffjson <https://github.com/pquerna/ffjson> | |
| // DO NOT EDIT! | |
| package main | |
| import ( | |
| importedinceptionpackage "bitbucket.org/freshmedicalleads/datafuse/writer" | |
| "bitbucket.org/freshmedicalleads/datafuse/vendor/github.com/pquerna/ffjson/inception" | |
| // "github.com/pquerna/ffjson/inception" |
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
| /* | |
| * Copyright 2015 Databricks, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| * not use this file except in compliance with the License. You may obtain | |
| * a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |