This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Actions dashboard", | |
"builds": [ | |
{ | |
"owner": "actions", | |
"repo": "starter-workflows", | |
"ref": "main", | |
"include_prs": true | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Linear Escape" by Jiayu Yi | |
Dead End is a dark room. "[if unvisited]You wake up in[otherwise]The room you woke up in is[end if] a small room with a single exit to the south." | |
A lit thing called a torch is in the Dead End. | |
The strangely-shaped rock is carried by the player. | |
South of the Dead End is the Overgrown Chamber. The Overgrown Chamber is a dark room. "You find yourself in a large chamber. The walls are covered with vegetation, and [sturdy vines] hang from the ceiling. The middle is occupied by a large, [ceremonial brazier]. [if the ceremonial brazier is lit]There are exits to the north and south.[otherwise]There is an exit to the north, but a stone door blocks the way south." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule SSEDemoPlug do | |
use Plug.Router | |
plug Plug.Logger | |
plug(:match) | |
plug(:dispatch) | |
get "/" do | |
html = """ | |
<ul></ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:- use_module(library(clpfd)). | |
zebra(Colors, Nationalities, Pets, Beverages, Cigarettes) :- | |
Colors = [Red, Green, Ivory, Yellow, Blue], | |
Nationalities = [English, Spanish, Ukrainian, Norweigian, Japanese], | |
Pets = [Dog, Snails, Fox, Horse, Zebra], | |
Beverages = [Coffee, Tea, Milk, Orange, Water], | |
Cigarettes = [Old, Kools, Chesterfields, Lucky, Parliaments], | |
Colors ins 1..5, | |
Nationalities ins 1..5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check if the working tree is clean. | |
# The working tree is clean if the output of `git status --porcelain` is empty. | |
[ -z "$(git status --porcelain)" ] || echo "Working tree not clean." | |
# Check if there are any stashes. | |
# There are no stashes if the output of `git stash list` is empty. | |
[ -z "$(git stash list)" ] || echo "Stash list not empty." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/demos/basics.scm b/demos/basics.scm | |
index 65280b6..a9b16f9 100644 | |
--- a/demos/basics.scm | |
+++ b/demos/basics.scm | |
@@ -150,20 +150,31 @@ | |
(define smiley1 (make-obj (make-smile-surf (make-random-color)) 300 300)) | |
(define smiley2 (make-obj (make-smile-surf (make-random-color)) 500 300)) | |
- | |
+(define renderer (sdl2:create-renderer! window -1 (list 'accelerated))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rows(puzzle): | |
return [puzzle[9 * i:9 * i + 9] for i in range(9)] | |
def columns(puzzle): | |
return [puzzle[i::9] for i in range(9)] | |
def boxes(puzzle): | |
return [puzzle[i:i + 3] + |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh - | |
sleep_blocker=$(pmset -g | grep -m1 "sleep prevented by" | sed -E 's/.+sleep prevented by (.+)\)$/\1/') | |
if [ ! -z "$sleep_blocker" ]; then | |
osascript -e "display notification \"$sleep_blocker\" with title \"Sleep prevention warning\" subtitle \"The following processes are preventing sleep:\"" | |
fi |
NewerOlder