The "integrate VIM with the system clipboard" feature does not work on OS X 10.8+ and VIM 7.3.
- Compile VIM from source
- Enable the system-clipboard integartion in .vimrc
("lotto" -> | |
("lotto-id" -> lotto.id) ~ | |
("winning-numbers" -> lotto.winningNumbers) ~ | |
("winners" -> | |
lotto.winners.map { w => | |
(("winner-id" -> w.id) ~ | |
("numbers" -> w.numbers))})) | |
// vs. |
> {-# OPTIONS -Wall -XMultiParamTypeClasses -XFunctionalDependencies -XTypeSynonymInstances #-} | |
> module Main where | |
8 people are standing on a west bank of a river and must cross to the | |
other side using a boat. However, | |
- the boat carries at most 2 people at a time, | |
- the father can't be left with the girls without the mother, | |
- the mother can't be left with the boys without the father, | |
- the prisoner can't be left with any family members without the police, |
var express = require('express'); | |
var port = process.env.PORT || 3000; | |
var app = express.createServer(); | |
app.get('/', function(request, response) { | |
response.sendfile(__dirname + '/index.html'); | |
}).configure(function() { | |
app.use('/images', express.static(__dirname + '/images')); | |
}).listen(port); |
public static IEnumerable<T> ToIEnumerable<T>(this IEnumerator<T> enumerator) { | |
if (enumerator != null) { | |
while (enumerator.MoveNext()) { | |
yield return enumerator.Current; | |
} | |
} | |
} | |
public static T[] ToArray<T>(this IEnumerator<T> enumerator) { | |
return ToIEnumerable<T>(enumerator).ToArray(); |
/* | |
MIT License | |
Copyright (c) 2020 Egor Nepomnyaschih | |
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 the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
//: [Previous](@previous) | |
import Foundation | |
import SwiftUI | |
import Combine | |
//: Current Value Subject is a value, a publisher and a subscriber all in one | |
let currentValueSubject = CurrentValueSubject<Bool, Never>(true) | |
print(currentValueSubject.value) |
Whenever the topic of Bitcoin's energy usage comes up, there's always a flood of hastily-constructed comments by people claiming that their favourite cryptocurrency isn't like Bitcoin, that their favourite cryptocurrency is energy-efficient and scalable and whatnot.
They're wrong, and are quite possibly trying to scam you. Let's look at why.
There are plenty of intricate and complex articles trying to convince you that cryptocurrencies are the future. They usually heavily use jargon and vague terms, make vague promises, and generally give you a sense that there must be something there, but you always come away from them more confused than you were before.