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
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
import Control.Monad.IO.Class | |
import Control.Monad.Trans.State | |
import Data.Word | |
import Foreign.C.Types | |
import Graphics.UI.GLUT as GL hiding (Window, createWindow, bitmap, get, renderer) | |
import SDL hiding (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
import requests | |
from bs4 import BeautifulSoup | |
def soupify(url): | |
page = requests.get(url) | |
return BeautifulSoup(page.text, 'html.parser') | |
parks = soupify('https://www.nps.gov/planyourvisit/fee-free-parks-state.htm').find_all('a') | |
for park in parks: |
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 Relativity exposing (main) | |
import Html exposing (..) | |
import Html.Attributes exposing (style, src, min, max, type_, value) | |
import Html.Events exposing (onClick, onInput, onMouseEnter, onMouseDown, onMouseUp) | |
type Msg | |
= SetMacro String | |
| SetMedium 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
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
module Main where | |
import Control.Applicative | |
import Data.Aeson | |
import Data.Char | |
import GHC.Generics | |
import Numeric |
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
-- Tree drawings | |
-- Left click and drag to pan the drawing | |
-- Right click and drag to zoom | |
-- install this by running `cabal install gloss` | |
-- You may need to install/update opengl | |
import Graphics.Gloss | |
-- Config variables for n-ary tree with k levels of depth |
NewerOlder