This file contains 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
on: | |
push: | |
jobs: | |
print: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Running!" |
This file contains 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 | |
while getopts 'l:' opt; do | |
case $opt in | |
l) branch=$OPTARG ;; | |
*) exit 1 ;; | |
esac | |
done | |
if [[ -n $branch ]]; then |
This file contains 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
% Solarized colours for slrn | |
color article default default | |
color author default default bold | |
color boldtext default default bold | |
color box default black | |
color cursor brown black | |
color date green default | |
color description brightblue default | |
color error red default | |
color frame white blue |
This file contains 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/perl | |
# Reads number of words $n from first line of input, the $n words and finally | |
# the scrabble letters provided. Using a smart grep and a Schwartzian Transform, | |
# the list of words is filtered (possible to be built from letters provided?) | |
# and then sorted by a) scrabble score and b) order of appearance in list. | |
use strict; | |
use warnings; | |
use 5.020; |
This file contains 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
// Chapter 12, exercise 01: draw rectangle as Rectangle and Polygon | |
#include "../lib_files/Simple_window.h" | |
#include "../lib_files/Graph.h" | |
// draw rectangle as Rectangle (blue) and as Polygon (red) | |
void ex01(Simple_window& win) | |
{ | |
Graph_lib::Rectangle rect(Point(100,100),150,100); | |
rect.set_color(Color::blue); |