Skip to content

Instantly share code, notes, and snippets.

sort by avg_time
avg total count method path
9.46 2753.95 291 GET /ticket/1
5.28 1510.27 286 GET /artist/1
4.54 1329.08 293 GET /
4.37 454.62 104 POST /buy
3.82 3.82 1 GET /admin/order.csv
1.22 2.45 2 POST /admin
0.15 0.15 1 GET /artist/2
0.03 4.28 130 GET /js/jquery-ui-1.8.24.custom.min.js
% brew install rbenv
Warning: rbenv-0.4.0 already installed
/Users/atsushi/prog/coursera/ex3-003/mlclass-ex3% brew install octave [master atsushi:~/prog/coursera/ex3-003/mlclass-ex3]
==> Installing dependencies for octave: gnu-sed, texinfo, fftw, readline, tbb, suite-sparse, glpk, libtool, jpeg, libpng, freetype, graphicsmagick, szip, hdf5, pcre, cmake, qhull, gmp, mpfr,
==> Installing octave dependency: gnu-sed
==> Downloading http://ftpmirror.gnu.org/sed/sed-4.2.2.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gnu-sed/4.2.2 --program-prefix=g
==> make install
==> Caveats
曲線フィッティング
オリジナル
http://jsfiddle.net/yBHac/1/
とりあえずJSをJSペインに分割
http://jsfiddle.net/SM2Kz/
@edvakf
edvakf / ClosureComparisonTest.php
Last active December 25, 2015 11:49
don't use phpunit's assertEquals to compare closures.
<?php
class ClosureCompraisonTest extends PHPUnit_Framework_TestCase
{
// passes. WTF???
public function test_assertEquals()
{
$f1 = function () { return 1; };
$f2 = function () { return 2; };
$this->assertEquals($f1, $f2);
@edvakf
edvakf / README.md
Last active December 22, 2015 08:29
PHPコードの複雑さチェック

complexity.php

使い方

php complexity.php filename

出力形式

diff --git a/htdocs/source/js/pre-login.js b/htdocs/source/js/pre-login.js
index 2835a85..d532175 100644
--- a/htdocs/source/js/pre-login.js
+++ b/htdocs/source/js/pre-login.js
@@ -183,6 +183,7 @@ var brick = {
function loop() {
var start_position = position, i = 0, width = 0, height, r = [], w = [], list, item, data, right_margin, target, current_width = 0, top;
+ var rsum = 0;
@edvakf
edvakf / smc.c
Created November 10, 2012 01:13
SMC
/*
* Apple System Management Control (SMC) Tool
* Copyright (C) 2006 devnull
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
#import <Cocoa/Cocoa.h>
#include <stdio.h>
#include <time.h>
#include <dispatch/dispatch.h>
#include <curl/curl.h>
#define MAXLINE 512
CFMachPortRef eventTap;
#include <stdio.h>
#include <stdlib.h>
#include "librtmp/rtmp.h"
int main(int argc, char *argv[]) {
if (argc < 3) {
printf("usage : %s url ticket\n", argv[0]);
return 1;
}
/***
P R O C E S S I N G . J S - 1.3.0
a port of the Processing visualization language
Processing.js is licensed under the MIT License, see LICENSE.
For a list of copyright holders, please refer to AUTHORS.
http://processingjs.org