Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
#!/bin/sh | |
# | |
# Setup a work space called `work` with two windows | |
# first window has 3 panes. | |
# The first pane set at 65%, split horizontally, set to api root and running vim | |
# pane 2 is split at 25% and running redis-server | |
# pane 3 is set to api root and bash prompt. | |
# note: `api` aliased to `cd ~/path/to/work` | |
# | |
session="work" |
#!/usr/bin/env bash | |
SED_SCRIPT=`echo '{\ | |
s/_\\$/$/g;\ | |
s/\\$BP\\$/\&/g;\ | |
s/\\$SP\\$/\@/g;\ | |
s/\\$LT\\$/</g;\ | |
s/\\$GT\\$/>/g;\ | |
s/\\$LP\\$/(/g;\ | |
s/\\$RP\\$/)/g;\ | |
s/\\$RF\\$/\\&/g;\ |
#! /usr/bin/perl | |
# | |
# to test: | |
# 1) run this script with either "accept" or "select-accept" as the argument | |
# (the script listens to 127.0.0.1:12345) | |
# 2) telnet localhost 12345 | |
# 3) if you see "accept failed", there is the thundering herd problem | |
# | |
# | |
use strict; |
use std::rc::Rc; | |
trait HKT<U> { | |
type C; // Current type | |
type T; // Type with C swapped with U | |
} | |
macro_rules! derive_hkt { | |
($t:ident) => { | |
impl<T, U> HKT<U> for $t<T> { |
#!/usr/bin/env python3 | |
from __future__ import division | |
from __future__ import print_function | |
from __future__ import absolute_import | |
from __future__ import unicode_literals | |
import sys | |
import json | |
import errno | |
import argparse |
package dk.im2b | |
import java.io.OutputStream | |
import java.net.ServerSocket | |
import java.net.Socket | |
import java.nio.charset.Charset | |
import java.util.* | |
import kotlin.concurrent.thread | |
in our opinion this — which we will call the "error handling problem” — remains the primary problem that we are trying to resolve.
I don't agree that this is the primary problem; it's one of many problems to resolve; Chaining (and thus not forcing temporaries), general composability, and working well with IDEs is among notable problems.
Syntactic Sugar Solution:
I think it is a stretch to call this syntactic sugar in the first place. The syntax await?
is composing await
+ ?
. In my view this is not enough semantic compression to be deserving of the description "syntactic sugar".