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 Control.Applicative | |
import Control.Monad | |
import Control.DeepSeq | |
import Data.List | |
import System.Environment | |
-- | |
{- | |
strobo' :: Int -> [String] |
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
#compdef srandr | |
_arguments "1: :(lvds vga lvds-vga vga-lvds mirror debug)" |
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/env bash | |
tee >(cat >&2) |
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
! urxvt {{{ | |
urxvt*scrollBar: off | |
urxvt*urgentOnBell: true | |
urxvt*font: xft:Monospace:size=9,xft:WenQuanYi Micro Hei Mono:size=9 | |
urxvt*perl-lib: /usr/lib/urxvt/perl/ | |
urxvt*perl-ext-common: default,matcher,clipboard | |
urxvt*matcher.button: 1 | |
urxvt*urlLauncher: chromium |
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
class Foo[A, B] { | |
def apply(f: (A) => Unit) {} | |
// Not OK! Duplicate method after type erasure. | |
// def apply(f: (B) => Unit) {} | |
// OK, but seriously, scala? | |
def apply(f: (B) => Unit)(implicit dummy: DummyImplicit) {} | |
} |
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
#ifndef SCOPEGUARD_HPP | |
#define SCOPEGUARD_HPP | |
#include <functional> | |
#ifndef __has_feature | |
#define __has_feature(x) 0 | |
#endif | |
namespace detail |
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
#include <vector> | |
#include <boost/strong_typedef.hpp> | |
BOOST_STRONG_TYPEDEF(std::vector<std::vector<int>>, bitmap) | |
BOOST_STRONG_TYPEDEF(std::vector<std::vector<int>>, heightmap) | |
bitmap load_dog_sprite() | |
{ | |
return {}; | |
} |
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 Control.Applicative ((<$>)) | |
import Data.Function (on) | |
import Data.List (find, nubBy) | |
import Data.List.Utils (split) | |
import Data.Maybe (fromMaybe) | |
import Data.Ord (comparing) | |
import System.Environment (getArgs) | |
import System.IO (stdin, hGetContents, openFile, IOMode(ReadMode)) | |
data SetOp = SetRow { row :: Int, val :: Int } | SetCol { col :: Int, val :: Int } |
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
// WTFPL, PkmX, 2013 | |
// Using C++ template meta-programming to transform Brainfuck program into a C++ function. | |
#include <iostream> | |
#include <vector> | |
template<char... C> | |
struct source; | |
//////////////////////////////////////////////////////////////////////////////// |
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
# Maintainer: Robert La Spina <rkidlaspina [at] gmail [dot] com> | |
# Contributor: MP2E <MP2E {AT] archlinux.us> | |
# Contributor: PkmX <[email protected]> | |
# | |
# TODO: Find a way to put engine plugins in /usr/lib/$pkgname. | |
pkgname=doomseeker | |
pkgver=0.11.1b | |
pkgrel=1 | |
pkgdesc='A cross-platform server browser for various multiplayer Doom source-ports.' |
OlderNewer