Skip to content

Instantly share code, notes, and snippets.

View satoryu's full-sized avatar
🤘
Put your 🦊 up!

Tatsuya Sato satoryu

🤘
Put your 🦊 up!
View GitHub Profile
(1...).each { |x| puts (1 - 1.0/x)**x }
class Object
def 🐷
Class.new do
def 🔥
{ '🐷' => '🍖' }
end
end
end
end
🍣 = Class.new do
def to_s
'🍣'
end
end
(1..).each { puts 🍣.new }
<head>
<title>IIS Detailed Error - 404.13 - Not Found</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}
ul,ol{margin:10px 0 10px 5px;}
ul.first,ol.first{margin-top:5px;}
@satoryu
satoryu / mysql_error.txt
Created July 26, 2018 14:41
Errors appeared after upgrading mysql from 5.6 to 5.7 with homebrew on Mac OS X Sierra
2018-07-26T14:39:33.6NZ mysqld_safe Logging to '/usr/local/var/mysql/P40902.err'.
2018-07-26T14:39:33.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2018-07-26T14:39:34.247649Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-07-26T14:39:34.248430Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-07-26T14:39:34.248520Z 0 [Note] /usr/local/opt/[email protected]/bin/mysqld (mysqld 5.7.22) starting as process 35936 ...
2018-07-26T14:39:34.256969Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2018-07-26T14:39:34.259865Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-07-26T14:39:34.259896Z 0 [Note] InnoDB: Uses event mutexes
2018-07-26T14:39:34.259907Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barr
@satoryu
satoryu / config.yml
Created July 10, 2018 11:59
Configuration file for running PHPUnit tests for Laravel app on CircleCI
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: satoryu/php-mssql:0.0.4
FROM php:7.1-cli
## Step 1. Install tools required for testing the app on CircleCI
# Ref. https://circleci.com/docs/2.0/custom-images/#adding-required-and-custom-tools-or-files
RUN apt-get update && \
apt-get install -y \
git \
ssh \
tar \
gzip \
@satoryu
satoryu / AmlWorkbench_ElectronMain.log
Created May 13, 2018 23:48
Stuck at "checking experimentation account..." after sign-in with Microsfot Account
[2018-05-14 08:40:33.974] [ERROR] ElectronMain - AdalUnknownStatus, _acquireTokenSilent, {"statusCode":2,"errorCode":200,"errorDescription":"The user credentials are needed to obtain access token. Please call the non-silent acquireTokenWithResource methods."}
[2018-05-14 08:41:23.045] [ERROR] ElectronMain - AdalUnknownStatus, _acquireTokenSilent, {"statusCode":2,"errorCode":200,"errorDescription":"The user credentials are needed to obtain access token. Please call the non-silent acquireTokenWithResource methods."}
[2018-05-14 08:41:23.104] [ERROR] ElectronMain - AdalUnknownStatus, _acquireTokenSilent, {"statusCode":2,"errorCode":200,"errorDescription":"The user credentials are needed to obtain access token. Please call the non-silent acquireTokenWithResource methods."}
[2018-05-14 08:41:23.138] [ERROR] ElectronMain - AdalUnknownStatus, _acquireTokenSilent, {"statusCode":2,"errorCode":200,"errorDescription":"The user credentials are needed to obtain access token. Please call the non-silent acquireTokenWithReso
@satoryu
satoryu / chartjs_eventhandle.html
Last active February 23, 2018 11:34
Sample code for how to handle an event which a data point is clicked.
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.js"></script>
</head>
<body>
<canvas id="myChart" width="400" height="400"></canvas>
<script>
generateRandomPoint = function() {
return Math.floor(Math.random() * 10)
}