babel-plugin-add-module-exports
generates an incorrect bundle if you use ES modules in the latest versions of Webpack 2 (at least in 2.1.0-beta.27
and .28
). Here’s what to do.
{
"plugins": [
- "add-module-exports"
]
}
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
^j:: | |
Click | |
Sleep, 500 | |
Send, ^p | |
Sleep, 1000 |
public IObservable<int> ObservableCounter(int count, int delay) | |
{ | |
return Observable.Range(0, count).Zip( | |
Observable.Interval(TimeSpan.FromMilliseconds(delay)), (item, _) => item); | |
} |
@font-face { | |
font-family: 'ABeeZee'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('ABeeZee'), local('ABeeZee-Regular'), url(http://fonts.gstatic.com/s/abeezee/v9/JYPhMn-3Xw-JGuyB-fEdNA.ttf) format('truetype'); | |
} | |
@font-face { | |
font-family: 'Abel'; | |
font-style: normal; | |
font-weight: 400; |
/** | |
* External dependencies | |
*/ | |
import React, { PureComponent, PropTypes } from 'react'; | |
import { AutoSizer, Table } from 'react-virtualized'; | |
/** | |
* Internal dependencies | |
**/ | |
import getDefaultColumns from './columns'; // some columns for RV Table |
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2 | |
/* | |
* Copyright (c) 2012 Arvin Schnell <arvin.schnell@gmail.com> | |
* Copyright (c) 2012 Rob Clark <rob@ti.com> | |
* Copyright (c) 2017 Miouyouyou <Myy> <myy@miouyouyou.fr> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation |
// https://github.com/graphql-dotnet/graphql-dotnet | |
public static class GraphQLStarWarsExtension | |
{ | |
public static void RegisterGraphQLTypes(this ContainerBuilder builder) | |
{ | |
builder.RegisterInstance(new DocumentExecuter()).As<IDocumentExecuter>(); | |
builder.RegisterInstance(new DocumentWriter()).As<IDocumentWriter>(); | |
builder.RegisterInstance(new StarWarsData()).As<StarWarsData>(); |
babel-plugin-add-module-exports
generates an incorrect bundle if you use ES modules in the latest versions of Webpack 2 (at least in 2.1.0-beta.27
and .28
). Here’s what to do.
{
"plugins": [
- "add-module-exports"
]
}
namespace Analogy | |
{ | |
/// <summary> | |
/// This example shows that a library that needs access to target .NET Standard 1.3 | |
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
/// </summary>INetCoreApp10 | |
class Example1 | |
{ | |
public void Net45Application(INetFramework45 platform) |
// Now your action creators can pull utilities our of their thunk api! | |
export function fetchUser(id) { | |
return ({api, dispatch}) => | |
api.fetch(`users/${id}`).then(resp => | |
dispatch({action: FETCH_USER, user: resp.body.data})); | |
} |
This is a simple LINQPad script I wrote one day to load test some large SQL servers. Maybe it's useful to someone. The basic premise is defining your queries once, including which ID patterns to fetch (at the bottom), and load test a mixture. The script defines everything needed in one place, then fires up the command-line linqpad runner to run many queries at once.
Params up top:
const string LinqPadPath = @"C:\Linqpad\lprun.exe";
const bool runSequential = false;
const int defaultThreads = 1;
const int defaultIterations = 2000;