Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View softprops's full-sized avatar
®️
Rustling

Doug Tangren softprops

®️
Rustling
View GitHub Profile
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active March 18, 2024 14:57
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@Matthias247
Matthias247 / async_await_cancellation.md
Created May 28, 2019 06:09
Async/Await - The challenges besides syntax - Cancellation

Async/Await - The challenges besides syntax - Cancellation

This is the second article in a series of articles around Rusts new async/await feature. The first article about interfaces can be found here.

In this part of the series we want to a look at a mechanism which behaves very different in Rust than in all other languages which feature async/await support. This mechanism is Cancellation.

@acmei
acmei / gist:dd8aaa58ed76db05f7e827c1c53f4047
Last active July 21, 2017 19:28
Editor Settings for Web Engineers
@erez-rabih
erez-rabih / Makefile
Last active March 11, 2016 20:07
Kubernetes deployment makefile
APP_IMAGE_TAG=$(shell git log -n 1 --pretty=format:%h server)
NGINX_IMAGE_TAG=$(shell git log -n 1 --pretty=format:%h nginx)
KUBE_TAG=$(shell git log -n 1 --pretty=format:%h kube)
RC_TAG=$(APP_IMAGE_TAG)$(NGINX_IMAGE_TAG)$(KUBE_TAG)
APP_IMAGE=my-repo/api-app:$(APP_IMAGE_TAG)
NGINX_IMAGE=my-repo/api-nginx:$(NGINX_IMAGE_TAG)
OLD_RC=$(shell kubectl get rc -l app=api -o template '--template={{(index .items 0).metadata.name}}')
@colin-kiegel
colin-kiegel / cargo-kcov
Last active November 28, 2015 01:44
cargo-kcov
#!/bin/bash
# original source https://users.rust-lang.org/t/tutorial-how-to-collect-test-coverages-for-rust-project/650
# modified version https://gist.github.com/colin-kiegel/e3a1fea04cd3ad8ed06d
PKGID="$(cargo pkgid)"
[ -z "$PKGID" ] && exit 1
ORIGIN="${PKGID%#*}"
ORIGIN="${ORIGIN:7}"
PKGNAME="${ORIGIN##*/}"
### Example #1 ###
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2e23d01384ac iperf-v1:latest "/usr/bin/iperf -s" 10 minutes ago Up 10 minutes 5001/tcp, 0.0.0.0:32768->5201/tcp compassionate_goodall
# Append the container ID (CID) to the end of an inspect
$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' 2e23d01384ac
172.17.0.1
### Example #2 ###
# Add -q to automatically parse and return the last CID created.
@rockbot
rockbot / gist:9b7cfb14d4f2463e998b
Last active August 29, 2015 14:16
JSConf Community Research

Hi JS Meetup Organizers!

The JSConf team is doing a bit of research about JavaScript-focused meetup groups around the country.

We're curious to know what meetups look like in cities around the US - if you've got a moment, we'd love it if you could fill out a small survey!

Of greatest interest to us is what kind of talks have been given at your meetup in 2014. We want to know what talks were given and who gave those talks. I realize this might be a bit of a hassle to put together, so at a minimum, if you have a link we can look into it directly :)

As a bonus, we're raffling off a JSConf ticket, which will go to one lucky organizer (but you'll only be entered if you fill out a form ;-)). To be part of the raffle, please let us know about your meetup group by March 15, 2015. (If you win the free ticket and already purchased a ticket, JSConf will refund you! Or you can transfer it to a friend!)

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@RomkeVdMeulen
RomkeVdMeulen / secure_expose_docker.sh
Last active September 4, 2019 19:28
Script for setting up secure public connection for a Docker daemon
#!/bin/bash
if [ $# -lt 2 ]; then
echo "Usage: $0 [domain to connect] [password]"
exit 1
fi
set -e
red='\033[0;31m'
@johnynek
johnynek / AliceInAggregatorLand.scala
Last active January 24, 2024 19:38
A REPL Example of using Aggregators in scala
/**
* To get started:
* git clone https://github.com/twitter/algebird
* cd algebird
* ./sbt algebird-core/console
*/
/**
* Let's get some data. Here is Alice in Wonderland, line by line
*/