Deutsch   English   Français   Italiano  
<6670fe94$0$989$882e4bbb@reader.netnews.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news-out.netnews.com!postmaster.netnews.com!us14.netnews.com!not-for-mail
X-Trace: DXC=YQG3ogS6lS9cmXb`nR:O@>HWonT5<]0T=Q;nb^V>PUf6=AnO\FUBY[0nF54O@^\1?4_og>=_9<Rd9ZXMZ9Rc<mg5nk9`jfQW@>=dDioXmM8L11OXeKkS2`?j9
X-Complaints-To: support@blocknews.net
Date: Mon, 17 Jun 2024 23:27:18 -0400
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: C Non-Programming Non-Challenge
Newsgroups: comp.os.linux.advocacy
References: <17d933d9ffc8ee40$16989$3694546$802601b3@news.usenetexpress.com>
 <17d943beaefb3aa2$16097$2041738$802601b3@news.usenetexpress.com>
 <rPadnWt9mtOO9PP7nZ2dnZfqn_qdnZ2d@supernews.com>
 <ld7lfuF433iU2@mid.individual.net>
 <666f2f33$0$3102233$882e4bbb@reader.netnews.com>
 <ld9ct8F8s0rU5@mid.individual.net>
Content-Language: en-US
From: DFS <nospam@dfs.com>
In-Reply-To: <ld9ct8F8s0rU5@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 69
Message-ID: <6670fe94$0$989$882e4bbb@reader.netnews.com>
NNTP-Posting-Host: 127.0.0.1
X-Trace: 1718681236 reader.netnews.com 989 127.0.0.1:40525
Bytes: 3231

On 6/16/2024 8:04 PM, vallor wrote:
>> On 6/16/2024 4:19 AM, vallor wrote:
>>>> On Jun 15, 2024 at 3:20:19 PM EDT, "Farley Flud" <ff@linux.rocks>
>>>> wrote:
>>>>
>>>>> On Sat, 15 Jun 2024 14:29:04 +0000, Farley Flud wrote:
>>>>>
>>>>>
>>>>>> Write a C program to compute the subfactorial of an integer N.
>>>>>>
>>>>>>
>>>>> Nobody got it (as predicted).
>>>>
>>>> Because no one bothered.
>>>
>>> I actually took the opportunity to install the GMP documentation on my
>>> system, look up what a "subfactorial" is, and do an implementation that
>>> works for !N where N is 0 through 50.
>>
>> Where's your code?
> 
> https://github.com/vallor/subfactorial/

100 LOC, incl a makefile and a README, copyrighted and released to the 
public under the MIT license?

ha!  VERY FOSS cheesy!

Though not as cheesy as Terry Telnet Porter GPLing 8 lines of leafnode 
filters.

...........update_filters.sh.............
#!/bin/sh
# filename "update_filters.sh"
# This script allows the easy use and updating of
# "Homers COLA Leafnode Filters"
# http://slated.org/files/COLA-filters-20100919.tar.bz2
# whilst maintaining your own "local" COLA filters.
# It is assumed that the Leafnode config files are in
# /etc/leafnode and Homers COLA Leafnode Filters are in
# /etc/leafnode/filters-homer
#
# Change "Homers COLA Leafnode Filters" in
#  $DIR to suit yourself if different
# Add your own filter files as required to $DIR
# i.e "filters.local.from", and they will be processed when
# this script is run
#
# Copyright Terry Porter 2010. Made available under the GNU
# General Public License V3.
# http://www.gnu.org/licenses/gpl.html

DIR=/etc/leafnode/filters-homer

for i in $DIR/filters.* ; do
cat $i | sort >$i.sorted
mv -f $i.sorted $i
done
cat $DIR/filters.* > $DIR/Filters.raw
cat $DIR/Filters.raw | sort > $DIR/../filters
xterm -geometry 82x87+0+0  -e less $DIR/../filters
...................................................

heh!  Such a loon.


Always release your non-commercial code to the public domain.