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
main : String -> String | |
main x => { | |
y = x + x | |
y | |
} | |
main : String -> String | |
main x => { | |
case x of { | |
| "hi" => "bye" |
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 where | |
import System.IO | |
main :: IO () | |
main = do | |
putStrLn "What would you like to call your file?" | |
filename <- getLine | |
putStrLn "What would you like inside your file?" | |
content <- getLine |
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 where | |
import System.IO | |
main :: IO () | |
main = writeFile "filename.txt" "This is my content!" |
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 where | |
import System.IO | |
main :: IO () | |
main = do | |
str <- getLine -- Takes a line from console | |
putStrLn str -- Print the value we get |
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 where | |
import System.IO | |
main :: IO () | |
main = do -- <- this is the magic right here | |
putStrLn "This prints first" | |
putStrLn "This prints second" |
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 where | |
import System.IO | |
main :: IO () | |
main = putStrLn "Hey! This does some IO stuff and prints to the console" |
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
set nocompatible | |
filetype off | |
call plug#begin() | |
" Themes | |
Plug 'arcticicestudio/nord-vim' | |
Plug 'dracula/vim' | |
Plug 'https://github.com/skielbasa/vim-material-monokai' |
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
{ | |
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Monokai.tmTheme", | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Boxy Monokai.sublime-theme", | |
"font_options": ["subpixel_antialias"], | |
"font_face": "Source Code Pro", | |
"font_size": 10 |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
dotspacemacs-distribution 'spacemacs |
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
#include <iostream> | |
using namespace std; | |
class printTheThing { | |
public: | |
void print(int integerThing) { | |
cout << "This is an Int"; | |
} | |
void print(double floatThing) { |
NewerOlder