Skip to content

Instantly share code, notes, and snippets.

View hirokidaichi's full-sized avatar

hirokidaichi hirokidaichi

View GitHub Profile
use strict;
use warnings;
print "helloworld";
@hirokidaichi
hirokidaichi / gist:11399417
Created April 29, 2014 12:53
Bad Code Example
use strict;
use warnings;
my $Attribute = 0;
my $Text = 0;
my @Stack = ();
my @Attribute = ();
sub oremark2html {
my ($oremark) = @_;
use strict;
use warnings;
use Test::More;
sub sample1 {
my ( $a, $b ) = @_;
if ( !$a && !$b ) {
return "hello";
}
var DISPATCH_TABLE = {};
DISPATCH_TABLE.Person = {
intro : function(_self){
return "I am just a Person,and my name is "+_self.name;
}
};
sub sample3 {
my ( $a, $b, $c, $d ) = @_;
if ( $a && $b && !$c && !$d) {
return "a and b";
}
if ( $a && !$b && $c && !$d) {
return "a and c";
}
if ( $a && !$b && !$c && $d) {
var DISPATCH_TABLE = {};
DISPATCH_TABLE.Person = {
intro: function(_self) {
return "I am just a Person,and my name is " + _self.name;
}
};
TYPE_TABLE = {};
var O = "i have a pen i have an apple apple pen".split("");
var E = "i oari a fib i oari ab affwi affwi-fib".split("");
var code = function(s) {
return s.charCodeAt(0) - "a".charCodeAt(0);
};
var decode = function(n) {
return String.fromCharCode(n + "a".charCodeAt(0));
}
@hirokidaichi
hirokidaichi / irt-dxc.ipynb
Created August 20, 2021 09:16
IRT少ない回答数から、DXCの総合点数を推論する。
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hirokidaichi
hirokidaichi / 04-6-30.ipynb
Created August 24, 2021 10:16
04. 各テーマから6問ずつの30問で、偏差値を算出する。
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hirokidaichi
hirokidaichi / 04-6-30.ipynb
Created August 24, 2021 10:26
04. 各テーマから6問ずつの30問で、偏差値を算出する。
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.