Skip to content

Instantly share code, notes, and snippets.

View BenjaminRosell's full-sized avatar

Benjamin Gonzalez BenjaminRosell

View GitHub Profile
@BenjaminRosell
BenjaminRosell / project.py
Created November 25, 2023 18:34
Final Project
from english_words import get_english_words_set
import click
import matplotlib.pyplot as plt
from itertools import product
class Sorcerer:
def generate_corpus(self, count):
corpus = {}
@BenjaminRosell
BenjaminRosell / test.js
Created April 27, 2021 22:48
HD Challenge
class DateRange {
constructor(start, end) {
this.start = start
this.end = end
}
}
let date1= new Date(2021, 4, 1, 10, 10, 10)
let date2= new Date(2021, 4, 2, 10, 10, 10)
let date3= new Date(2021, 4, 3, 10, 10, 10)
@BenjaminRosell
BenjaminRosell / code.html
Created March 2, 2021 20:50
Code pour les widgets
<!-- Code En Anglais -->
<div class="mkdf-icon-list-holder">
<div class="mkdf-il-icon-holder">
<span aria-hidden="true" class="mkdf-icon-font-elegant icon_clock_alt " style="color: #f1b847;font-size: 18px"></span>
</div>
<p class="mkdf-il-text" style="color: #b5b5b5; font-size: 15px; padding-left: 28px;">Mon – Fri 8am – 4pm</p>
</div>
<div class="mkdf-icon-list-holder">
<div class="mkdf-il-icon-holder">
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!-- NAME: 1 COLUMN -->
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
@BenjaminRosell
BenjaminRosell / querry.sql
Last active April 5, 2020 16:12
INF4211 - TP
-- Creating the basic table structure
CREATE TABLE `Bateaux` (
`noBateau` int NOT NULL AUTO_INCREMENT,
`nom` varchar(50) NOT NULL ,
`type` varchar(50) NOT NULL ,
PRIMARY KEY (
`noBateau`
)
);
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 1.
Hanlon's Razor,(1) "Never attribute to malice that which is adequately explained by carelessness." (related: fundamental attribution error — " the tendency for people to place an undue emphasis on internal characteristics of the agent (character or intention), rather than external factors, in explaining another person's behavior in a given situation.")
Occam's Razor,(1) "Among competing hypotheses, the one with the fewest assumptions should be selected." (related: conjunction fallacy, overfitting, "when you hear hoofbeats, think of horses not zebras.")
Cognitive Biases,(1) "Tendencies to think in certain ways that can lead to systematic deviations from a standard of rationality or good judgments."
Arguing from First Principles,(1) "A basic, foundational, self-evident proposition or assumption that cannot be deduced from any other proposition or assumption." (related: dimensionality reduction; orthogonality; "Reasonable minds can disagree" if underlying premises differ.)
Proximate vs Root Cause,(1) "An event w
@BenjaminRosell
BenjaminRosell / Image Classifier Project.ipynb
Last active February 9, 2019 06:13
Image Classifier Project
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
composer install
bower install
php artisan migrate
npm i --production
gulp --production
php artisan route:cache
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Add a raster tile source</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }