Skip to content

Instantly share code, notes, and snippets.

View mmaz's full-sized avatar

Mark Mazumder mmaz

View GitHub Profile
@mightybyte
mightybyte / WidgetTypes.hs
Last active May 30, 2017 22:09
FRP Widgets
data WidgetConfig t a
= WidgetConfig { _widgetConfig_setValue :: Event t a
, _widgetConfig_initialValue :: a
, _widgetConfig_attributes :: Dynamic t (Map String String)
}
makeLenses ''WidgetConfig
instance (Reflex t, Default a) => Default (WidgetConfig t a) where
def = WidgetConfig { _widgetConfig_setValue = never
@arkival
arkival / movingfiles.md
Last active May 6, 2020 09:53
Getting your code onto the Intel Edison

Getting your code onto the Intel Edison

All of the integrated environments of the Intel Edison will copy your executable from your development PC to the Intel Edison. If you want to develop outside of these environments, however, you will have to copy the code over yourself. Here are several solutions that don't involve creating a custom flash image.

This gist assumes that you are able to, at minimum, access the Edison console through USB. Some methods require additional connectivity. There are two basic approaches. Network methods are for when you have access to Edison over wifi, and the sneaker net methods are for when you don't.

Network Methods

If you have wifi configured, there are other ways of getting your files onto the Edison. None of these methods require the installation of any other software onto the Edison. If you can SSH into the Edison over wifi, then these methods will work.

How to install latest GHC 7.8.4 + cabal 1.22 on intel edison w/ ubi linux

ghc

ubilinux prerequisites

# for untar later
apt-get install bzip2
# probably all needed

apt-get install freeglut3 freeglut3-dev -y

@paf31
paf31 / 24days.md
Last active August 8, 2023 05:53
24 Days of PureScript

This blog post series has moved here.

You might also be interested in the 2016 version.

@yantonov
yantonov / install-ghc-ubuntu.md
Last active June 11, 2020 09:20
How to install latest GHC from source + latest stack + cabal + cabal-install on ubuntu

How to install GHC from source + latest stack + cabal + cabal-install on ubuntu

for your convinience this instuction is available as:
gist
git repo

preferred way install stack than install ghc

stack (package manager and build tool, preferrered way to manage dependencies)

# settings
@gitaarik
gitaarik / git_submodules.md
Last active September 14, 2024 13:38
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.