This file contains hidden or 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 Data.Array ((..), reverse) | |
import Data.Int (toNumber) | |
import Flare (UI, radioGroup) | |
import Flare.Drawing (runFlareDrawing) | |
import Graphics.Drawing | |
import Graphics.Drawing.Font (font, sansSerif, bold) | |
import Math (cos, sin, pi) | |
import Prelude |
This file contains hidden or 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 Prelude | |
import Data.Maybe | |
import Control.Monad.Eff | |
import Graphics.Canvas as C | |
import Signal as S | |
import Signal.DOM as S |
This file contains hidden or 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 UtilsTest exposing (suite) | |
import Test exposing (..) | |
import Expect | |
import Utils exposing (..) | |
suite : Test | |
suite = | |
describe "utils" |
This file contains hidden or 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
autoload -U colors && colors | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' stagedstr '%F{green}•' | |
zstyle ':vcs_info:*' unstagedstr '%F{yellow}•' | |
zstyle ':vcs_info:*' check-for-changes true | |
zstyle ':vcs_info:*' enable git svn | |
theme_precmd () { | |
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { |
This file contains hidden or 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
// simple observer (pubsub) implementation | |
define(["underscore", "base/classex", "util/logging"], function(_, Class, Logging) { | |
var PubSub = Class.extend({}); | |
PubSub._topics = function() { | |
if (!window.pubsub) { | |
window.pubsub = {}; | |
} | |
return window.pubsub; |
This file contains hidden or 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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |