Skip to content

Instantly share code, notes, and snippets.

Po Liu poliu2s

Block or report user

Report or block poliu2s

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@poliu2s
poliu2s / StandardGSDataFormat.swift
Created Mar 26, 2019
Example of data format for published growth data
View StandardGSDataFormat.swift
self.data["standard"]!["male"]!["+1std"] = [
[0.0, 3.878],
[0.083, 3.850],
[0.167, 3.872],
[0.25, 3.901],
[0.333, 3.933],
[0.417, 3.968],
[0.5, 4.003],
[0.583, 4.040],
[0.667, 4.078],
@poliu2s
poliu2s / output.sh
Created Jun 26, 2016
Output when running the visualiserFilter.py
View output.sh
~/projects/boab/src   master  python visualiserFilter.py
/usr/local/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Main visualiser
./res_performance
Visualise - Reading data
Visualise - Filtering data
Score limit: {}
Limiter value(s): None
Visualise - Listing data
View logstash.conf
output {
# Hadoop listens over ZeroMQ
zeromq {
address => ...
mode => ...
topology => ...
sockopt => ...
}
S3 {
@poliu2s
poliu2s / gist:2cd3fc2a5dc929062481
Last active Jun 9, 2016
kurento-recorderEndpoint
View gist:2cd3fc2a5dc929062481
/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-2.1.html
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@poliu2s
poliu2s / gist:8930585
Created Feb 11, 2014
Count number of unique IPs in Apache access log
View gist:8930585
awk '{!a[$1]++}END{for(i in a) if ( a[i] >10 ) print a[i],i }' file
@poliu2s
poliu2s / gist:8922728
Created Feb 10, 2014
Simplest bash script
View gist:8922728
#!/bin/bash
echo Hello World
You can’t perform that action at this time.