Tweets between 2016-03-04 and 2016-03-07
-
Number of tweets (excluding RTs): 143
-
Number of favourites: 440
-
Number of retweets: 153
-
Number of tweeting users: 53
// Sources: | |
// * https://internals.rust-lang.org/t/method-chaining-special-form/342 | |
// * https://github.com/rust-lang/rust/issues/6679 | |
// * https://gist.github.com/huonw/2812cd9433dc5f0cf7f2 | |
// * https://www.reddit.com/r/rust/comments/2wssch/function_chaining/ | |
// | |
// TODO: | |
// * How to correctly process generic methods (e.g. collect::<Vec<_>>() ?) | |
macro_rules! with { |
#!/usr/bin/env python | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
from __future__ import print_function |
#!/bin/sh | |
# vim: set ts=4: | |
crashed=$(sudo rc-status --crashed) | |
if [ -n "$crashed" ]; then | |
echo "CRITICAL - crashed services: ${crashed//$'\n'/, }" | |
exit 2 | |
else | |
echo 'OK' |
# /etc/ssh/ldap.conf | |
# See ldap.conf(5) for details | |
# This file should be world readable but not world writable. | |
BASE ou=People,dc=example,dc=org | |
URI ldap://localhost |
#!/usr/bin/env ruby | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
require 'csv' |
--- Returns an iterator that behaves opposite to @{ipairs}, i.e. it iterates | |
-- over all key-value pairs that @{ipairs} does not. In other words, it skips | |
-- integer keys from 1 up to the first integer key absent from the table. The | |
-- order in which the keys are enumerated is not specified! | |
-- | |
-- @tparam table tab The table to iterate. | |
-- @treturn function func An iterator. | |
-- @treturn table The given table. | |
local function apairs (tab) | |
-- #tab lies, so we must count it ourself... |
#!/bin/bash | |
# vim: set ts=4: | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# |
"title","date","location","types","topics","booking","location_url","info_url" | |
"Knihovna snů aneb Oheň pekelný v Knihovně AV ČR","31. 10., 9:00–00:00","KNIHOVNA AV ČR, v. v. i., Národní 3, Praha 1","výstava","svět vědy","false","http://mapy.cz/zakladni?x=14.4145231&y=50.0813565&z=17&source=addr&id=8940048","http://www.tydenvedy.cz/sd/udalosti/kalendar/vystavy/1031-KAV-knihovna-snu-aneb-ohen-pekelny-v-knihovne-av-cr.html" | |
"Nepál 2015 – co především škody způsobilo a co zabránilo škodám ještě větším","31. 10., 15:00","Knihovna AV ČR, v. v. i., Národní 3, Praha 1","přednáška","svět vědy","false","http://mapy.cz/zakladni?x=14.4145231&y=50.0813565&z=17&source=addr&id=8940048&q=N%C3%A1rodn%C3%AD%203%2C%20Praha%201","http://www.tydenvedy.cz/sd/udalosti/kalendar/prednasky__PRAHA/1031-KNAV-nepal-2015-co-predevsim-skody-zpusobilo-a-co-zabranilo-skodam-jeste-vetsim.html" | |
"Oheň – dobrý sluha, ale zlý pán aneb Popáleniny očima fyzioterapeuta","31. 10., 17:30","Knihovna AV ČR, v. v. i., Národní 3, Praha 1","přednáška","med |