Skip to content

Instantly share code, notes, and snippets.

View jesuswasrasta's full-sized avatar
💭
Releasing tomorrow's legacy code, today

Ferdinando Santacroce jesuswasrasta

💭
Releasing tomorrow's legacy code, today
View GitHub Profile

The brain does not like to work. It's a lot of work to have a true picture of the world live inside the brain. So the brain doesn't do that as much as you (it) thinks.

Some of the ways the brain avoids work may give help to people who show computers how to do the work computers do. Here are the ways I will talk about:

  • Have lots of little boxes of work. Each box looks for just one thing and knows how to do just one thing. It knows just enough to see the one thing and make the thing it knows how to do happen.

  • Many boxes are looking at the same time. The brain is always ready to do something else.

  • If two boxes both know the same thing or two, you can make another box to hold what's shared. But you only do that if it makes there be less work. Do that enough and you may get a true picture of part of the world. But most of the time you don't.

@arialdomartini
arialdomartini / conways.md
Last active March 25, 2024 06:58
Conway's Game of Life

Selezionati

No-s

  • No mutable state
  • no loops (for, while)
  • no statements
  • no mouse
  • no primitives
  • no else (only guards)
  • no conditionals
@camullen
camullen / installation.md
Created December 10, 2022 23:52
KDE Install on WSL2
@jcwillox
jcwillox / toolbox-context-menu.ps1
Last active May 30, 2024 02:01
PowerShell script to automatically add context menu entries for Jetbrains IDEs
<#
.SYNOPSIS
Automatically add context menu entries for Jetbrains IDEs.
.PARAMETER Name
The name or names of the IDEs to add context menus for, use -List to see available IDEs.
.PARAMETER BasePath
The path to the Toolbox apps directory, defaults to "$env:LOCALAPPDATA\JetBrains\Toolbox\apps".
.PARAMETER Global
Install context menu entries in HKLM registry (machine wide), requires running as administrator.
.PARAMETER Force
@ibrahimhajjaj
ibrahimhajjaj / open_folder_in_PhpStorm_2020.bat
Last active May 27, 2024 10:10
Add Open Folder in PHPStorm to Windows Context Menu
@echo off
SET PhpStormPath=C:\Program Files\JetBrains\PhpStorm 2020.3.3\bin\phpstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_SZ /v "" /d "Open in PhpStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /f
echo Adding within a folder entries
@DianaPerkinsDesign
DianaPerkinsDesign / gist:45844e7012d24102673270f669185a4b
Last active December 5, 2021 12:01
Board Game Recommendations

Playing at a Distance

First of all, there are some great digital options for playing games. Some work well remotely, some support local play on one device. Some are free, some cost money. Rather than list/compare all the options, here are some to check out on your own:

  • [Tabletop Simulator][]
  • [Tabletopia][]
  • [Board Game Arena][]
  • [Yucata][]

No Printer Required

@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active June 27, 2024 16:26
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

#!/bin/bash
set -o pipefail
set -s
#####
# This script will take a fresh KDE Neon install and make it suitable for getting stuff done.
# It may not work against another Ubuntu Installation type.
# Run it with: bash <(wget -qO- https://git.io/vSe77)
#####
@xpmatteo
xpmatteo / string-calculator-kata-test.cbl
Last active April 15, 2016 07:32
The String Calculator Kata in Cobol :)
IDENTIFICATION DIVISION.
PROGRAM-ID. StringCalculatorTest.
DATA DIVISION.
WORKING-STORAGE SECTION.
*> constants
01 newline PIC X VALUE x'0a'.
*> add parameters
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active June 26, 2024 13:23
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)