Skip to content

Instantly share code, notes, and snippets.

@poliu2s
poliu2s / StandardGSDataFormat.swift
Created March 26, 2019 00:13
Example of data format for published growth data
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 June 26, 2016 01:57
Output when running the visualiserFilter.py
~/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
@poliu2s
poliu2s / logstash.conf
Last active August 29, 2015 14:08
Blog
output {
# Hadoop listens over ZeroMQ
zeromq {
address => ...
mode => ...
topology => ...
sockopt => ...
}
S3 {
@poliu2s
poliu2s / gist:2cd3fc2a5dc929062481
Last active June 9, 2016 19:36
kurento-recorderEndpoint
/*
* (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 February 11, 2014 07:29
Count number of unique IPs in Apache access log
awk '{!a[$1]++}END{for(i in a) if ( a[i] >10 ) print a[i],i }' file
@poliu2s
poliu2s / gist:8922728
Created February 10, 2014 19:40
Simplest bash script
#!/bin/bash
echo Hello World