Notes on configuring ArchWSL on WSL2.
Edit %UserProfile%\.wslconfig:
[wsl2]
swap=0
localhostForwarding=trueNotes on configuring ArchWSL on WSL2.
Edit %UserProfile%\.wslconfig:
[wsl2]
swap=0
localhostForwarding=true| in_progress = 0 | |
| start_end_game = 1 | |
| game_over = 2 | |
| left=0 right=1 up=2 down=3 | |
| valid_moves = {left,right,up,down} | |
| function _init() | |
| player = {} | |
| player.x = flr(rnd(120)) |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
Inspired by my own pain and suffering of trying to add a simple chart to smashing
| $background-stale-color-1: #cc9999; | |
| $background-stale-color-2: #333333; | |
| $text-stale-color: #fff; | |
| @-webkit-keyframes status-stale-background { | |
| 0% { background-color: $background-stale-color-1; } | |
| 50% { background-color: $background-stale-color-2; } | |
| 100% { background-color: $background-stale-color-1; } | |
| } |
| #!/bin/bash | |
| { | |
| date_slug=$(date "+%y%m%d") | |
| image_filename="$PWD/images/$date_slug.jpg" | |
| cache_page_filename="$PWD/cache/ap$date_slug.html" | |
| function download_page() { | |
| if [ ! -f $cache_page_filename ]; then | |
| curl -# -L http://apod.nasa.gov/apod/ap$date_slug.html \ |
| <html i18n-values="dir:textdirection;lang:language" dir="ltr" lang="en"><head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, | |
| maximum-scale=1.0, user-scalable=no"> | |
| <title i18n-content="title">T-Rex Game</title> | |
| <style>/* Copyright 2014 The Chromium Authors. All rights reserved. | |
| Use of this source code is governed by a BSD-style license that can be | |
| found in the LICENSE file. */ | |
| a { |
| ## This is for the Dynamic Map Widget | |
| gem 'rest-client' |