Skip to content

Instantly share code, notes, and snippets.

<!doctype html><html lang=en><head><meta charset=utf-8><meta name=viewport content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;><meta name=description content=&quot;Profile report generated with the `pandas-profiling` Python package&quot;><meta name=author content=&quot;Simon Brugman and the open source community.&quot;><meta name=generator content=&quot;Pandas Profiling v2.6.0&quot;><meta name=url content=https://github.com/pandas-profiling/pandas-profiling><meta name=date content><title>Pandas Profiling Report</title><style>
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,v
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbsmcd
tbsmcd / kohaku.html
Last active December 28, 2015 20:59
<html>
<head></head>
<body>
<div id="image"></div>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
<script id="tmpl" type="text/x-jquery-tmpl">
<div class="photo">
<image src="http://www1.nhk.or.jp/kouhaku/images/countdown/pose_${number}.png">
</div>
<?php
debug($messages);
@tbsmcd
tbsmcd / add.ctp
Created September 23, 2012 16:31
<?php
echo $this->Form->create('Message');
echo $this->Form->input('body');
echo $this->Form->input('name');
echo $this->Form->end('send');
<?php
class MessagesController extends AppController {
public function index() {
$messages = $this->Message->find('all');
$this->set(compact('messages'));
}
public function add() {
if ($this->request->is('post')) {
if ($this->Message->save($this->request->data)) {
<?php
class Message extends AppModel {
public $validate = array(
'body' => array(
'rule' => 'notempty',
'message' => 'NOTEMPTY',
),
'name' => array(
'rule' => 'notempty',
'message' => 'NOTEMPTY',
<?php
class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Mongodb.MongodbSource',
'database' => 'mongotest',
'host' => 'localhost',
'port' => '27017',
);
}
array (size=5)
'_id' =>
object(MongoId)[7]
public '$id' => string '505bd681d730289738000000' (length=24)
'name' => string 'Tomoaki Kanemoto' (length=16)
'age' => int 44
'team' => string 'Tigers' (length=6)
'hometown' =>
array (size=2)
'prefecture' => string 'Hiroshima' (length=9)