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 collections | |
import types | |
import sys | |
import time | |
import logging | |
logger = logging.getLogger() | |
logger.setLevel(logging.DEBUG) | |
stdh = logging.StreamHandler() |
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
const dgram = require("dgram"); | |
const ssdpRequest = `M-SEARCH * HTTP/1.1 | |
HOST: 239.255.255.250:1900 | |
MAN: "ssdp:discover" | |
MX: 0 | |
ST: urn:schemas-sony-com:service:ScalarWebAPI:1 | |
USER-AGENT: nodejs | |
`; |
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
"use strict"; | |
/** | |
* A tiny functional library. | |
*/ | |
/** | |
* reduceObject - reduce an object | |
* | |
* @param {object} obj |
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
#!/usr/bin/python | |
""" | |
The %prog (vim buffer ls) lists files hosted on all running vim servers. Star | |
before file indicates that the buffer is loaded. | |
""" | |
""" | |
Author: Marcin Szamotulski | |
""" |
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 Main where | |
import Control.Comonad.Cofree (Cofree, explore, head, mkCofree, tail, unfoldCofree) | |
import Control.Monad.Eff (Eff) | |
import Control.Monad.Eff.Console (CONSOLE, log) | |
import Control.Monad.Free (Free, liftF) | |
import Data.Either (Either(..)) | |
import Data.Foldable (fold) | |
import Data.Functor.Coproduct (Coproduct(..), left, right) | |
import Data.Functor.Product (Product(..), product) |
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 Main where | |
import Prelude | |
import TryPureScript | |
import Control.Comonad.Cofree (Cofree, head, mkCofree, tail, unfoldCofree) | |
import Control.Monad.Eff (Eff) | |
import Control.Monad.Eff.Console (CONSOLE, log) | |
import Control.Monad.Eff.Unsafe (unsafePerformEff) | |
import Data.Array (fromFoldable) |
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 Main where | |
import Prelude | |
import Data.Foldable (fold, elem) | |
import TryPureScript | |
import Type.Row (class ListToRow, class RowToList, Cons, Nil, kind RowList) | |
import Type.Proxy (Proxy(..)) | |
import Type.Data.Symbol (class IsSymbol, reflectSymbol) | |
import Data.Array (cons) | |
import Data.Monoid (mempty) |
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 React.RecSpec where | |
import Control.Monad.Eff (Eff, kind Effect) | |
import Data.Maybe (Maybe(..), fromMaybe) | |
import Data.Record as R | |
import Prelude (Unit, bind, pure, show, unit, ($)) | |
import React (Disallowed, ReactElement, ReactProps, ReactRefs, ReactState, ReadOnly, ReadWrite) | |
import React.DOM as D | |
import Type.Data.Symbol (class IsSymbol, SProxy(..)) | |
import Type.Row (class RowLacks) |
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 tk=<C-L> | |
tmap <c-x> <c-l>:hide<cr> | |
tmap <c-w><c-x> <c-l>:bd!<cr> | |
" Find first terminal buffer | |
fun! TermBufNr() | |
redi => ls | |
filter #\v<(zsh|bash)># ls | |
redi END |
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 Main where | |
import Prelude | |
import Control.Monad.Eff (Eff) | |
import Control.Monad.Eff.Console (logShow) | |
import Control.Monad.ST (ST, pureST) | |
import Data.Foreign (Foreign, toForeign) | |
import Data.StrMap as StrMap | |
import Data.StrMap.ST as STStrMap |
OlderNewer