dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync
loadkeys <your-keymap>
<?php declare(strict_types=1); | |
class Test | |
{ | |
private $arr = []; | |
public function __construct() | |
{ | |
for ( $i = 0; $i < 10000; $i++ ) | |
{ |
#!/usr/bin/env python3 | |
import os | |
import subprocess | |
import sys | |
dir_path = os.path.dirname(os.path.realpath(__file__)) | |
subprocess.call('cat ' + sys.argv[-1] + ' | ' | |
+ os.path.join(dir_path, 'detex.py') + ' | ' |
import * as React from 'react'; | |
import { compose, lifecycle, pure, StateHandler, StateHandlerMap, withStateHandlers } from 'recompose'; | |
import { Message, Transition } from 'semantic-ui-react'; | |
import './FlashMessage.css'; | |
export interface FlashMessageProps { | |
message: string; | |
isWarning?: boolean; | |
} |
[27-May-2014 14:10:18] WARNING: [pool rebuy] child 3963 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'test exception' in /foo/htdocs/index.php:4" |
FROM codeship/ruby | |
MAINTAINER Dave Mox <dave.e.mox@gmail.com> | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
git \ | |
vim | |
COPY Makefile /src/ |
root@rizzo ~$ uname -a | |
FreeBSD rizzo.heimdall.pl 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Wed Mar 13 21:02:32 CET 2013 root@rizzo.heimdall.pl:/sys/amd64/compile/rizzo amd64 | |
root@rizzo ~$ kldload opensolaris | |
root@rizzo ~$ kldload zfs | |
root@rizzo ~$ kldload geom_eli | |
root@rizzo ~$ gpart destroy -F da0 | |
da0 destroyed | |
root@rizzo ~$ gpart create -s gpt da0 | |
da0 created | |
root@rizzo ~$ gpart add -t freebsd-zfs -a 4096 da0 |
<?php | |
declare(strict_types = 1); | |
namespace Acme\Infrastructure\MongoDb; | |
use MongoDB\Client; | |
use MongoDB\Collection; | |
class MongoConnection |
Important: At the time of writing (2019-11-11) Immutable.js is effectively abandonware, so I can no longer recommend anyone to follow the advice given here. I'll leave the article here for posterity, since it's still getting some traffic.
Functional programming principles and with it immutable data are changing the way we write frontend applications. If the recent de-facto frontend stack of React and Redux feels like it goes perfectly together with immutable data, that's because it's specifically designed for that.
There's several interesting implementations of immutable data for JavaScript, but here I'll be focusing on Facebook's own Immutable.js, and specifically on one of i