Skip to content

Instantly share code, notes, and snippets.

View Jim-Holmstroem's full-sized avatar
💭
Coding

Jim Holmström Jim-Holmstroem

💭
Coding
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript;" src="main.js"></script>
</head>
<body>
<script type="text/javascript;">
var Main = PS.Main;
Main.getChallenge(function (a) {document.write(a.value0.value0.challenge);})();
module Main ( main
, getChallenge
, Challenge
) where
import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, log, logShow)
import Control.Monad.Except
module Main where
import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, log, logShow)
import Control.Monad.Except
import Math (sqrt)
import Control.Plus (empty)
module Main where
import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, log, logShow)
import Control.Monad.Except
import Math (sqrt)
import Control.Plus (empty)
#!/usr/bin/env python2
from __future__ import print_function, division
"""
Made for: "PlayStation 3 Dual Shock Controller"
Based on:
https://gist.github.com/rdb/8864666
"""
#!/usr/bin/env python2
from __future__ import print_function, division
"""
Made for: "PlayStation 3 Dual Shock Controller"
Based on:
https://gist.github.com/rdb/8864666
"""
#!/usr/bin/env python2
from __future__ import print_function, division
"""
Made for: "PlayStation 3 Dual Shock Controller"
Based on:
https://gist.github.com/rdb/8864666
"""
from __future__ import print_function, division
"""
Based on:
https://gist.github.com/rdb/8864666
"""
import os, struct, array
from fcntl import ioctl
@Jim-Holmstroem
Jim-Holmstroem / gist:061647f469d6df19de3b795a73bdbb6f
Last active February 5, 2017 19:30
Setup Neural Network Controlled RC
git clone https://github.com/adafruit/Adafruit_Python_PCA9685.git
modprobe i2c-dev
# testing joystick
pacman -S linuxconsole (jstest etc.)
@Jim-Holmstroem
Jim-Holmstroem / main.hs
Last active April 5, 2021 07:35
Simple and Hacky Stack Machine in Haskell
{-# LANGUAGE OverloadedStrings #-}
import Prelude hiding (Word)
import Data.Maybe
data Stack a = Stack [a] deriving
(Show)
empty :: Stack a
empty = Stack []