Skip to content

Instantly share code, notes, and snippets.

View BenjaminRosell's full-sized avatar

Benjamin Gonzalez BenjaminRosell

View GitHub Profile
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

public class Main {
public static void main(String[] args) {
//SOLUTION
}
}
<!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; }
composer install
bower install
php artisan migrate
npm i --production
gulp --production
php artisan route:cache
@BenjaminRosell
BenjaminRosell / Image Classifier Project.ipynb
Last active February 9, 2019 06:13
Image Classifier Project
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 / 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`
)
);
<!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>