Skip to content

Instantly share code, notes, and snippets.

View curtiswilkinson's full-sized avatar

Curtis Tate Wilkinson curtiswilkinson

View GitHub Profile
@curtiswilkinson
curtiswilkinson / lang.hs
Last active February 5, 2018 23:28
lang
main : String -> String
main x => {
y = x + x
y
}
main : String -> String
main x => {
case x of {
| "hi" => "bye"
@curtiswilkinson
curtiswilkinson / Main.hs
Last active December 31, 2017 04:39
Together, with feeling
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
@curtiswilkinson
curtiswilkinson / Main.hs
Created December 31, 2017 04:11
Write file
module Main where
import System.IO
main :: IO ()
main = writeFile "filename.txt" "This is my content!"
@curtiswilkinson
curtiswilkinson / Main.hs
Created December 31, 2017 04:09
Sequence take input + print input
module Main where
import System.IO
main :: IO ()
main = do
str <- getLine -- Takes a line from console
putStrLn str -- Print the value we get
@curtiswilkinson
curtiswilkinson / Main.hs
Last active December 31, 2017 04:06
Sequenced putStrLn's
module Main where
import System.IO
main :: IO ()
main = do -- <- this is the magic right here
putStrLn "This prints first"
putStrLn "This prints second"
@curtiswilkinson
curtiswilkinson / Main.hs
Last active December 31, 2017 04:05
Basic putStrLn
module Main where
import System.IO
main :: IO ()
main = putStrLn "Hey! This does some IO stuff and prints to the console"
@curtiswilkinson
curtiswilkinson / .vimrc
Last active December 5, 2017 01:33
New attempt at a full vim transition
set nocompatible
filetype off
call plug#begin()
" Themes
Plug 'arcticicestudio/nord-vim'
Plug 'dracula/vim'
Plug 'https://github.com/skielbasa/vim-material-monokai'
@curtiswilkinson
curtiswilkinson / sublime.json
Created November 15, 2017 11:04
Sublime Config
{
"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
@curtiswilkinson
curtiswilkinson / .spacemacs
Last active November 13, 2017 10:02
Emacs Config
;; -*- 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
@curtiswilkinson
curtiswilkinson / main.cpp
Last active July 17, 2017 23:00
Overloading in C++ Example
#include <iostream>
using namespace std;
class printTheThing {
public:
void print(int integerThing) {
cout << "This is an Int";
}
void print(double floatThing) {