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
| {port_env, [ | |
| %% add MS Visual C++ support to rebar on Windows | |
| {"win32", "CC", "cl.exe"}, | |
| {"win32", "CXX", "cl.exe"}, | |
| {"win32", "LINKER", "link.exe"}, | |
| {"win32", "DRV_CXX_TEMPLATE", | |
| "$CXX /c $CXXFLAGS $DRV_CFLAGS $PORT_IN_FILES /Fo$PORT_OUT_FILE"}, | |
| {"win32", "DRV_CC_TEMPLATE", | |
| "$CC /c $CFLAGS $DRV_CFLAGS $PORT_IN_FILES /Fo$PORT_OUT_FILE"}, |
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
| # Copyright 2012 Erlware, LLC. All Rights Reserved. | |
| # | |
| # This file is provided to you under the Apache License, | |
| # Version 2.0 (the "License"); you may not use this file | |
| # except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, |
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
| #!/bin/bash | |
| # init a prj w/ rebar, git flow | |
| cd /usr/local/bin | |
| wget https://github.com/rebar/rebar/wiki/rebar | |
| chmod u+x rebar | |
| rebar -c # lists all commands | |
| mkdir /path/to/prj | |
| cd $_ | |
| rebar create-app appid=myapp # creates project named 'myapp' | |
| cd myapp |
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
| /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ | |
| /** | |
| * @file notifywindow.cpp | |
| * @author M.W.Park <[email protected]> | |
| * @date Thu Nov 20 11:31:12 2014 | |
| * | |
| * @brief | |
| * | |
| * @note tested on windows 8.1, Qt 5.3 for now. | |
| */ |
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
| # kerl | |
| sudo -i | |
| apt-get build-dep erlang | |
| cd /usr/local/bin | |
| curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl | |
| chmod a+x kerl | |
| kerl list releases | |
| kerl build R16B03 r16b03 | |
| kerl list builds | |
| kerl install r16b03 ~/erlang/r16b03 |
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
| #!/bin/bash/bash | |
| # simple setup of vboxtool(http://vboxtool.svn.sourceforge.net/) | |
| # requires root | |
| # VIRTUAL MACHINE NAME HERE & VIRTUALBOX_USER_ID_HERE should be replaced | |
| svn checkout svn://svn.code.sf.net/p/vboxtool/code/trunk vboxtool-code | |
| pushd . | |
| cd vboxtool-code/ | |
| #cat readme.txt # following instructions are all from this file | |
| cp script/vboxtool /usr/local/bin/ |
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
| #!/bin/sh | |
| # | |
| # %CopyrightBegin% | |
| # | |
| # Copyright Ericsson AB 1996-2012. All Rights Reserved. | |
| # | |
| # The contents of this file are subject to the Erlang Public License, | |
| # Version 1.1, (the "License"); you may not use this file except in | |
| # compliance with the License. You should have received a copy of the | |
| # Erlang Public License along with this software. If not, it can be |
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
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
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 GroupBy where | |
| import Data.Map (Map) | |
| import qualified Data.Map as Map | |
| groupBy :: Ord b => (a -> b) -> [a] -> Map b [a] | |
| groupBy f = foldr (\ v -> Map.insertWith (++) (f v) [v]) Map.empty | |
| groupBy' :: Ord b => (a -> b) -> [a] -> Map b [a] |
OlderNewer