A script to fix EDID problems on external monitors in macOS.
-
Connect only the problem display.
-
Create this directory structure (if it doesn't already exist):
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
query
mutation
Reference implementation also adds the third type: subscription
. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
using System; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
namespace Middlewares | |
{ | |
/// <summary> | |
/// Experimental compression middleware for self-hosted web app |
How to finish/polish the integration between msbuild based .net core sdk and f# (fsc, FscTask, etc)
This doc contains current issues i known and a proposed solution (already implemented in a PR, and works) on how to fix these (obv ihmo).
AFAIK all the solution i choose are based on where dotnet/sdk
, microsoft/msbuild
and dotnet/cli
are going with development, and
updated to latest release (preview4), and vnext in development now.
class Success(object): | |
def __init__(self, value): | |
self.value = value | |
class Error(object): | |
def __init__(self, value): | |
self.value = value | |
class wrapper(object): | |
def __init__(self, result): |
import { right, either, left } from 'fp-ts/lib/Either' | |
import { HKTAs, HKT2As, HKT2, HKTS, HKT, HKT2S } from 'fp-ts/lib/HKT' | |
import { Monad } from 'fp-ts/lib/Monad' | |
import { option, some } from 'fp-ts/lib/Option' | |
function Do<M extends HKT2S>(m: Monad<M>): <L, A>(generator: () => Iterator<HKT2<M, L, A>>) => HKT2As<M, L, A> | |
function Do<M extends HKTS>(m: Monad<M>): <A>(generator: () => Iterator<HKT<M, A>>) => HKTAs<M, A> | |
function Do<M extends HKTS>(m: Monad<M>): <A>(generator: () => Iterator<HKT<M, A>>) => HKT<M, A> { | |
return <A>(generator: () => Iterator<HKT<M, A>>): HKT<M, A> => { | |
const iterator = generator() |
The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.
Vist iTerm2 homepage or use brew install iterm2-beta
to download the beta. Thanks @stefanwascoding.
switch_automatic.py
to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch
with:mkdir -p ~/.config && touch ~/.config/ssh-agent.pid
ssh-agent-manage.sh
into your .bashrc
or .bash_profile
or similarkillall -9 ssh-agent
This snippet, when included in .bashrc
, will ensure that your session has a working ssh-agent
with all your ssh keys loaded into it. It does this without creating separate ssh-agent
processes by:
import * as O from 'fp-ts/Option' | |
import * as IO from 'fp-ts/IO' | |
import * as T from 'fp-ts/Task' | |
import * as A from 'fp-ts/Array' | |
import { HKT, Kind, URIS } from 'fp-ts/HKT' | |
import { Monad, Monad1 } from 'fp-ts/Monad' | |
import { pipe } from 'fp-ts/function' | |
const _: any = function* (x: any): any { | |
return yield x |