This file contains hidden or 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
awk '/kHanyuPinyin/ && /,/ {print $3}' ./resources/unihan/Unihan_Readings.txt | wc -l | |
8119 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# @description Open given file with adequate rights (sudo/user) | |
# @param $@|$f file(s) name | |
# @return void | |
function e() { | |
f="$1" | |
owner="$(stat -c '%G:%U' $f)" | |
ownerUser="${owner%%:*}" | |
ownerGroup="${owner##*:}" |
This file contains hidden or 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
# @description Check a file computed md5sum against official one | |
# @param $1|file file to checksum | |
# @param $2|controlChecksum official/valid checksum | |
# @return void | |
function md5check() { | |
controlChecksum="$2" | |
if [[ ! -e "$1" || -z "$2" ]]; | |
then | |
[[ ! -e "$1" ]] && printf "[!] File not found\n" |
This file contains hidden or 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
// Generated on 2014-01-10 using generator-webapp 0.4.6 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
# GRIB2 installation of environnement and conversion | |
# see: https://gis.stackexchange.com/questions/26356/conversion-of-grib-and-netcdf-to-my-database | |
# | |
# USAGE | |
# make extract-data | |
# | |
# @author: Édouard Lopez <[email protected]> |
This file contains hidden or 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 |