- AWStats - Generates web, streaming, ftp or mail server statistics graphically. (Source Code)
GPLv3
Perl
- GoAccess - Real-time web log analyzer and interactive viewer that runs in a terminal. (Source Code)
GPLv2
C
- FHEM - FHEM is used to automate common tasks in the household like switching lamps and heating. It can also be used to log events like temperature or power consumption. You can control it via web or smartphone frontends, telnet or TCP/IP directly. (Source Code)
GPLv3
Perl
- RSS-Bridge - rss-bridge is a PHP project capable of generating ATOM feeds for websites which don't have one.
Public domain
PHP
- PluXml - XML-based blog/CMS platform. (Source Code)
GPL
PHP
- [WordPress](https://wordpress.or
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/python3 | |
import os | |
from urllib.parse import unquote | |
MEDIAWIKI_DIR = '/var/lib/mediawiki/' | |
# Files are assumed to be in a dir called mod | |
# in the same directory as the script | |
[(_, _, file_names)] = os.walk('mod') |
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
diff --git a/plinth/frontpage.py b/plinth/frontpage.py | |
index d50a8a7..786bbcf 100644 | |
--- a/plinth/frontpage.py | |
+++ b/plinth/frontpage.py | |
@@ -22,8 +22,20 @@ Manage application shortcuts on front page. | |
shortcuts = {} | |
+def add_all_shortcuts(): | |
+ from plinth import module_loader |
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 subprocess | |
import sys | |
lang = sys.argv[1] | |
def find_unmet_dependencies(): | |
unmet_dependencies=[] | |
dependencies=[] |
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
Clojure | |
(def emps (map (fn [x] {:name (str "employee" x) :salary (* 100 x)}) (take 10 (range 1 10)))) | |
(take (/ (count emps) 10) (reverse (sort-by :salary emps))) | |
Haskell | |
import Data.List (sortBy) | |
data Employee = Employee {name :: String, salary :: Double } deriving (Show) |
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 scalaz._ | |
import Scalaz._ | |
val list = List(1,2,3,4) | |
//syntactic sugar | |
(1 == 2) ? 'a' | 'b' | |
1 == 2 option 'a' | |
1.some === none[Int] // typesafe option | |
'a' =/= 'b' |
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 python | |
# -*- coding: utf-8 -*- | |
from runner.koan import * | |
# Greed is a dice game where you roll up to five dice to accumulate | |
# points. The following "score" function will be used calculate the | |
# score of a single roll of the dice. | |
# | |
# A greed roll is scored as follows: |