(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
<h2>Out-of-the-box Pager Configurations</h2> | |
<h3>Default Paging Control</h3> | |
@Html.PagedListPager((IPagedList)ViewBag.OnePageOfProducts, page => Url.Action("Index", new { page = page })) | |
<h3>Minimal Paging Control</h3> | |
@Html.PagedListPager((IPagedList)ViewBag.OnePageOfProducts, page => Url.Action("Index", new { page = page }), PagedListRenderOptions.Minimal) | |
<h3>Minimal Paging Control w/ Page Count Text</h3> | |
@Html.PagedListPager((IPagedList)ViewBag.OnePageOfProducts, page => Url.Action("Index", new { page = page }), PagedListRenderOptions.MinimalWithPageCountText) |
-module(sortlib). | |
-export([qsort/1, bsort/1, ssort/1, isort/1, msort/2, | |
msort_lte/1, msort_gte/1]). | |
-export([test_sort/0, test_sort/1, shuffle/1, split/1, merge/3]). | |
-import(lists, [reverse/1]). | |
%% Various sorting algorithms implemented in Erlang |
<select name="timezone" > | |
<option disabled selected style='display:none;'>Time Zone...</option> | |
<optgroup label="US (Common)"> | |
<option value="America/Puerto_Rico">Puerto Rico (Atlantic)</option> | |
<option value="America/New_York">New York (Eastern)</option> | |
<option value="America/Chicago">Chicago (Central)</option> | |
<option value="America/Denver">Denver (Mountain)</option> | |
<option value="America/Phoenix">Phoenix (MST)</option> | |
<option value="America/Los_Angeles">Los Angeles (Pacific)</option> |
// | |
// libuuid sample program | |
// | |
// library install for debian | |
// $ sudo apt-get install uuid-dev | |
// | |
// compile | |
// $ gcc uuid_test.c -luuid -o uuid_test | |
// | |
#include <stdio.h> |
To use the scheme epgm:// or pgm:// you must configure libzmq 3.x (HEAD) using the --with-pgm.
./configure --with-pgm
./make
./make install
Remember to set you LD_LIBRARY_PATH to the location of the libzmq installation parameter For bash:
export LD_LIBRARY_PATH=/usr/local/lib
/// <summary> | |
/// See https://developers.google.com/maps/documentation/utilities/polylinealgorithm | |
/// </summary> | |
public static class GooglePoints | |
{ | |
/// <summary> | |
/// Decode google style polyline coordinates. | |
/// </summary> | |
/// <param name="encodedPoints"></param> | |
/// <returns></returns> |
// from http://scratch99.com/web-development/javascript/convert-bytes-to-mb-kb/ | |
function bytesToSize(bytes) { | |
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; | |
if (bytes == 0) return 'n/a'; | |
var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); | |
if (i == 0) return bytes + ' ' + sizes[i]; | |
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i]; | |
}; |
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
def toCamelCase(String string) { | |
String result = "" | |
string.findAll("[^\\W]+") { String word -> | |
result += word.capitalize() | |
} | |
return result | |
} | |
afterEvaluate { project -> | |
Configuration runtimeConfiguration = project.configurations.getByName('compile') |