"use client"; | |
import { useState } from "react"; | |
export default function Page() { | |
const [noCount, setNoCount] = useState(0); | |
const [yesPressed, setYesPressed] = useState(false); | |
const yesButtonSize = noCount * 20 + 16; | |
const handleNoClick = () => { | |
setNoCount(noCount + 1); |
I was drawn to programming, science, technology and science fiction | |
ever since I was a little kid. I can't say it's because I wanted to | |
make the world a better place. Not really. I was simply drawn to it | |
because I was drawn to it. Writing programs was fun. Figuring out how | |
nature works was fascinating. Science fiction felt like a grand | |
adventure. | |
Then I started a software company and poured every ounce of energy | |
into it. It failed. That hurt, but that part is ok. I made a lot of | |
mistakes and learned from them. This experience made me much, much |
#!/usr/bin/env bash | |
# fetch_nike_puls_all_activities.bash | |
# A simple bash script to fetch all activities and metrics from NikePlus. | |
# See `nike_plus_api.md` for the API details. | |
readonly bearer_token="$1" | |
if [[ -z "$bearer_token" ]]; then | |
echo "Usage: $0 bearer_token" | |
exit |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
// In languages like Python and Haskell, we can write list comprehension syntax like | |
// super simply to generate complex lists. Below, for example, we find all numbers that are | |
// the product of two sides of a triangle. | |
// [a * b | a <- [1..10], b <- [1..10], c <- [1..10], a * a + b * b == c * c] | |
// Why is this called nondeterministic computation? Because we essentially try ALL possible combinations | |
// of these values (a,b) and--you can imagine--run them all simultanously and get the result that matches the predicate. | |
// Now, obviously, this doesn't all happen at the same time, but that's the idea behind the nondeterminism. | |
// Let's examine how we can get a similiar result in Swift! We'll start super simple and work |
Rich Hickey • 3 years ago
Sorry, I have to disagree with the entire premise here.
A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.
Mastery comes from a combination of at least several of the following:
I bought (a few) Wireless-N WiFi adapters from Ebay to enable WiFi on my OpenELEC-featured Raspberry Pi. I was hoping it would work out-of-the-box, but that wasn't true. Some attempts such as modprobe rt2x00usb
did not work as expected because it's a totally different chipset.
The output of lsusb
:
...
Bus 001 Device 004: ID 148f:7601 Ralink Technology, Corp.
...
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
@book { girard1989, | |
author = "Jean-Yves Girard and Yves Lafont and Paul Taylor", | |
title = "Proofs and Types", | |
publisher = "Cambridge University Press", | |
year = "1989", | |
isbn = "978-0521371810" } | |
@book { barendregt1984 | |
author = "Henrik P. Barendregt", | |
title = "The Lambda Calculus: Its Syntax and Semantics", |