A JSON schema to describe tags, labels and folders for generic document organizing. It should be validated by http://jsonschemalint.com/ .
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
{ | |
"$schema": "http://json-schema.org/draft-03/schema", | |
"id": "https://gist.github.com/TakashiSasaki/5420814/raw/schema.json", | |
"title": "root", | |
"title-authority": [ | |
"http://json-schema.org/latest/json-schema-validation.html#anchor97", | |
"http://json-schema.org/latest/json-schema-core.html#anchor7" | |
], | |
"title-description": "Title is a metadata keyword and will preferrably be short.", | |
"description": null, |
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
#!/bin/sh | |
if [ ! -e /etc/safedd.conf ]; then | |
echo /etc/safedd.conf is not found. | |
echo Each line should be regex for forbidden '"'of'"' parameter. | |
echo Example of /etc/safedd.conf : | |
echo ' .*dev/sda.*' | |
echo ' .*dev/md[0-9].*' | |
exit -1 | |
fi |
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
SELECT コースID AS courseid, コース名, コース省略名 AS 省略名, | |
(SELECT SUM(人数) FROM 集計_参加者数 WHERE コースID=courseid GROUP BY コースID) AS `参加者数`, | |
ifnull((SELECT 人数 FROM 集計_参加者数 WHERE ロール="Student" AND コースID=courseid),0) AS `学生権限の人数`, | |
ifnull((SELECT 人数 FROM 集計_参加者数 WHERE ロール="Teacher" AND コースID=courseid),0) AS `教員権限の人数` | |
FROM 集計_参加者数 | |
GROUP BY courseid |
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
*.encrypted | |
*.cleartext |