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
'use strict'; | |
var cfdictApp = angular.module('cfdictApp', | |
[ | |
'ngRoute', | |
'textAngular', | |
'ui.bootstrap', | |
'pinyinFilters' | |
]); |
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
> > Ce qui nous fait une 3ème famille d'Unix libres avec BSD et GNU. | |
> Yes | |
4 si tu ajoutes Darwin | |
http://fr.wikipedia.org/wiki/XNU | |
https://fr.wikipedia.org/wiki/Darwin_(informatique) | |
http://www.puredarwin.org/ | |
http://www.gnu-darwin.org/index.php?page=about |
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
python subtlex-parser.py | |
的: <type 'unicode'> | |
[[]] | |
Traceback (most recent call last): | |
File "subtlex-parser.py", line 32, in <module> | |
app = subtlexParser() # création de l'appli | |
File "subtlex-parser.py", line 17, in __init__ | |
self.convert() | |
File "subtlex-parser.py", line 29, in convert | |
outf.write(line) |
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
# Display date H:M (mon-day) for a list of predefined timezones. | |
# The list of timezones available in: /usr/share/zoneinfo/ | |
# | |
# @return string | |
worldtime() { | |
places=( "America/New_York" "Asia/Kolkata" "Europe/Paris" ) | |
for tz in ${places[@]}; | |
do | |
time=$(TZ="$tz" date '+%H:%M (%b-%d)') | |
printf "%s: %s\n" "${tz##*/}" $time |
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
(165845,'zh',''), | |
(217905,'zh',''), | |
(218110,'zh',''), | |
(220775,'zh',''), | |
(293346,'zh',''), | |
(309039,'zh',''), | |
(384276,'zh',''), | |
(542108,'zh',''), | |
(783264,'zh',''), | |
(921935,'zh',''), |
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
(165845,'zh',''), | |
(217905,'zh',''), | |
(218110,'zh',''), | |
(220775,'zh',''), | |
(293346,'zh',''), | |
(309039,'zh',''), | |
(384276,'zh',''), | |
(542108,'zh',''), | |
(783264,'zh',''), | |
(921935,'zh',''), |
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
# force use of Bash | |
SHELL := /bin/bash | |
echantillon: ${join-chinese-french} | |
@# default, await a value from command line | |
n=$$(wc -l <${join-chinese-french}); \ | |
for i in $$(seq $$c); do \ | |
r=$$((RANDOM % n + 1)); \ | |
sed -n "$$r{p;q;}" ${join-chinese-french}; \ | |
done |
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 make | |
# DESCRIPTION | |
# Dump the database structure and data separately and update symlink | |
# to latest dump | |
# | |
# USAGE | |
# make resources/sql/dump.makefile | |
# | |
# @author: Édouard Lopez <dev+cfdict@edouard-lopez.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
#!/usr/bin/env perl | |
# (1) quit unless we have the correct number of command-line args | |
$args_cnt = $#ARGV + 1; | |
if ($args_cnt != 2) { | |
print "\nUsage: mk2graphviz.pl input.makfile target output.svg\n"; | |
exit; | |
} | |
# (2) we got two command line args, so assume they are the |
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 perl | |
# | |
# DESCRIPTION | |
# Create makefile dependency graph based on given targets. | |
# Also @see ./visualize.mk | |
# @link: https://metacpan.org/pod/Makefile::GraphViz | |
# | |
# INSTALLATION | |
# pkg-install cpanminus | |
# cpan install Makefile::GraphViz |
OlderNewer