Skip to content

Instantly share code, notes, and snippets.

@bpatra
bpatra / keybase.md
Created November 18, 2021 15:29
proof

Keybase proof

I hereby claim:

  • I am bpatra on github.
  • I am benoitpatra (https://keybase.io/benoitpatra) on keybase.
  • I have a public key whose fingerprint is FF71 F7E5 F9E4 2A96 0788 CE21 12EC 0AE7 826B C5CE

To claim this, I am signing this object:

@bpatra
bpatra / keybase.md
Created November 18, 2021 14:42
proof for keybase

benoitpatra Benoit Patra

Keybase proof

I hereby claim:

  • I am bpatra on github.
  • I am benoitpatra (https://keybase.io/benoitpatra) on keybase.
  • I have a public key ASAO1CfrIqjTUUNEAsShfOhZQKitF3h0AKoso1R_rB5YoAo
@bpatra
bpatra / iTerm2_config.json
Created November 15, 2021 15:37
My iTerm2 config
{
"Ansi 7 Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Tags" : [
],
"Ansi 12 Color" : {
@bpatra
bpatra / force_localization.html
Last active July 23, 2021 15:34
Force internalisation of quizz courses in iadvize AppNorth Academy
<style>
@font-face {
font-family: "ProximaNova-Bold";
src: url("https://s3-us-west-2.amazonaws.com/static.schoolkeep.com/fonts/ProximaNova-Bold.ttf");
}
@font-face {
font-family: "ProximaNova-Reg";
src: url("https://s3-us-west-2.amazonaws.com/static.schoolkeep.com/fonts/proximanova-regular-webfont.woff");
}
</style>
@bpatra
bpatra / image-caption.html
Last active December 27, 2020 22:10
Image Caption for Image in Personal Blog Posts
<figure class="centered-figure {{ include.size_class }} {{ include.position_class }}">
{% if include.title %}
{% assign title = include.title %}
{% else %}
{% assign title = include.caption %}
{% endif %}
<img src="{{ include.imageurl }}" alt="{{ title }}" />
{% if include.caption %}
<figcaption class="caption-text">{{ include.caption }}</figcaption>
{% endif %}
@bpatra
bpatra / jekyll-importer.rb
Created December 27, 2020 17:17
Jekyll importer command
JekyllImport::Importers::WordPress.run({
"dbname" => "backup",
"user" => "root",
"password" => "my-secret-pwd",
"host" => "localhost",
"port" => "3306",
# other stuff
})
@bpatra
bpatra / deploy-jekyll.yml
Created December 27, 2020 15:57
Github actions to deploy to Azure Static Web Apps
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- deploy
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- deploy
public class DesignMainViewModel : IMainViewModel
{
public static IPerson fakePerson = new Person()
{
Name = "Raymond Domenech",
Age = 62,
Books = new IBook[0]
};
public static IPerson fakePerson2 = new Person()
@bpatra
bpatra / sut.js
Last active December 8, 2020 20:15
app.sut module with the factorial function
/// <reference path="./app.js" />
app.namespace("app.sut");
app.sut = (function () {
"use strict";
var sut = {};
var factorial = function (n) {
if (n <= 1) return 1;
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
conv2d_1 (Conv2D) (None, 198, 198, 32) 896
_________________________________________________________________
max_pooling2d_1 (MaxPooling2 (None, 99, 99, 32) 0
_________________________________________________________________
conv2d_2 (Conv2D) (None, 97, 97, 64) 18496
_________________________________________________________________
max_pooling2d_2 (MaxPooling2 (None, 48, 48, 64) 0