Skip to content

Instantly share code, notes, and snippets.

View marcus-grant's full-sized avatar

Marcus Grant marcus-grant

  • Applied Industries
  • Stockholm
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 82 columns, instead of 36 in line 1.
,Id,MSSubClass,MSZoning,LotFrontage,LotArea,Street,Alley,LotShape,LandContour,Utilities,LotConfig,LandSlope,Neighborhood,Condition1,Condition2,BldgType,HouseStyle,OverallQual,OverallCond,YearBuilt,YearRemodAdd,RoofStyle,RoofMatl,Exterior1st,Exterior2nd,MasVnrType,MasVnrArea,ExterQual,ExterCond,Foundation,BsmtQual,BsmtCond,BsmtExposure,BsmtFinType1,BsmtFinSF1,BsmtFinType2,BsmtFinSF2,BsmtUnfSF,TotalBsmtSF,Heating,HeatingQC,CentralAir,Electrical,1stFlrSF,2ndFlrSF,LowQualFinSF,GrLivArea,BsmtFullBath,BsmtHalfBath,FullBath,HalfBath,BedroomAbvGr,KitchenAbvGr,KitchenQual,TotRmsAbvGrd,Functional,Fireplaces,FireplaceQu,GarageType,GarageYrBlt,GarageFinish,GarageCars,GarageArea,GarageQual,GarageCond,PavedDrive,WoodDeckSF,OpenPorchSF,EnclosedPorch,3SsnPorch,ScreenPorch,PoolArea,PoolQC,Fence,MiscFeature,MiscVal,MoSold,YrSold,SaleType,SaleCondition,SalePrice
0,1,60,RL,65.0,8450,Pave,,Reg,Lvl,AllPub,Inside,Gtl,CollgCr,Norm,Norm,1Fam,2Story,7,5,2003,2003,Gable,CompShg,VinylSd,VinylSd,BrkFace,196.0,Gd,TA,PConc,Gd,TA,No,GLQ,706
@marcus-grant
marcus-grant / try_it7-3.ipynb
Created February 6, 2023 13:00
try_it7.3.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Gender Height Weight
Male 73.847017017515 241.893563180437
Male 68.7819040458903 162.310472521300
Male 74.1101053917849 212.7408555565
Male 71.7309784033377 220.042470303077
Male 69.8817958611153 206.349800623871
Male 67.2530156878065 152.212155757083
Male 68.7850812516616 183.927888604031
Male 68.3485155115879 167.971110489509
Male 67.018949662883 175.92944039571
@marcus-grant
marcus-grant / pcde-central-limit-theorem-tryit7-2.ipynb
Created February 6, 2023 11:40
pcde-central-limit-theorem-tryit7.2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marcus-grant
marcus-grant / pgp.md
Created February 22, 2021 15:01 — forked from sepehr/pgp.md
PGP Guide

PGP Guide

GPG vs PGP

PGP can refer to two things:

The Pretty Good Privacy software originally written by Phil Zimmermann, and now owned by Symantec. The formats for keys, encrypted messages and message signatures defined by that software. These have now been formalised as the OpenPGP standard. The GPG software is an independent implementation of the OpenPGP standards, so you can use it to exchange encrypted messages with people using other OpenPGP implementations (e.g. Symantec's PGP).

@marcus-grant
marcus-grant / README.md
Created November 16, 2020 18:40 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@marcus-grant
marcus-grant / find-overflow.js
Created November 15, 2020 22:57
JS snippet that when put in devtools console will find horizontally overflowing elements
var docWidth = document.documentElement.offsetWidth;
[].forEach.call(
document.querySelectorAll('*'),
function(el) {
if (el.offsetWidth > docWidth) {
console.log(el);
}
}
);

Keybase proof

I hereby claim:

  • I am marcus-grant on github.
  • I am marcusgrant (https://keybase.io/marcusgrant) on keybase.
  • I have a public key ASAeHQx-ZbF-o6NHW-jZwEiLiGyArM8siXOgqfk6NvdYrQo

To claim this, I am signing this object:

@marcus-grant
marcus-grant / random.java
Last active April 2, 2019 00:57
Some basic randomizer routines in java
// The java.util.Random approach
import java.util.Random;
// Generate the randomizer object
Random rand = new Random();
// Here's where you grab random data from it
// This will get you any number from and including 0 ~ 99
int x = rand.nextInt(100);