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 java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.io.FileOutputStream; | |
import java.util.zip.GZIPOutputStream; | |
import java.util.zip.GZIPInputStream; | |
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
-- file: fctrl.hs | |
-- http://www.codechef.com/problems/FCTRL/ | |
{-# LANGUAGE BangPatterns #-} | |
{-# OPTIONS_GHC -O2 #-} | |
module Main where | |
import qualified Data.ByteString.Char8 as S | |
import IO | |
main :: IO () |
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
set editing-mode vi | |
set blink-matching-paren on | |
set completion-ignore-case on | |
tab: complete |
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
defn Y | |
"Y combinator." | |
[f] | |
((fn [x] | |
(f (fn [y] ((x x) y)))) | |
(fn [x] | |
(f (fn [y] ((x x) y)))))) | |
(defn Y | |
"Y combinator." |
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
(->> (read) (eval) (println) (while true)) |
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
(* | |
-------- WHAT THIS DOES -------- | |
Enables you to externally open a specific file in eclipse, and go to some line | |
that is, makes a link with href of | |
openineclipse://open?url=file:///absolute/path/tofile.ext&line=5 | |
open absolute/path/tofile.ext in eclipse | |
and go to line 5 |
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
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
main : Element | |
main = plainText "Hello, World!" |
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 Graphics.Element (Element, flow, down) | |
import List (map) | |
import Text (asText) | |
main : Element | |
main = | |
let fizzBuzz n = case (n % 3, n % 5) of | |
(0, 0) -> "FizzBuzz" | |
(0, _) -> "Fizz" | |
(_, 0) -> "Buzz" |
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 Graphics.Element (..) | |
import Html (..) | |
import Html.Attributes (..) | |
import Html.Events (..) | |
import Html.Lazy (lazy, lazy2) | |
import Json.Decode as Json | |
import List | |
import Maybe | |
import Signal | |
import String |
OlderNewer