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
" Basic config | |
set autoread " Automatically reload modified buffer | |
set autowriteall " Automatically write files when some commands occur | |
set backupcopy=yes " Fix Hot Module Reloading for parcel js | |
set colorcolumn=80 " Colour column 80 | |
set cursorcolumn " Highlight the column currently under cursor | |
set cursorline " Highlight the line currently under cursor | |
set expandtab " Use spaces instead of tabs | |
set foldlevel=20 " Folds with a higher level will be closed | |
set foldmethod=indent |
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
# Panda | |
include image | |
background = empty-scene(200, 200) | |
ear = circle(12, "solid", "black") | |
head = underlay-xy(ear, -15, -5, | |
underlay-xy(ear, -140, -5, |
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
(require 2htdp/universe) | |
(require 2htdp/image) | |
;; Space Invaders | |
;; Constants: | |
(define WIDTH 300) | |
(define HEIGHT 500) |
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
function fish_prompt --description 'Write out the prompt' | |
set -l color_cwd | |
set -l suffix | |
switch "$USER" | |
case root toor | |
if set -q fish_color_cwd_root | |
set color_cwd $fish_color_cwd_root | |
else | |
set color_cwd $fish_color_cwd | |
end |
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
module Main exposing (main) | |
import Html as Html exposing (..) | |
import Http as Http | |
import Json.Decode as Decode exposing (Decoder) | |
type alias Model = Maybe (List License) | |
type Msg = | |
UpdateLicenses (Result Http.Error (List License)) |
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
module Main exposing (main) | |
import Html as Html exposing (..) | |
import Http as Http | |
type alias Model = String | |
type Msg = | |
UpdateLicenses (Result Http.Error String) |
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
module Alphabet exposing (..) | |
import Char | |
capitalLetters : List Char | |
capitalLetters = | |
List.range (Char.toCode 'A') (Char.toCode 'Z') | |
|> List.map Char.fromCode |
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
%% Based on code from | |
%% Erlang Programming | |
%% Francecso Cesarini and Simon Thompson | |
%% O'Reilly, 2008 | |
%% http://oreilly.com/catalog/9780596518189/ | |
%% http://www.erlangprogramming.org/ | |
%% (c) Francesco Cesarini and Simon Thompson | |
-module(gf). | |
-behaviour(gen_server). |
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
%% Based on code from | |
%% Erlang Programming | |
%% Francecso Cesarini and Simon Thompson | |
%% O'Reilly, 2008 | |
%% http://oreilly.com/catalog/9780596518189/ | |
%% http://www.erlangprogramming.org/ | |
%% (c) Francesco Cesarini and Simon Thompson | |
% Using the observer, set up a system of frequency server and at least two clients, and kill the frequency server when the clients are in possession of a frequency – you can make the clients “sleep” at any point using the timer:sleep/1 function – observe that the clients are killed too. | |
% How would you modify the clients so that they are not affected by the server terminating? How could you then shut down the entire system if you needed to? |
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
-module(billing). | |
-export([ get_data/0 | |
, get_barcodes/0 | |
, get_bill/3 | |
, print_bill/1 | |
, test_print_bill/0 | |
, test_print_bill2/0 | |
, test_print_bill3/0 | |
]). |
NewerOlder